Google_Service_Books_Promooffer_Resource

The "promooffer" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Books.php  
  1. class Google_Service_Books_Promooffer_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * (promooffer.accept) 
  5. * @param array $optParams Optional parameters. 
  6. * @opt_param string product device product 
  7. * @opt_param string volumeId Volume id to exercise the offer 
  8. * @opt_param string offerId 
  9. * @opt_param string androidId device android_id 
  10. * @opt_param string device device device 
  11. * @opt_param string model device model 
  12. * @opt_param string serial device serial 
  13. * @opt_param string manufacturer device manufacturer 
  14. */ 
  15. public function accept($optParams = array()) 
  16. $params = array(); 
  17. $params = array_merge($params, $optParams); 
  18. return $this->call('accept', array($params)); 
  19.  
  20. /** 
  21. * (promooffer.dismiss) 
  22. * @param array $optParams Optional parameters. 
  23. * @opt_param string product device product 
  24. * @opt_param string offerId Offer to dimiss 
  25. * @opt_param string androidId device android_id 
  26. * @opt_param string device device device 
  27. * @opt_param string model device model 
  28. * @opt_param string serial device serial 
  29. * @opt_param string manufacturer device manufacturer 
  30. */ 
  31. public function dismiss($optParams = array()) 
  32. $params = array(); 
  33. $params = array_merge($params, $optParams); 
  34. return $this->call('dismiss', array($params)); 
  35.  
  36. /** 
  37. * Returns a list of promo offers available to the user (promooffer.get) 
  38. * @param array $optParams Optional parameters. 
  39. * @opt_param string product device product 
  40. * @opt_param string androidId device android_id 
  41. * @opt_param string device device device 
  42. * @opt_param string model device model 
  43. * @opt_param string serial device serial 
  44. * @opt_param string manufacturer device manufacturer 
  45. * @return Google_Service_Books_Offers 
  46. */ 
  47. public function get($optParams = array()) 
  48. $params = array(); 
  49. $params = array_merge($params, $optParams); 
  50. return $this->call('get', array($params), "Google_Service_Books_Offers");