public function getUser($id)
    {
        $request = $this->client->get($this->customer['url'].'/api/users/'.$id);

        $request->setAuth($this->customer['username'], $this->customer['password']);
        $response = $request->send();

        return json_decode((string) $response->getBody(true));
    }
public function getUser($id)
    {
        $request = $this->client->get($this->customer['url'].'/api/users/'.$id);

        $request->setAuth($this->customer['username'], $this->customer['password']);
        $response = $request->send();

        return json_decode((string) $response->getBody(true));
    }
public function getUser ( $ id ) { $ request = $ this -> client -> get ( $ this -> customer [ 'url' ] . '/api/users/' . $ id ) ; $ request -> setAuth ( $ this -> customer [ 'username' ] , $ this -> customer [ 'password' ] ) ; $ response = $ request -> send ( ) ; return json_decode ( ( string ) $ response -> getBody ( true ) ) ; }
Get a specific user

@param int $id

@return mixed
Get a specific user