public function retrieveUser($id, CachePolicy $cachePolicy = null)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode([], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->get('v1/accounts/users/' . $id . '', $parameters, $cachePolicy);
        $result = new User($result);

        return $result;
    }
public function retrieveUser($id, CachePolicy $cachePolicy = null)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode([], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->get('v1/accounts/users/' . $id . '', $parameters, $cachePolicy);
        $result = new User($result);

        return $result;
    }
public function retrieveUser ( $ id , CachePolicy $ cachePolicy = null ) { $ parameters = [ 'query' => [ ] , 'body' => json_encode ( [ ] , JSON_UNESCAPED_UNICODE ) , 'headers' => [ ] , ] ; $ result = $ this -> get ( 'v1/accounts/users/' . $ id . '' , $ parameters , $ cachePolicy ) ; $ result = new User ( $ result ) ; return $ result ; }
Fetches a specific User.

Fetches a User by the specified identifier.

@param int         $id          the User identifier
@param CachePolicy $cachePolicy a custom cache policy used for this request only

@return User
Fetches a specific User .