Google_Service_AndroidPublisher

Service definition for AndroidPublisher (v2).

Defined (1)

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

/lib/Google/Service/AndroidPublisher.php  
  1. class Google_Service_AndroidPublisher extends Google_Service 
  2. /** View and manage your Google Play Android Developer account. */ 
  3. const ANDROIDPUBLISHER = "https://www.googleapis.com/auth/androidpublisher"; 
  4.  
  5. public $inapppurchases; 
  6. public $purchases; 
  7.  
  8.  
  9. /** 
  10. * Constructs the internal representation of the AndroidPublisher service. 
  11. * @param Google_Client $client 
  12. */ 
  13. public function __construct(Google_Client $client) 
  14. parent::__construct($client); 
  15. $this->servicePath = 'androidpublisher/v1.1/applications/'; 
  16. $this->version = 'v1.1'; 
  17. $this->serviceName = 'androidpublisher'; 
  18.  
  19. $this->inapppurchases = new Google_Service_AndroidPublisher_Inapppurchases_Resource( 
  20. $this,  
  21. $this->serviceName,  
  22. 'inapppurchases',  
  23. array( 
  24. 'methods' => array( 
  25. 'get' => array( 
  26. 'path' => '{packageName}/inapp/{productId}/purchases/{token}',  
  27. 'httpMethod' => 'GET',  
  28. 'parameters' => array( 
  29. 'packageName' => array( 
  30. 'location' => 'path',  
  31. 'type' => 'string',  
  32. 'required' => true,  
  33. ),  
  34. 'productId' => array( 
  35. 'location' => 'path',  
  36. 'type' => 'string',  
  37. 'required' => true,  
  38. ),  
  39. 'token' => array( 
  40. 'location' => 'path',  
  41. 'type' => 'string',  
  42. 'required' => true,  
  43. ),  
  44. ),  
  45. ),  
  46. ); 
  47. $this->purchases = new Google_Service_AndroidPublisher_Purchases_Resource( 
  48. $this,  
  49. $this->serviceName,  
  50. 'purchases',  
  51. array( 
  52. 'methods' => array( 
  53. 'cancel' => array( 
  54. 'path' => '{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel',  
  55. 'httpMethod' => 'POST',  
  56. 'parameters' => array( 
  57. 'packageName' => array( 
  58. 'location' => 'path',  
  59. 'type' => 'string',  
  60. 'required' => true,  
  61. ),  
  62. 'subscriptionId' => array( 
  63. 'location' => 'path',  
  64. 'type' => 'string',  
  65. 'required' => true,  
  66. ),  
  67. 'token' => array( 
  68. 'location' => 'path',  
  69. 'type' => 'string',  
  70. 'required' => true,  
  71. ),  
  72. ),  
  73. ), 'get' => array( 
  74. 'path' => '{packageName}/subscriptions/{subscriptionId}/purchases/{token}',  
  75. 'httpMethod' => 'GET',  
  76. 'parameters' => array( 
  77. 'packageName' => array( 
  78. 'location' => 'path',  
  79. 'type' => 'string',  
  80. 'required' => true,  
  81. ),  
  82. 'subscriptionId' => array( 
  83. 'location' => 'path',  
  84. 'type' => 'string',  
  85. 'required' => true,  
  86. ),  
  87. 'token' => array( 
  88. 'location' => 'path',  
  89. 'type' => 'string',  
  90. 'required' => true,  
  91. ),  
  92. ),  
  93. ),  
  94. );