Google_MylibraryBookshelvesVolumesServiceResource

The "volumes" collection of methods.

Defined (1)

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

/src/contrib/Google_BooksService.php  
  1. class Google_MylibraryBookshelvesVolumesServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Gets volume information for volumes on a bookshelf. (volumes.list) 
  5. * @param string $shelf The bookshelf ID or name retrieve volumes for. 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param string country ISO-3166-1 code to override the IP-based location. 
  8. * @opt_param string maxResults Maximum number of results to return 
  9. * @opt_param string projection Restrict information returned to a set of selected fields. 
  10. * @opt_param string q Full-text search query string in this bookshelf. 
  11. * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false. 
  12. * @opt_param string source String to identify the originator of this request. 
  13. * @opt_param string startIndex Index of the first element to return (starts at 0) 
  14. * @return Google_Volumes 
  15. */ 
  16. public function listMylibraryBookshelvesVolumes($shelf, $optParams = array()) { 
  17. $params = array('shelf' => $shelf); 
  18. $params = array_merge($params, $optParams); 
  19. $data = $this->__call('list', array($params)); 
  20. if ($this->useObjects()) { 
  21. return new Google_Volumes($data); 
  22. } else { 
  23. return $data;