src/ApiClient.php
public function getUserById($id)
    {
        return $this->apiCall('users.info', [
            'user' => $id,
        ])->then(function (Payload $response) {
            return new User($this, $response['user']);
        });
    }
public function getUserById($id)
    {
        return $this->apiCall('users.info', [
            'user' => $id,
        ])->then(function (Payload $response) {
            return new User($this, $response['user']);
        });
    }
public function getUserById ( $ id ) { return $ this -> apiCall ( 'users.info' , [ 'user' => $ id , ] ) -> then ( function ( Payload $ response ) { return new User ( $ this , $ response [ 'user' ] ) ; } ) ; }
Gets a user by its ID.

@param string $id A user ID.

@return \React\Promise\PromiseInterface A promise for a user object.
Gets a user by its ID .