public function patchUser($id, array $fields)
    {
        $request = $this->client->patch($this->customer['url'].'/api/users/'.$id);

        $request->setAuth($this->customer['username'], $this->customer['password']);
        $request->setBody(json_encode($fields));

        $response = $request->send();

        return json_decode($response->getBody(true));
    }
public function patchUser($id, array $fields)
    {
        $request = $this->client->patch($this->customer['url'].'/api/users/'.$id);

        $request->setAuth($this->customer['username'], $this->customer['password']);
        $request->setBody(json_encode($fields));

        $response = $request->send();

        return json_decode($response->getBody(true));
    }
public function patchUser ( $ id , array $ fields ) { $ request = $ this -> client -> patch ( $ this -> customer [ 'url' ] . '/api/users/' . $ id ) ; $ request -> setAuth ( $ this -> customer [ 'username' ] , $ this -> customer [ 'password' ] ) ; $ request -> setBody ( json_encode ( $ fields ) ) ; $ response = $ request -> send ( ) ; return json_decode ( $ response -> getBody ( true ) ) ; }
Edit an user fields.

@param int $id
@param array $fields

@return mixed
Edit an user fields .