Google_MylibraryReadingpositionsServiceResource

The "readingpositions" collection of methods.

Defined (1)

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

/src/contrib/Google_BooksService.php  
  1. class Google_MylibraryReadingpositionsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Retrieves my reading position information for a volume. (readingpositions.get) 
  5. * @param string $volumeId ID of volume for which to retrieve a reading position. 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param string contentVersion Volume content version for which this reading position is requested. 
  8. * @opt_param string source String to identify the originator of this request. 
  9. * @return Google_ReadingPosition 
  10. */ 
  11. public function get($volumeId, $optParams = array()) { 
  12. $params = array('volumeId' => $volumeId); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('get', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_ReadingPosition($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Sets my reading position information for a volume. (readingpositions.setPosition) 
  21. * @param string $volumeId ID of volume for which to update the reading position. 
  22. * @param string $timestamp RFC 3339 UTC format timestamp associated with this reading position. 
  23. * @param string $position Position string for the new volume reading position. 
  24. * @param array $optParams Optional parameters. 
  25. * @opt_param string action Action that caused this reading position to be set. 
  26. * @opt_param string contentVersion Volume content version for which this reading position applies. 
  27. * @opt_param string deviceCookie Random persistent device cookie optional on set position. 
  28. * @opt_param string source String to identify the originator of this request. 
  29. */ 
  30. public function setPosition($volumeId, $timestamp, $position, $optParams = array()) { 
  31. $params = array('volumeId' => $volumeId, 'timestamp' => $timestamp, 'position' => $position); 
  32. $params = array_merge($params, $optParams); 
  33. $data = $this->__call('setPosition', array($params)); 
  34. return $data;