Google_BookshelvesServiceResource

The "bookshelves" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_BooksService.php  
  1. class Google_BookshelvesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Retrieves a list of public bookshelves for the specified user. (bookshelves.list) 
  6. * @param string $userId ID of user for whom to retrieve bookshelves. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string source String to identify the originator of this request. 
  9. * @return Google_Bookshelves 
  10. */ 
  11. public function listBookshelves($userId, $optParams = array()) { 
  12. $params = array('userId' => $userId); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('list', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_Bookshelves($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Retrieves metadata for a specific bookshelf for the specified user. (bookshelves.get) 
  21. * @param string $userId ID of user for whom to retrieve bookshelves. 
  22. * @param string $shelf ID of bookshelf to retrieve. 
  23. * @param array $optParams Optional parameters. 
  24. * @opt_param string source String to identify the originator of this request. 
  25. * @return Google_Bookshelf 
  26. */ 
  27. public function get($userId, $shelf, $optParams = array()) { 
  28. $params = array('userId' => $userId, 'shelf' => $shelf); 
  29. $params = array_merge($params, $optParams); 
  30. $data = $this->__call('get', array($params)); 
  31. if ($this->useObjects()) { 
  32. return new Google_Bookshelf($data); 
  33. } else { 
  34. return $data;