Google_AndroidPublisherService

Service definition for Google_AndroidPublisher (v1.1).

Defined (1)

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

/google-api-php-client/src/contrib/Google_AndroidpublisherService.php  
  1. class Google_AndroidPublisherService extends Google_Service { 
  2. public $inapppurchases; 
  3. public $purchases; 
  4. /** 
  5. * Constructs the internal representation of the AndroidPublisher service. 
  6. * @param Google_Client $client 
  7. */ 
  8. public function __construct(Google_Client $client) { 
  9. $this->servicePath = 'androidpublisher/v1.1/applications/'; 
  10. $this->version = 'v1.1'; 
  11. $this->serviceName = 'androidpublisher'; 
  12.  
  13. $client->addService($this->serviceName, $this->version); 
  14. $this->inapppurchases = new Google_InapppurchasesServiceResource($this, $this->serviceName, 'inapppurchases', json_decode('{"methods": {"get": {"id": "androidpublisher.inapppurchases.get", "path": "{packageName}/inapp/{productId}/purchases/{token}", "httpMethod": "GET", "parameters": {"packageName": {"type": "string", "required": true, "location": "path"}, "productId": {"type": "string", "required": true, "location": "path"}, "token": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "InappPurchase"}}}}', true)); 
  15. $this->purchases = new Google_PurchasesServiceResource($this, $this->serviceName, 'purchases', json_decode('{"methods": {"cancel": {"id": "androidpublisher.purchases.cancel", "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel", "httpMethod": "POST", "parameters": {"packageName": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}, "token": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "androidpublisher.purchases.get", "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}", "httpMethod": "GET", "parameters": {"packageName": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}, "token": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SubscriptionPurchase"}}}}', true)); 
  16.