Google_UsersServiceResource

The "users" collection of methods.

Defined (1)

The class is defined in the following location(s).

/google-api/src/contrib/Google_BloggerService.php  
  1. class Google_UsersServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Gets one user by id. (users.get) 
  6. * @param string $userId The ID of the user to get. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_User 
  9. */ 
  10. public function get($userId, $optParams = array()) { 
  11. $params = array('userId' => $userId); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('get', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_User($data); 
  16. } else { 
  17. return $data;