Google_MyconfigServiceResource

The "myconfig" collection of methods.

Defined (1)

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

/src/contrib/Google_BooksService.php  
  1. class Google_MyconfigServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Release downloaded content access restriction. (myconfig.releaseDownloadAccess) 
  5. * @param string $volumeIds The volume(s) to release restrictions for. 
  6. * @param string $cpksver The device/version ID from which to release the restriction. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. 
  9. * @opt_param string source String to identify the originator of this request. 
  10. * @return Google_DownloadAccesses 
  11. */ 
  12. public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()) { 
  13. $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('releaseDownloadAccess', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_DownloadAccesses($data); 
  18. } else { 
  19. return $data; 
  20. /** 
  21. * Request concurrent and download access restrictions. (myconfig.requestAccess) 
  22. * @param string $source String to identify the originator of this request. 
  23. * @param string $volumeId The volume to request concurrent/download restrictions for. 
  24. * @param string $nonce The client nonce value. 
  25. * @param string $cpksver The device/version ID from which to request the restrictions. 
  26. * @param array $optParams Optional parameters. 
  27. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. 
  28. * @return Google_RequestAccess 
  29. */ 
  30. public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) { 
  31. $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver); 
  32. $params = array_merge($params, $optParams); 
  33. $data = $this->__call('requestAccess', array($params)); 
  34. if ($this->useObjects()) { 
  35. return new Google_RequestAccess($data); 
  36. } else { 
  37. return $data; 
  38. /** 
  39. * Request downloaded content access for specified volumes on the My eBooks shelf. 
  40. * (myconfig.syncVolumeLicenses) 
  41. * @param string $source String to identify the originator of this request. 
  42. * @param string $nonce The client nonce value. 
  43. * @param string $cpksver The device/version ID from which to release the restriction. 
  44. * @param array $optParams Optional parameters. 
  45. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. 
  46. * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false. 
  47. * @opt_param string volumeIds The volume(s) to request download restrictions for. 
  48. * @return Google_Volumes 
  49. */ 
  50. public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) { 
  51. $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver); 
  52. $params = array_merge($params, $optParams); 
  53. $data = $this->__call('syncVolumeLicenses', array($params)); 
  54. if ($this->useObjects()) { 
  55. return new Google_Volumes($data); 
  56. } else { 
  57. return $data;