Google_Client PHP Class Code Examples

This page contains top rated real world PHP examples of class Google_Client extracted from open source projects. You can rate examples to help us improve the quality of examples

Example #1
Show file File: analytics.php Project: caina/pando
0
 function getService()
 {
     // Creates and returns the Analytics service object.
     // Load the Google API PHP Client Library.
     // require_once 'google-api-php-client/src/Google/autoload.php';
     require_once APPPATH . 'third_party/Google_api/src/Google/autoload.php';
     $client = new Google_Client();
     $client->setApplicationName("contato@apanda.com.br");
     $client->setDeveloperKey("AIzaSyBX98zkxCCkQcxS_-qfKftDKgAgYPgS078");
     // Create and configure a new client object.
     $client = new Google_Client();
     $client->setApplicationName("HelloAnalytics");
     $analytics = new Google_Service_Analytics($client);
     // // Read the generated client_secrets.p12 key.
     // $key = file_get_contents($key_file_location);
     // $cred = new Google_Auth_AssertionCredentials(
     //     $service_account_email,
     //     array(Google_Service_Analytics::ANALYTICS_READONLY),
     //     $key
     // );
     // $client->setAssertionCredentials($cred);
     // if($client->getAuth()->isAccessTokenExpired()) {
     //   $client->getAuth()->refreshTokenWithAssertion($cred);
     // }
     return $analytics;
 }
Example #2
Show file File: Directory.php Project: IllyaKolisnichenko/numo.dp.ua
0
 /**
  * Constructs the internal representation of the Directory service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'admin/directory/v1/';
     $this->version = 'directory_v1';
     $this->serviceName = 'admin';
     $this->asps = new Google_Service_Directory_Asps_Resource($this, $this->serviceName, 'asps', array('methods' => array('delete' => array('path' => 'users/{userKey}/asps/{codeId}', 'httpMethod' => 'DELETE', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'codeId' => array('location' => 'path', 'type' => 'integer', 'required' => true))), 'get' => array('path' => 'users/{userKey}/asps/{codeId}', 'httpMethod' => 'GET', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'codeId' => array('location' => 'path', 'type' => 'integer', 'required' => true))), 'list' => array('path' => 'users/{userKey}/asps', 'httpMethod' => 'GET', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->channels = new Google_Service_Directory_Channels_Resource($this, $this->serviceName, 'channels', array('methods' => array('stop' => array('path' => '/admin/directory_v1/channels/stop', 'httpMethod' => 'POST', 'parameters' => array()))));
     $this->chromeosdevices = new Google_Service_Directory_Chromeosdevices_Resource($this, $this->serviceName, 'chromeosdevices', array('methods' => array('get' => array('path' => 'customer/{customerId}/devices/chromeos/{deviceId}', 'httpMethod' => 'GET', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'deviceId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'projection' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'customer/{customerId}/devices/chromeos', 'httpMethod' => 'GET', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'orderBy' => array('location' => 'query', 'type' => 'string'), 'projection' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'sortOrder' => array('location' => 'query', 'type' => 'string'), 'query' => array('location' => 'query', 'type' => 'string'))), 'patch' => array('path' => 'customer/{customerId}/devices/chromeos/{deviceId}', 'httpMethod' => 'PATCH', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'deviceId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'projection' => array('location' => 'query', 'type' => 'string'))), 'update' => array('path' => 'customer/{customerId}/devices/chromeos/{deviceId}', 'httpMethod' => 'PUT', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'deviceId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'projection' => array('location' => 'query', 'type' => 'string'))))));
     $this->customers = new Google_Service_Directory_Customers_Resource($this, $this->serviceName, 'customers', array('methods' => array('get' => array('path' => 'customers/{customerKey}', 'httpMethod' => 'GET', 'parameters' => array('customerKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'patch' => array('path' => 'customers/{customerKey}', 'httpMethod' => 'PATCH', 'parameters' => array('customerKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'customers/{customerKey}', 'httpMethod' => 'PUT', 'parameters' => array('customerKey' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->domainAliases = new Google_Service_Directory_DomainAliases_Resource($this, $this->serviceName, 'domainAliases', array('methods' => array('delete' => array('path' => 'customer/{customer}/domainaliases/{domainAliasName}', 'httpMethod' => 'DELETE', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true), 'domainAliasName' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'customer/{customer}/domainaliases/{domainAliasName}', 'httpMethod' => 'GET', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true), 'domainAliasName' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'customer/{customer}/domainaliases', 'httpMethod' => 'POST', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'customer/{customer}/domainaliases', 'httpMethod' => 'GET', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true), 'parentDomainName' => array('location' => 'query', 'type' => 'string'))))));
     $this->domains = new Google_Service_Directory_Domains_Resource($this, $this->serviceName, 'domains', array('methods' => array('delete' => array('path' => 'customer/{customer}/domains/{domainName}', 'httpMethod' => 'DELETE', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true), 'domainName' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'customer/{customer}/domains/{domainName}', 'httpMethod' => 'GET', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true), 'domainName' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'customer/{customer}/domains', 'httpMethod' => 'POST', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'customer/{customer}/domains', 'httpMethod' => 'GET', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->groups = new Google_Service_Directory_Groups_Resource($this, $this->serviceName, 'groups', array('methods' => array('delete' => array('path' => 'groups/{groupKey}', 'httpMethod' => 'DELETE', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'groups/{groupKey}', 'httpMethod' => 'GET', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'groups', 'httpMethod' => 'POST', 'parameters' => array()), 'list' => array('path' => 'groups', 'httpMethod' => 'GET', 'parameters' => array('customer' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'domain' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'userKey' => array('location' => 'query', 'type' => 'string'))), 'patch' => array('path' => 'groups/{groupKey}', 'httpMethod' => 'PATCH', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'groups/{groupKey}', 'httpMethod' => 'PUT', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->groups_aliases = new Google_Service_Directory_GroupsAliases_Resource($this, $this->serviceName, 'aliases', array('methods' => array('delete' => array('path' => 'groups/{groupKey}/aliases/{alias}', 'httpMethod' => 'DELETE', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'alias' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'groups/{groupKey}/aliases', 'httpMethod' => 'POST', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'groups/{groupKey}/aliases', 'httpMethod' => 'GET', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->members = new Google_Service_Directory_Members_Resource($this, $this->serviceName, 'members', array('methods' => array('delete' => array('path' => 'groups/{groupKey}/members/{memberKey}', 'httpMethod' => 'DELETE', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'memberKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'groups/{groupKey}/members/{memberKey}', 'httpMethod' => 'GET', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'memberKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'groups/{groupKey}/members', 'httpMethod' => 'POST', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'groups/{groupKey}/members', 'httpMethod' => 'GET', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'roles' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'groups/{groupKey}/members/{memberKey}', 'httpMethod' => 'PATCH', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'memberKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'groups/{groupKey}/members/{memberKey}', 'httpMethod' => 'PUT', 'parameters' => array('groupKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'memberKey' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->mobiledevices = new Google_Service_Directory_Mobiledevices_Resource($this, $this->serviceName, 'mobiledevices', array('methods' => array('action' => array('path' => 'customer/{customerId}/devices/mobile/{resourceId}/action', 'httpMethod' => 'POST', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'resourceId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'delete' => array('path' => 'customer/{customerId}/devices/mobile/{resourceId}', 'httpMethod' => 'DELETE', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'resourceId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'customer/{customerId}/devices/mobile/{resourceId}', 'httpMethod' => 'GET', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'resourceId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'projection' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'customer/{customerId}/devices/mobile', 'httpMethod' => 'GET', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'orderBy' => array('location' => 'query', 'type' => 'string'), 'projection' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'sortOrder' => array('location' => 'query', 'type' => 'string'), 'query' => array('location' => 'query', 'type' => 'string'))))));
     $this->notifications = new Google_Service_Directory_Notifications_Resource($this, $this->serviceName, 'notifications', array('methods' => array('delete' => array('path' => 'customer/{customer}/notifications/{notificationId}', 'httpMethod' => 'DELETE', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true), 'notificationId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'customer/{customer}/notifications/{notificationId}', 'httpMethod' => 'GET', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true), 'notificationId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'customer/{customer}/notifications', 'httpMethod' => 'GET', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'language' => array('location' => 'query', 'type' => 'string'))), 'patch' => array('path' => 'customer/{customer}/notifications/{notificationId}', 'httpMethod' => 'PATCH', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true), 'notificationId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'customer/{customer}/notifications/{notificationId}', 'httpMethod' => 'PUT', 'parameters' => array('customer' => array('location' => 'path', 'type' => 'string', 'required' => true), 'notificationId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->orgunits = new Google_Service_Directory_Orgunits_Resource($this, $this->serviceName, 'orgunits', array('methods' => array('delete' => array('path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', 'httpMethod' => 'DELETE', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'orgUnitPath' => array('location' => 'path', 'type' => 'string', 'repeated' => true, 'required' => true))), 'get' => array('path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', 'httpMethod' => 'GET', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'orgUnitPath' => array('location' => 'path', 'type' => 'string', 'repeated' => true, 'required' => true))), 'insert' => array('path' => 'customer/{customerId}/orgunits', 'httpMethod' => 'POST', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'customer/{customerId}/orgunits', 'httpMethod' => 'GET', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'type' => array('location' => 'query', 'type' => 'string'), 'orgUnitPath' => array('location' => 'query', 'type' => 'string'))), 'patch' => array('path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', 'httpMethod' => 'PATCH', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'orgUnitPath' => array('location' => 'path', 'type' => 'string', 'repeated' => true, 'required' => true))), 'update' => array('path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', 'httpMethod' => 'PUT', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'orgUnitPath' => array('location' => 'path', 'type' => 'string', 'repeated' => true, 'required' => true))))));
     $this->schemas = new Google_Service_Directory_Schemas_Resource($this, $this->serviceName, 'schemas', array('methods' => array('delete' => array('path' => 'customer/{customerId}/schemas/{schemaKey}', 'httpMethod' => 'DELETE', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'schemaKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'customer/{customerId}/schemas/{schemaKey}', 'httpMethod' => 'GET', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'schemaKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'customer/{customerId}/schemas', 'httpMethod' => 'POST', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'customer/{customerId}/schemas', 'httpMethod' => 'GET', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'patch' => array('path' => 'customer/{customerId}/schemas/{schemaKey}', 'httpMethod' => 'PATCH', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'schemaKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'customer/{customerId}/schemas/{schemaKey}', 'httpMethod' => 'PUT', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'schemaKey' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->tokens = new Google_Service_Directory_Tokens_Resource($this, $this->serviceName, 'tokens', array('methods' => array('delete' => array('path' => 'users/{userKey}/tokens/{clientId}', 'httpMethod' => 'DELETE', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'clientId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'users/{userKey}/tokens/{clientId}', 'httpMethod' => 'GET', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'clientId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'users/{userKey}/tokens', 'httpMethod' => 'GET', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->users = new Google_Service_Directory_Users_Resource($this, $this->serviceName, 'users', array('methods' => array('delete' => array('path' => 'users/{userKey}', 'httpMethod' => 'DELETE', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'users/{userKey}', 'httpMethod' => 'GET', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'viewType' => array('location' => 'query', 'type' => 'string'), 'customFieldMask' => array('location' => 'query', 'type' => 'string'), 'projection' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'users', 'httpMethod' => 'POST', 'parameters' => array()), 'list' => array('path' => 'users', 'httpMethod' => 'GET', 'parameters' => array('customer' => array('location' => 'query', 'type' => 'string'), 'orderBy' => array('location' => 'query', 'type' => 'string'), 'domain' => array('location' => 'query', 'type' => 'string'), 'projection' => array('location' => 'query', 'type' => 'string'), 'showDeleted' => array('location' => 'query', 'type' => 'string'), 'customFieldMask' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'sortOrder' => array('location' => 'query', 'type' => 'string'), 'query' => array('location' => 'query', 'type' => 'string'), 'viewType' => array('location' => 'query', 'type' => 'string'), 'event' => array('location' => 'query', 'type' => 'string'))), 'makeAdmin' => array('path' => 'users/{userKey}/makeAdmin', 'httpMethod' => 'POST', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'patch' => array('path' => 'users/{userKey}', 'httpMethod' => 'PATCH', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'undelete' => array('path' => 'users/{userKey}/undelete', 'httpMethod' => 'POST', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'users/{userKey}', 'httpMethod' => 'PUT', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'watch' => array('path' => 'users/watch', 'httpMethod' => 'POST', 'parameters' => array('customer' => array('location' => 'query', 'type' => 'string'), 'orderBy' => array('location' => 'query', 'type' => 'string'), 'domain' => array('location' => 'query', 'type' => 'string'), 'projection' => array('location' => 'query', 'type' => 'string'), 'showDeleted' => array('location' => 'query', 'type' => 'string'), 'customFieldMask' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'sortOrder' => array('location' => 'query', 'type' => 'string'), 'query' => array('location' => 'query', 'type' => 'string'), 'viewType' => array('location' => 'query', 'type' => 'string'), 'event' => array('location' => 'query', 'type' => 'string'))))));
     $this->users_aliases = new Google_Service_Directory_UsersAliases_Resource($this, $this->serviceName, 'aliases', array('methods' => array('delete' => array('path' => 'users/{userKey}/aliases/{alias}', 'httpMethod' => 'DELETE', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'alias' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'users/{userKey}/aliases', 'httpMethod' => 'POST', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'users/{userKey}/aliases', 'httpMethod' => 'GET', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'event' => array('location' => 'query', 'type' => 'string'))), 'watch' => array('path' => 'users/{userKey}/aliases/watch', 'httpMethod' => 'POST', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'event' => array('location' => 'query', 'type' => 'string'))))));
     $this->users_photos = new Google_Service_Directory_UsersPhotos_Resource($this, $this->serviceName, 'photos', array('methods' => array('delete' => array('path' => 'users/{userKey}/photos/thumbnail', 'httpMethod' => 'DELETE', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'users/{userKey}/photos/thumbnail', 'httpMethod' => 'GET', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'patch' => array('path' => 'users/{userKey}/photos/thumbnail', 'httpMethod' => 'PATCH', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'users/{userKey}/photos/thumbnail', 'httpMethod' => 'PUT', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->verificationCodes = new Google_Service_Directory_VerificationCodes_Resource($this, $this->serviceName, 'verificationCodes', array('methods' => array('generate' => array('path' => 'users/{userKey}/verificationCodes/generate', 'httpMethod' => 'POST', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'invalidate' => array('path' => 'users/{userKey}/verificationCodes/invalidate', 'httpMethod' => 'POST', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'users/{userKey}/verificationCodes', 'httpMethod' => 'GET', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
 }
Example #3
Show file File: common.php Project: girishji/zouk-event-calendar
0
function getClient()
{
    // Authenticate your API Client
    $client = new Google_Client();
    //$client->addScope(Google_Service_Storage::DEVSTORAGE_FULL_CONTROL);
    $client->addScope(Google_Service_Storage::DEVSTORAGE_READ_WRITE);
    // see ~/sandbox/zouk-event-calendar/vendor/google/apiclient/src/Google/Service/Storage.php
    $client->setAccessType("offline");
    $client->useApplicationDefaultCredentials();
    // no need to acquire special credentials
    $token = $client->getAccessToken();
    if (!$token) {
        // this is always the case, and same access token is aquired in the fetch call below (can be printed)
        //syslog(LOG_DEBUG, "girish: access token not present");
        $token = $client->fetchAccessTokenWithAssertion();
        $client->setAccessToken($token);
        //syslog(LOG_DEBUG, $token['access_token']);
    }
    // token acquried above is always expired. and even if you run fetchAccess...Refreshtoken() it still stays expired
    //if ($client->isAccessTokenExpired()) {
    //    //syslog(LOG_DEBUG, "girish: access token expired");
    //    $client->fetchAccessTokenWithRefreshToken($token);
    //}
    //if ($client->isAccessTokenExpired()) {
    //    syslog(LOG_DEBUG, "girish: access token still expired!"); // no idea how this works
    //}
    return $client;
}
Example #4
Show file File: Analytics.php Project: maguria/usuariosCorreo
0
 /**
  * Constructs the internal representation of the Analytics service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'analytics/v3/';
     $this->version = 'v3';
     $this->serviceName = 'analytics';
     $this->data_ga = new Google_Service_Analytics_DataGa_Resource($this, $this->serviceName, 'ga', array('methods' => array('get' => array('path' => 'data/ga', 'httpMethod' => 'GET', 'parameters' => array('ids' => array('location' => 'query', 'type' => 'string', 'required' => true), 'start-date' => array('location' => 'query', 'type' => 'string', 'required' => true), 'end-date' => array('location' => 'query', 'type' => 'string', 'required' => true), 'metrics' => array('location' => 'query', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'sort' => array('location' => 'query', 'type' => 'string'), 'dimensions' => array('location' => 'query', 'type' => 'string'), 'start-index' => array('location' => 'query', 'type' => 'integer'), 'segment' => array('location' => 'query', 'type' => 'string'), 'samplingLevel' => array('location' => 'query', 'type' => 'string'), 'filters' => array('location' => 'query', 'type' => 'string'), 'output' => array('location' => 'query', 'type' => 'string'))))));
     $this->data_mcf = new Google_Service_Analytics_DataMcf_Resource($this, $this->serviceName, 'mcf', array('methods' => array('get' => array('path' => 'data/mcf', 'httpMethod' => 'GET', 'parameters' => array('ids' => array('location' => 'query', 'type' => 'string', 'required' => true), 'start-date' => array('location' => 'query', 'type' => 'string', 'required' => true), 'end-date' => array('location' => 'query', 'type' => 'string', 'required' => true), 'metrics' => array('location' => 'query', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'sort' => array('location' => 'query', 'type' => 'string'), 'dimensions' => array('location' => 'query', 'type' => 'string'), 'start-index' => array('location' => 'query', 'type' => 'integer'), 'samplingLevel' => array('location' => 'query', 'type' => 'string'), 'filters' => array('location' => 'query', 'type' => 'string'))))));
     $this->data_realtime = new Google_Service_Analytics_DataRealtime_Resource($this, $this->serviceName, 'realtime', array('methods' => array('get' => array('path' => 'data/realtime', 'httpMethod' => 'GET', 'parameters' => array('ids' => array('location' => 'query', 'type' => 'string', 'required' => true), 'metrics' => array('location' => 'query', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'sort' => array('location' => 'query', 'type' => 'string'), 'dimensions' => array('location' => 'query', 'type' => 'string'), 'filters' => array('location' => 'query', 'type' => 'string'))))));
     $this->management_accountSummaries = new Google_Service_Analytics_ManagementAccountSummaries_Resource($this, $this->serviceName, 'accountSummaries', array('methods' => array('list' => array('path' => 'management/accountSummaries', 'httpMethod' => 'GET', 'parameters' => array('max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))))));
     $this->management_accountUserLinks = new Google_Service_Analytics_ManagementAccountUserLinks_Resource($this, $this->serviceName, 'accountUserLinks', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/entityUserLinks', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/entityUserLinks', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'update' => array('path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_accounts = new Google_Service_Analytics_ManagementAccounts_Resource($this, $this->serviceName, 'accounts', array('methods' => array('list' => array('path' => 'management/accounts', 'httpMethod' => 'GET', 'parameters' => array('max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))))));
     $this->management_customDataSources = new Google_Service_Analytics_ManagementCustomDataSources_Resource($this, $this->serviceName, 'customDataSources', array('methods' => array('list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))))));
     $this->management_customDimensions = new Google_Service_Analytics_ManagementCustomDimensions_Resource($this, $this->serviceName, 'customDimensions', array('methods' => array('get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDimensionId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDimensionId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'ignoreCustomDataSourceLinks' => array('location' => 'query', 'type' => 'boolean'))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDimensionId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'ignoreCustomDataSourceLinks' => array('location' => 'query', 'type' => 'boolean'))))));
     $this->management_customMetrics = new Google_Service_Analytics_ManagementCustomMetrics_Resource($this, $this->serviceName, 'customMetrics', array('methods' => array('get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customMetricId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customMetricId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'ignoreCustomDataSourceLinks' => array('location' => 'query', 'type' => 'boolean'))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customMetricId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'ignoreCustomDataSourceLinks' => array('location' => 'query', 'type' => 'boolean'))))));
     $this->management_experiments = new Google_Service_Analytics_ManagementExperiments_Resource($this, $this->serviceName, 'experiments', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'experimentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'experimentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'experimentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'experimentId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_filters = new Google_Service_Analytics_ManagementFilters_Resource($this, $this->serviceName, 'filters', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filterId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filterId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/filters', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/filters', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filterId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filterId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_goals = new Google_Service_Analytics_ManagementGoals_Resource($this, $this->serviceName, 'goals', array('methods' => array('get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'goalId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'goalId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'goalId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_profileFilterLinks = new Google_Service_Analytics_ManagementProfileFilterLinks_Resource($this, $this->serviceName, 'profileFilterLinks', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_profileUserLinks = new Google_Service_Analytics_ManagementProfileUserLinks_Resource($this, $this->serviceName, 'profileUserLinks', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_profiles = new Google_Service_Analytics_ManagementProfiles_Resource($this, $this->serviceName, 'profiles', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_segments = new Google_Service_Analytics_ManagementSegments_Resource($this, $this->serviceName, 'segments', array('methods' => array('list' => array('path' => 'management/segments', 'httpMethod' => 'GET', 'parameters' => array('max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))))));
     $this->management_unsampledReports = new Google_Service_Analytics_ManagementUnsampledReports_Resource($this, $this->serviceName, 'unsampledReports', array('methods' => array('get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'unsampledReportId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))))));
     $this->management_uploads = new Google_Service_Analytics_ManagementUploads_Resource($this, $this->serviceName, 'uploads', array('methods' => array('deleteUploadData' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'uploadId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'uploadData' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_webPropertyAdWordsLinks = new Google_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource($this, $this->serviceName, 'webPropertyAdWordsLinks', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyAdWordsLinkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyAdWordsLinkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyAdWordsLinkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyAdWordsLinkId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_webproperties = new Google_Service_Analytics_ManagementWebproperties_Resource($this, $this->serviceName, 'webproperties', array('methods' => array('get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_webpropertyUserLinks = new Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource($this, $this->serviceName, 'webpropertyUserLinks', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->metadata_columns = new Google_Service_Analytics_MetadataColumns_Resource($this, $this->serviceName, 'columns', array('methods' => array('list' => array('path' => 'metadata/{reportType}/columns', 'httpMethod' => 'GET', 'parameters' => array('reportType' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->provisioning = new Google_Service_Analytics_Provisioning_Resource($this, $this->serviceName, 'provisioning', array('methods' => array('createAccountTicket' => array('path' => 'provisioning/createAccountTicket', 'httpMethod' => 'POST', 'parameters' => array()))));
 }
Example #5
Show file File: MapsEngine.php Project: maguria/usuariosCorreo
0
 /**
  * Constructs the internal representation of the MapsEngine service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'mapsengine/v1/';
     $this->version = 'v1';
     $this->serviceName = 'mapsengine';
     $this->assets = new Google_Service_MapsEngine_Assets_Resource($this, $this->serviceName, 'assets', array('methods' => array('get' => array('path' => 'assets/{id}', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'assets', 'httpMethod' => 'GET', 'parameters' => array('modifiedAfter' => array('location' => 'query', 'type' => 'string'), 'createdAfter' => array('location' => 'query', 'type' => 'string'), 'tags' => array('location' => 'query', 'type' => 'string'), 'projectId' => array('location' => 'query', 'type' => 'string'), 'search' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'creatorEmail' => array('location' => 'query', 'type' => 'string'), 'bbox' => array('location' => 'query', 'type' => 'string'), 'modifiedBefore' => array('location' => 'query', 'type' => 'string'), 'createdBefore' => array('location' => 'query', 'type' => 'string'), 'role' => array('location' => 'query', 'type' => 'string'), 'type' => array('location' => 'query', 'type' => 'string'))))));
     $this->assets_parents = new Google_Service_MapsEngine_AssetsParents_Resource($this, $this->serviceName, 'parents', array('methods' => array('list' => array('path' => 'assets/{id}/parents', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->assets_permissions = new Google_Service_MapsEngine_AssetsPermissions_Resource($this, $this->serviceName, 'permissions', array('methods' => array('list' => array('path' => 'assets/{id}/permissions', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->layers = new Google_Service_MapsEngine_Layers_Resource($this, $this->serviceName, 'layers', array('methods' => array('cancelProcessing' => array('path' => 'layers/{id}/cancelProcessing', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'create' => array('path' => 'layers', 'httpMethod' => 'POST', 'parameters' => array('process' => array('location' => 'query', 'type' => 'boolean'))), 'delete' => array('path' => 'layers/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'layers/{id}', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'version' => array('location' => 'query', 'type' => 'string'))), 'getPublished' => array('path' => 'layers/{id}/published', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'layers', 'httpMethod' => 'GET', 'parameters' => array('modifiedAfter' => array('location' => 'query', 'type' => 'string'), 'createdAfter' => array('location' => 'query', 'type' => 'string'), 'processingStatus' => array('location' => 'query', 'type' => 'string'), 'projectId' => array('location' => 'query', 'type' => 'string'), 'tags' => array('location' => 'query', 'type' => 'string'), 'search' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'creatorEmail' => array('location' => 'query', 'type' => 'string'), 'bbox' => array('location' => 'query', 'type' => 'string'), 'modifiedBefore' => array('location' => 'query', 'type' => 'string'), 'createdBefore' => array('location' => 'query', 'type' => 'string'), 'role' => array('location' => 'query', 'type' => 'string'))), 'listPublished' => array('path' => 'layers/published', 'httpMethod' => 'GET', 'parameters' => array('pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'projectId' => array('location' => 'query', 'type' => 'string'))), 'patch' => array('path' => 'layers/{id}', 'httpMethod' => 'PATCH', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'process' => array('path' => 'layers/{id}/process', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'publish' => array('path' => 'layers/{id}/publish', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'force' => array('location' => 'query', 'type' => 'boolean'))), 'unpublish' => array('path' => 'layers/{id}/unpublish', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->layers_parents = new Google_Service_MapsEngine_LayersParents_Resource($this, $this->serviceName, 'parents', array('methods' => array('list' => array('path' => 'layers/{id}/parents', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->layers_permissions = new Google_Service_MapsEngine_LayersPermissions_Resource($this, $this->serviceName, 'permissions', array('methods' => array('batchDelete' => array('path' => 'layers/{id}/permissions/batchDelete', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'batchUpdate' => array('path' => 'layers/{id}/permissions/batchUpdate', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'layers/{id}/permissions', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->maps = new Google_Service_MapsEngine_Maps_Resource($this, $this->serviceName, 'maps', array('methods' => array('create' => array('path' => 'maps', 'httpMethod' => 'POST', 'parameters' => array()), 'delete' => array('path' => 'maps/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'maps/{id}', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'version' => array('location' => 'query', 'type' => 'string'))), 'getPublished' => array('path' => 'maps/{id}/published', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'maps', 'httpMethod' => 'GET', 'parameters' => array('modifiedAfter' => array('location' => 'query', 'type' => 'string'), 'createdAfter' => array('location' => 'query', 'type' => 'string'), 'processingStatus' => array('location' => 'query', 'type' => 'string'), 'projectId' => array('location' => 'query', 'type' => 'string'), 'tags' => array('location' => 'query', 'type' => 'string'), 'search' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'creatorEmail' => array('location' => 'query', 'type' => 'string'), 'bbox' => array('location' => 'query', 'type' => 'string'), 'modifiedBefore' => array('location' => 'query', 'type' => 'string'), 'createdBefore' => array('location' => 'query', 'type' => 'string'), 'role' => array('location' => 'query', 'type' => 'string'))), 'listPublished' => array('path' => 'maps/published', 'httpMethod' => 'GET', 'parameters' => array('pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'projectId' => array('location' => 'query', 'type' => 'string'))), 'patch' => array('path' => 'maps/{id}', 'httpMethod' => 'PATCH', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'publish' => array('path' => 'maps/{id}/publish', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'force' => array('location' => 'query', 'type' => 'boolean'))), 'unpublish' => array('path' => 'maps/{id}/unpublish', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->maps_permissions = new Google_Service_MapsEngine_MapsPermissions_Resource($this, $this->serviceName, 'permissions', array('methods' => array('batchDelete' => array('path' => 'maps/{id}/permissions/batchDelete', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'batchUpdate' => array('path' => 'maps/{id}/permissions/batchUpdate', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'maps/{id}/permissions', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->projects = new Google_Service_MapsEngine_Projects_Resource($this, $this->serviceName, 'projects', array('methods' => array('list' => array('path' => 'projects', 'httpMethod' => 'GET', 'parameters' => array()))));
     $this->projects_icons = new Google_Service_MapsEngine_ProjectsIcons_Resource($this, $this->serviceName, 'icons', array('methods' => array('create' => array('path' => 'projects/{projectId}/icons', 'httpMethod' => 'POST', 'parameters' => array('projectId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'projects/{projectId}/icons/{id}', 'httpMethod' => 'GET', 'parameters' => array('projectId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'projects/{projectId}/icons', 'httpMethod' => 'GET', 'parameters' => array('projectId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->rasterCollections = new Google_Service_MapsEngine_RasterCollections_Resource($this, $this->serviceName, 'rasterCollections', array('methods' => array('cancelProcessing' => array('path' => 'rasterCollections/{id}/cancelProcessing', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'create' => array('path' => 'rasterCollections', 'httpMethod' => 'POST', 'parameters' => array()), 'delete' => array('path' => 'rasterCollections/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'rasterCollections/{id}', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'rasterCollections', 'httpMethod' => 'GET', 'parameters' => array('modifiedAfter' => array('location' => 'query', 'type' => 'string'), 'createdAfter' => array('location' => 'query', 'type' => 'string'), 'processingStatus' => array('location' => 'query', 'type' => 'string'), 'projectId' => array('location' => 'query', 'type' => 'string'), 'tags' => array('location' => 'query', 'type' => 'string'), 'search' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'creatorEmail' => array('location' => 'query', 'type' => 'string'), 'bbox' => array('location' => 'query', 'type' => 'string'), 'modifiedBefore' => array('location' => 'query', 'type' => 'string'), 'createdBefore' => array('location' => 'query', 'type' => 'string'), 'role' => array('location' => 'query', 'type' => 'string'))), 'patch' => array('path' => 'rasterCollections/{id}', 'httpMethod' => 'PATCH', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'process' => array('path' => 'rasterCollections/{id}/process', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->rasterCollections_parents = new Google_Service_MapsEngine_RasterCollectionsParents_Resource($this, $this->serviceName, 'parents', array('methods' => array('list' => array('path' => 'rasterCollections/{id}/parents', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->rasterCollections_permissions = new Google_Service_MapsEngine_RasterCollectionsPermissions_Resource($this, $this->serviceName, 'permissions', array('methods' => array('batchDelete' => array('path' => 'rasterCollections/{id}/permissions/batchDelete', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'batchUpdate' => array('path' => 'rasterCollections/{id}/permissions/batchUpdate', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'rasterCollections/{id}/permissions', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->rasterCollections_rasters = new Google_Service_MapsEngine_RasterCollectionsRasters_Resource($this, $this->serviceName, 'rasters', array('methods' => array('batchDelete' => array('path' => 'rasterCollections/{id}/rasters/batchDelete', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'batchInsert' => array('path' => 'rasterCollections/{id}/rasters/batchInsert', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'rasterCollections/{id}/rasters', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'modifiedAfter' => array('location' => 'query', 'type' => 'string'), 'createdAfter' => array('location' => 'query', 'type' => 'string'), 'tags' => array('location' => 'query', 'type' => 'string'), 'search' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'creatorEmail' => array('location' => 'query', 'type' => 'string'), 'bbox' => array('location' => 'query', 'type' => 'string'), 'modifiedBefore' => array('location' => 'query', 'type' => 'string'), 'createdBefore' => array('location' => 'query', 'type' => 'string'), 'role' => array('location' => 'query', 'type' => 'string'))))));
     $this->rasters = new Google_Service_MapsEngine_Rasters_Resource($this, $this->serviceName, 'rasters', array('methods' => array('delete' => array('path' => 'rasters/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'rasters/{id}', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'rasters', 'httpMethod' => 'GET', 'parameters' => array('projectId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'modifiedAfter' => array('location' => 'query', 'type' => 'string'), 'createdAfter' => array('location' => 'query', 'type' => 'string'), 'processingStatus' => array('location' => 'query', 'type' => 'string'), 'tags' => array('location' => 'query', 'type' => 'string'), 'search' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'creatorEmail' => array('location' => 'query', 'type' => 'string'), 'bbox' => array('location' => 'query', 'type' => 'string'), 'modifiedBefore' => array('location' => 'query', 'type' => 'string'), 'createdBefore' => array('location' => 'query', 'type' => 'string'), 'role' => array('location' => 'query', 'type' => 'string'))), 'patch' => array('path' => 'rasters/{id}', 'httpMethod' => 'PATCH', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'process' => array('path' => 'rasters/{id}/process', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'upload' => array('path' => 'rasters/upload', 'httpMethod' => 'POST', 'parameters' => array()))));
     $this->rasters_files = new Google_Service_MapsEngine_RastersFiles_Resource($this, $this->serviceName, 'files', array('methods' => array('insert' => array('path' => 'rasters/{id}/files', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filename' => array('location' => 'query', 'type' => 'string', 'required' => true))))));
     $this->rasters_parents = new Google_Service_MapsEngine_RastersParents_Resource($this, $this->serviceName, 'parents', array('methods' => array('list' => array('path' => 'rasters/{id}/parents', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->rasters_permissions = new Google_Service_MapsEngine_RastersPermissions_Resource($this, $this->serviceName, 'permissions', array('methods' => array('batchDelete' => array('path' => 'rasters/{id}/permissions/batchDelete', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'batchUpdate' => array('path' => 'rasters/{id}/permissions/batchUpdate', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'rasters/{id}/permissions', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->tables = new Google_Service_MapsEngine_Tables_Resource($this, $this->serviceName, 'tables', array('methods' => array('create' => array('path' => 'tables', 'httpMethod' => 'POST', 'parameters' => array()), 'delete' => array('path' => 'tables/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'tables/{id}', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'version' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'tables', 'httpMethod' => 'GET', 'parameters' => array('modifiedAfter' => array('location' => 'query', 'type' => 'string'), 'createdAfter' => array('location' => 'query', 'type' => 'string'), 'processingStatus' => array('location' => 'query', 'type' => 'string'), 'projectId' => array('location' => 'query', 'type' => 'string'), 'tags' => array('location' => 'query', 'type' => 'string'), 'search' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'creatorEmail' => array('location' => 'query', 'type' => 'string'), 'bbox' => array('location' => 'query', 'type' => 'string'), 'modifiedBefore' => array('location' => 'query', 'type' => 'string'), 'createdBefore' => array('location' => 'query', 'type' => 'string'), 'role' => array('location' => 'query', 'type' => 'string'))), 'patch' => array('path' => 'tables/{id}', 'httpMethod' => 'PATCH', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'process' => array('path' => 'tables/{id}/process', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'upload' => array('path' => 'tables/upload', 'httpMethod' => 'POST', 'parameters' => array()))));
     $this->tables_features = new Google_Service_MapsEngine_TablesFeatures_Resource($this, $this->serviceName, 'features', array('methods' => array('batchDelete' => array('path' => 'tables/{id}/features/batchDelete', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'batchInsert' => array('path' => 'tables/{id}/features/batchInsert', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'batchPatch' => array('path' => 'tables/{id}/features/batchPatch', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'tables/{tableId}/features/{id}', 'httpMethod' => 'GET', 'parameters' => array('tableId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'version' => array('location' => 'query', 'type' => 'string'), 'select' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'tables/{id}/features', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'orderBy' => array('location' => 'query', 'type' => 'string'), 'intersects' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'version' => array('location' => 'query', 'type' => 'string'), 'limit' => array('location' => 'query', 'type' => 'integer'), 'include' => array('location' => 'query', 'type' => 'string'), 'where' => array('location' => 'query', 'type' => 'string'), 'select' => array('location' => 'query', 'type' => 'string'))))));
     $this->tables_files = new Google_Service_MapsEngine_TablesFiles_Resource($this, $this->serviceName, 'files', array('methods' => array('insert' => array('path' => 'tables/{id}/files', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filename' => array('location' => 'query', 'type' => 'string', 'required' => true))))));
     $this->tables_parents = new Google_Service_MapsEngine_TablesParents_Resource($this, $this->serviceName, 'parents', array('methods' => array('list' => array('path' => 'tables/{id}/parents', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->tables_permissions = new Google_Service_MapsEngine_TablesPermissions_Resource($this, $this->serviceName, 'permissions', array('methods' => array('batchDelete' => array('path' => 'tables/{id}/permissions/batchDelete', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'batchUpdate' => array('path' => 'tables/{id}/permissions/batchUpdate', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'tables/{id}/permissions', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
 }
Example #6
Show file File: youtube.php Project: macconsultinggroup/WordPress
0
 function onNextendYoutube(&$google, &$youtube)
 {
     $config = new NextendData();
     $config->loadJson(NextendSmartSliderStorage::get(self::$_group));
     if (!class_exists('Google_Client')) {
         require_once dirname(__FILE__) . '/googleclient/Google_Client.php';
     }
     if (!class_exists('Google_YouTubeService')) {
         require_once dirname(__FILE__) . '/googleclient/contrib/Google_YouTubeService.php';
     }
     $google = new Google_Client();
     $google->setClientId($config->get('apikey', ''));
     $google->setClientSecret($config->get('apisecret', ''));
     $token = $config->get('token', null);
     if ($token) {
         $google->setAccessToken($token);
     }
     $youtube = new Google_YouTubeService($google);
     if ($google->isAccessTokenExpired()) {
         $token = json_decode($google->getAccessToken(), true);
         if (isset($token['refresh_token'])) {
             $google->refreshToken($token['refresh_token']);
             $config->set('token', $google->getAccessToken());
             NextendSmartSliderStorage::set(self::$_group, $config->toJSON());
         }
     }
 }
Example #7
Show file File: analytics.php Project: Steadroy/Dashboard
0
function getClient()
{
    $client = new Google_Client();
    $client->setApplicationName(getGAAppName());
    $client->setClientId(getGAClientID());
    return $client;
}
Example #8
Show file File: Compute.php Project: kostya1017/our
0
 /**
  * Constructs the internal representation of the Compute service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'compute/v1/projects/';
     $this->version = 'v1';
     $this->serviceName = 'compute';
     $this->addresses = new Google_Service_Compute_Addresses_Resource($this, $this->serviceName, 'addresses', array('methods' => array('aggregatedList' => array('path' => '{project}/aggregated/addresses', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'delete' => array('path' => '{project}/regions/{region}/addresses/{address}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'address' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/regions/{region}/addresses/{address}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'address' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/regions/{region}/addresses', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/regions/{region}/addresses', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->backendServices = new Google_Service_Compute_BackendServices_Resource($this, $this->serviceName, 'backendServices', array('methods' => array('delete' => array('path' => '{project}/global/backendServices/{backendService}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'backendService' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/backendServices/{backendService}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'backendService' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'getHealth' => array('path' => '{project}/global/backendServices/{backendService}/getHealth', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'backendService' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/global/backendServices', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/backendServices', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => '{project}/global/backendServices/{backendService}', 'httpMethod' => 'PATCH', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'backendService' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => '{project}/global/backendServices/{backendService}', 'httpMethod' => 'PUT', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'backendService' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->diskTypes = new Google_Service_Compute_DiskTypes_Resource($this, $this->serviceName, 'diskTypes', array('methods' => array('aggregatedList' => array('path' => '{project}/aggregated/diskTypes', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'get' => array('path' => '{project}/zones/{zone}/diskTypes/{diskType}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'diskType' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/zones/{zone}/diskTypes', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->disks = new Google_Service_Compute_Disks_Resource($this, $this->serviceName, 'disks', array('methods' => array('aggregatedList' => array('path' => '{project}/aggregated/disks', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'createSnapshot' => array('path' => '{project}/zones/{zone}/disks/{disk}/createSnapshot', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'disk' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'delete' => array('path' => '{project}/zones/{zone}/disks/{disk}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'disk' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/zones/{zone}/disks/{disk}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'disk' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/zones/{zone}/disks', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'sourceImage' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => '{project}/zones/{zone}/disks', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->firewalls = new Google_Service_Compute_Firewalls_Resource($this, $this->serviceName, 'firewalls', array('methods' => array('delete' => array('path' => '{project}/global/firewalls/{firewall}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'firewall' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/firewalls/{firewall}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'firewall' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/global/firewalls', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/firewalls', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => '{project}/global/firewalls/{firewall}', 'httpMethod' => 'PATCH', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'firewall' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => '{project}/global/firewalls/{firewall}', 'httpMethod' => 'PUT', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'firewall' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->forwardingRules = new Google_Service_Compute_ForwardingRules_Resource($this, $this->serviceName, 'forwardingRules', array('methods' => array('aggregatedList' => array('path' => '{project}/aggregated/forwardingRules', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'delete' => array('path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'forwardingRule' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'forwardingRule' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/regions/{region}/forwardingRules', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/regions/{region}/forwardingRules', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'setTarget' => array('path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'forwardingRule' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->globalAddresses = new Google_Service_Compute_GlobalAddresses_Resource($this, $this->serviceName, 'globalAddresses', array('methods' => array('delete' => array('path' => '{project}/global/addresses/{address}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'address' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/addresses/{address}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'address' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/global/addresses', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/addresses', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->globalForwardingRules = new Google_Service_Compute_GlobalForwardingRules_Resource($this, $this->serviceName, 'globalForwardingRules', array('methods' => array('delete' => array('path' => '{project}/global/forwardingRules/{forwardingRule}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'forwardingRule' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/forwardingRules/{forwardingRule}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'forwardingRule' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/global/forwardingRules', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/forwardingRules', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'setTarget' => array('path' => '{project}/global/forwardingRules/{forwardingRule}/setTarget', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'forwardingRule' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->globalOperations = new Google_Service_Compute_GlobalOperations_Resource($this, $this->serviceName, 'globalOperations', array('methods' => array('aggregatedList' => array('path' => '{project}/aggregated/operations', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'delete' => array('path' => '{project}/global/operations/{operation}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'operation' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/operations/{operation}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'operation' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/operations', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->httpHealthChecks = new Google_Service_Compute_HttpHealthChecks_Resource($this, $this->serviceName, 'httpHealthChecks', array('methods' => array('delete' => array('path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'httpHealthCheck' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'httpHealthCheck' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/global/httpHealthChecks', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/httpHealthChecks', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', 'httpMethod' => 'PATCH', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'httpHealthCheck' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', 'httpMethod' => 'PUT', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'httpHealthCheck' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->images = new Google_Service_Compute_Images_Resource($this, $this->serviceName, 'images', array('methods' => array('delete' => array('path' => '{project}/global/images/{image}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'image' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'deprecate' => array('path' => '{project}/global/images/{image}/deprecate', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'image' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/images/{image}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'image' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/global/images', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/images', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->instances = new Google_Service_Compute_Instances_Resource($this, $this->serviceName, 'instances', array('methods' => array('addAccessConfig' => array('path' => '{project}/zones/{zone}/instances/{instance}/addAccessConfig', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true), 'networkInterface' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'aggregatedList' => array('path' => '{project}/aggregated/instances', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'attachDisk' => array('path' => '{project}/zones/{zone}/instances/{instance}/attachDisk', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'delete' => array('path' => '{project}/zones/{zone}/instances/{instance}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'deleteAccessConfig' => array('path' => '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true), 'accessConfig' => array('location' => 'query', 'type' => 'string', 'required' => true), 'networkInterface' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'detachDisk' => array('path' => '{project}/zones/{zone}/instances/{instance}/detachDisk', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true), 'deviceName' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/zones/{zone}/instances/{instance}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'getSerialPortOutput' => array('path' => '{project}/zones/{zone}/instances/{instance}/serialPort', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/zones/{zone}/instances', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/zones/{zone}/instances', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'reset' => array('path' => '{project}/zones/{zone}/instances/{instance}/reset', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'setDiskAutoDelete' => array('path' => '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true), 'autoDelete' => array('location' => 'query', 'type' => 'boolean', 'required' => true), 'deviceName' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'setMetadata' => array('path' => '{project}/zones/{zone}/instances/{instance}/setMetadata', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'setScheduling' => array('path' => '{project}/zones/{zone}/instances/{instance}/setScheduling', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'setTags' => array('path' => '{project}/zones/{zone}/instances/{instance}/setTags', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'instance' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->licenses = new Google_Service_Compute_Licenses_Resource($this, $this->serviceName, 'licenses', array('methods' => array('get' => array('path' => '{project}/global/licenses/{license}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'license' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->machineTypes = new Google_Service_Compute_MachineTypes_Resource($this, $this->serviceName, 'machineTypes', array('methods' => array('aggregatedList' => array('path' => '{project}/aggregated/machineTypes', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'get' => array('path' => '{project}/zones/{zone}/machineTypes/{machineType}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'machineType' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/zones/{zone}/machineTypes', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->networks = new Google_Service_Compute_Networks_Resource($this, $this->serviceName, 'networks', array('methods' => array('delete' => array('path' => '{project}/global/networks/{network}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'network' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/networks/{network}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'network' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/global/networks', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/networks', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->projects = new Google_Service_Compute_Projects_Resource($this, $this->serviceName, 'projects', array('methods' => array('get' => array('path' => '{project}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'setCommonInstanceMetadata' => array('path' => '{project}/setCommonInstanceMetadata', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'setUsageExportBucket' => array('path' => '{project}/setUsageExportBucket', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->regionOperations = new Google_Service_Compute_RegionOperations_Resource($this, $this->serviceName, 'regionOperations', array('methods' => array('delete' => array('path' => '{project}/regions/{region}/operations/{operation}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'operation' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/regions/{region}/operations/{operation}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'operation' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/regions/{region}/operations', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->regions = new Google_Service_Compute_Regions_Resource($this, $this->serviceName, 'regions', array('methods' => array('get' => array('path' => '{project}/regions/{region}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/regions', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->routes = new Google_Service_Compute_Routes_Resource($this, $this->serviceName, 'routes', array('methods' => array('delete' => array('path' => '{project}/global/routes/{route}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'route' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/routes/{route}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'route' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/global/routes', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/routes', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->snapshots = new Google_Service_Compute_Snapshots_Resource($this, $this->serviceName, 'snapshots', array('methods' => array('delete' => array('path' => '{project}/global/snapshots/{snapshot}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'snapshot' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/snapshots/{snapshot}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'snapshot' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/snapshots', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->targetHttpProxies = new Google_Service_Compute_TargetHttpProxies_Resource($this, $this->serviceName, 'targetHttpProxies', array('methods' => array('delete' => array('path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetHttpProxy' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetHttpProxy' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/global/targetHttpProxies', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/targetHttpProxies', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'setUrlMap' => array('path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetHttpProxy' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource($this, $this->serviceName, 'targetInstances', array('methods' => array('aggregatedList' => array('path' => '{project}/aggregated/targetInstances', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'delete' => array('path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetInstance' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetInstance' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/zones/{zone}/targetInstances', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/zones/{zone}/targetInstances', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->targetPools = new Google_Service_Compute_TargetPools_Resource($this, $this->serviceName, 'targetPools', array('methods' => array('addHealthCheck' => array('path' => '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetPool' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'addInstance' => array('path' => '{project}/regions/{region}/targetPools/{targetPool}/addInstance', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetPool' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'aggregatedList' => array('path' => '{project}/aggregated/targetPools', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'delete' => array('path' => '{project}/regions/{region}/targetPools/{targetPool}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetPool' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/regions/{region}/targetPools/{targetPool}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetPool' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'getHealth' => array('path' => '{project}/regions/{region}/targetPools/{targetPool}/getHealth', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetPool' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/regions/{region}/targetPools', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/regions/{region}/targetPools', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'removeHealthCheck' => array('path' => '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetPool' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'removeInstance' => array('path' => '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetPool' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'setBackup' => array('path' => '{project}/regions/{region}/targetPools/{targetPool}/setBackup', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'region' => array('location' => 'path', 'type' => 'string', 'required' => true), 'targetPool' => array('location' => 'path', 'type' => 'string', 'required' => true), 'failoverRatio' => array('location' => 'query', 'type' => 'number'))))));
     $this->urlMaps = new Google_Service_Compute_UrlMaps_Resource($this, $this->serviceName, 'urlMaps', array('methods' => array('delete' => array('path' => '{project}/global/urlMaps/{urlMap}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'urlMap' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/global/urlMaps/{urlMap}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'urlMap' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{project}/global/urlMaps', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/global/urlMaps', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => '{project}/global/urlMaps/{urlMap}', 'httpMethod' => 'PATCH', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'urlMap' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => '{project}/global/urlMaps/{urlMap}', 'httpMethod' => 'PUT', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'urlMap' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'validate' => array('path' => '{project}/global/urlMaps/{urlMap}/validate', 'httpMethod' => 'POST', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'urlMap' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource($this, $this->serviceName, 'zoneOperations', array('methods' => array('delete' => array('path' => '{project}/zones/{zone}/operations/{operation}', 'httpMethod' => 'DELETE', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'operation' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{project}/zones/{zone}/operations/{operation}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'operation' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/zones/{zone}/operations', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->zones = new Google_Service_Compute_Zones_Resource($this, $this->serviceName, 'zones', array('methods' => array('get' => array('path' => '{project}/zones/{zone}', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'zone' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => '{project}/zones', 'httpMethod' => 'GET', 'parameters' => array('project' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filter' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
 }
Example #9
Show file File: Books.php Project: httvncoder/151722441
0
 /**
  * Constructs the internal representation of the Books service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'books/v1/';
     $this->version = 'v1';
     $this->serviceName = 'books';
     $this->bookshelves = new Google_Service_Books_Bookshelves_Resource($this, $this->serviceName, 'bookshelves', array('methods' => array('get' => array('path' => 'users/{userId}/bookshelves/{shelf}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'shelf' => array('location' => 'path', 'type' => 'string', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'users/{userId}/bookshelves', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'))))));
     $this->bookshelves_volumes = new Google_Service_Books_BookshelvesVolumes_Resource($this, $this->serviceName, 'volumes', array('methods' => array('list' => array('path' => 'users/{userId}/bookshelves/{shelf}/volumes', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'shelf' => array('location' => 'path', 'type' => 'string', 'required' => true), 'showPreorders' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'source' => array('location' => 'query', 'type' => 'string'), 'startIndex' => array('location' => 'query', 'type' => 'integer'))))));
     $this->cloudloading = new Google_Service_Books_Cloudloading_Resource($this, $this->serviceName, 'cloudloading', array('methods' => array('addBook' => array('path' => 'cloudloading/addBook', 'httpMethod' => 'POST', 'parameters' => array('upload_client_token' => array('location' => 'query', 'type' => 'string'), 'drive_document_id' => array('location' => 'query', 'type' => 'string'), 'mime_type' => array('location' => 'query', 'type' => 'string'), 'name' => array('location' => 'query', 'type' => 'string'))), 'deleteBook' => array('path' => 'cloudloading/deleteBook', 'httpMethod' => 'POST', 'parameters' => array('volumeId' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'updateBook' => array('path' => 'cloudloading/updateBook', 'httpMethod' => 'POST', 'parameters' => array()))));
     $this->dictionary = new Google_Service_Books_Dictionary_Resource($this, $this->serviceName, 'dictionary', array('methods' => array('listOfflineMetadata' => array('path' => 'dictionary/listOfflineMetadata', 'httpMethod' => 'GET', 'parameters' => array('cpksver' => array('location' => 'query', 'type' => 'string', 'required' => true))))));
     $this->layers = new Google_Service_Books_Layers_Resource($this, $this->serviceName, 'layers', array('methods' => array('get' => array('path' => 'volumes/{volumeId}/layersummary/{summaryId}', 'httpMethod' => 'GET', 'parameters' => array('volumeId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'summaryId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'), 'contentVersion' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'volumes/{volumeId}/layersummary', 'httpMethod' => 'GET', 'parameters' => array('volumeId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'contentVersion' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'source' => array('location' => 'query', 'type' => 'string'))))));
     $this->layers_annotationData = new Google_Service_Books_LayersAnnotationData_Resource($this, $this->serviceName, 'annotationData', array('methods' => array('get' => array('path' => 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', 'httpMethod' => 'GET', 'parameters' => array('volumeId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'layerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'annotationDataId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'contentVersion' => array('location' => 'query', 'type' => 'string', 'required' => true), 'scale' => array('location' => 'query', 'type' => 'integer'), 'source' => array('location' => 'query', 'type' => 'string'), 'allowWebDefinitions' => array('location' => 'query', 'type' => 'boolean'), 'h' => array('location' => 'query', 'type' => 'integer'), 'locale' => array('location' => 'query', 'type' => 'string'), 'w' => array('location' => 'query', 'type' => 'integer'))), 'list' => array('path' => 'volumes/{volumeId}/layers/{layerId}/data', 'httpMethod' => 'GET', 'parameters' => array('volumeId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'layerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'contentVersion' => array('location' => 'query', 'type' => 'string', 'required' => true), 'scale' => array('location' => 'query', 'type' => 'integer'), 'source' => array('location' => 'query', 'type' => 'string'), 'locale' => array('location' => 'query', 'type' => 'string'), 'h' => array('location' => 'query', 'type' => 'integer'), 'updatedMax' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'annotationDataId' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'w' => array('location' => 'query', 'type' => 'integer'), 'updatedMin' => array('location' => 'query', 'type' => 'string'))))));
     $this->layers_volumeAnnotations = new Google_Service_Books_LayersVolumeAnnotations_Resource($this, $this->serviceName, 'volumeAnnotations', array('methods' => array('get' => array('path' => 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', 'httpMethod' => 'GET', 'parameters' => array('volumeId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'layerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'annotationId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'locale' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'volumes/{volumeId}/layers/{layerId}', 'httpMethod' => 'GET', 'parameters' => array('volumeId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'layerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'contentVersion' => array('location' => 'query', 'type' => 'string', 'required' => true), 'showDeleted' => array('location' => 'query', 'type' => 'boolean'), 'volumeAnnotationsVersion' => array('location' => 'query', 'type' => 'string'), 'endPosition' => array('location' => 'query', 'type' => 'string'), 'endOffset' => array('location' => 'query', 'type' => 'string'), 'locale' => array('location' => 'query', 'type' => 'string'), 'updatedMin' => array('location' => 'query', 'type' => 'string'), 'updatedMax' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'), 'startOffset' => array('location' => 'query', 'type' => 'string'), 'startPosition' => array('location' => 'query', 'type' => 'string'))))));
     $this->myconfig = new Google_Service_Books_Myconfig_Resource($this, $this->serviceName, 'myconfig', array('methods' => array('getUserSettings' => array('path' => 'myconfig/getUserSettings', 'httpMethod' => 'GET', 'parameters' => array()), 'releaseDownloadAccess' => array('path' => 'myconfig/releaseDownloadAccess', 'httpMethod' => 'POST', 'parameters' => array('volumeIds' => array('location' => 'query', 'type' => 'string', 'repeated' => true, 'required' => true), 'cpksver' => array('location' => 'query', 'type' => 'string', 'required' => true), 'locale' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'))), 'requestAccess' => array('path' => 'myconfig/requestAccess', 'httpMethod' => 'POST', 'parameters' => array('source' => array('location' => 'query', 'type' => 'string', 'required' => true), 'volumeId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'nonce' => array('location' => 'query', 'type' => 'string', 'required' => true), 'cpksver' => array('location' => 'query', 'type' => 'string', 'required' => true), 'licenseTypes' => array('location' => 'query', 'type' => 'string'), 'locale' => array('location' => 'query', 'type' => 'string'))), 'syncVolumeLicenses' => array('path' => 'myconfig/syncVolumeLicenses', 'httpMethod' => 'POST', 'parameters' => array('source' => array('location' => 'query', 'type' => 'string', 'required' => true), 'nonce' => array('location' => 'query', 'type' => 'string', 'required' => true), 'cpksver' => array('location' => 'query', 'type' => 'string', 'required' => true), 'features' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'locale' => array('location' => 'query', 'type' => 'string'), 'showPreorders' => array('location' => 'query', 'type' => 'boolean'), 'volumeIds' => array('location' => 'query', 'type' => 'string', 'repeated' => true))), 'updateUserSettings' => array('path' => 'myconfig/updateUserSettings', 'httpMethod' => 'POST', 'parameters' => array()))));
     $this->mylibrary_annotations = new Google_Service_Books_MylibraryAnnotations_Resource($this, $this->serviceName, 'annotations', array('methods' => array('delete' => array('path' => 'mylibrary/annotations/{annotationId}', 'httpMethod' => 'DELETE', 'parameters' => array('annotationId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'))), 'get' => array('path' => 'mylibrary/annotations/{annotationId}', 'httpMethod' => 'GET', 'parameters' => array('annotationId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'mylibrary/annotations', 'httpMethod' => 'POST', 'parameters' => array('country' => array('location' => 'query', 'type' => 'string'), 'showOnlySummaryInResponse' => array('location' => 'query', 'type' => 'boolean'), 'source' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'mylibrary/annotations', 'httpMethod' => 'GET', 'parameters' => array('showDeleted' => array('location' => 'query', 'type' => 'boolean'), 'updatedMin' => array('location' => 'query', 'type' => 'string'), 'layerIds' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'volumeId' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'pageIds' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'contentVersion' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'), 'layerId' => array('location' => 'query', 'type' => 'string'), 'updatedMax' => array('location' => 'query', 'type' => 'string'))), 'summary' => array('path' => 'mylibrary/annotations/summary', 'httpMethod' => 'POST', 'parameters' => array('layerIds' => array('location' => 'query', 'type' => 'string', 'repeated' => true, 'required' => true), 'volumeId' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'mylibrary/annotations/{annotationId}', 'httpMethod' => 'PUT', 'parameters' => array('annotationId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'))))));
     $this->mylibrary_bookshelves = new Google_Service_Books_MylibraryBookshelves_Resource($this, $this->serviceName, 'bookshelves', array('methods' => array('addVolume' => array('path' => 'mylibrary/bookshelves/{shelf}/addVolume', 'httpMethod' => 'POST', 'parameters' => array('shelf' => array('location' => 'path', 'type' => 'string', 'required' => true), 'volumeId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'reason' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'))), 'clearVolumes' => array('path' => 'mylibrary/bookshelves/{shelf}/clearVolumes', 'httpMethod' => 'POST', 'parameters' => array('shelf' => array('location' => 'path', 'type' => 'string', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'))), 'get' => array('path' => 'mylibrary/bookshelves/{shelf}', 'httpMethod' => 'GET', 'parameters' => array('shelf' => array('location' => 'path', 'type' => 'string', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'mylibrary/bookshelves', 'httpMethod' => 'GET', 'parameters' => array('source' => array('location' => 'query', 'type' => 'string'))), 'moveVolume' => array('path' => 'mylibrary/bookshelves/{shelf}/moveVolume', 'httpMethod' => 'POST', 'parameters' => array('shelf' => array('location' => 'path', 'type' => 'string', 'required' => true), 'volumeId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'volumePosition' => array('location' => 'query', 'type' => 'integer', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'))), 'removeVolume' => array('path' => 'mylibrary/bookshelves/{shelf}/removeVolume', 'httpMethod' => 'POST', 'parameters' => array('shelf' => array('location' => 'path', 'type' => 'string', 'required' => true), 'volumeId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'))))));
     $this->mylibrary_bookshelves_volumes = new Google_Service_Books_MylibraryBookshelvesVolumes_Resource($this, $this->serviceName, 'volumes', array('methods' => array('list' => array('path' => 'mylibrary/bookshelves/{shelf}/volumes', 'httpMethod' => 'GET', 'parameters' => array('shelf' => array('location' => 'path', 'type' => 'string', 'required' => true), 'projection' => array('location' => 'query', 'type' => 'string'), 'country' => array('location' => 'query', 'type' => 'string'), 'showPreorders' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'q' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'), 'startIndex' => array('location' => 'query', 'type' => 'integer'))))));
     $this->mylibrary_readingpositions = new Google_Service_Books_MylibraryReadingpositions_Resource($this, $this->serviceName, 'readingpositions', array('methods' => array('get' => array('path' => 'mylibrary/readingpositions/{volumeId}', 'httpMethod' => 'GET', 'parameters' => array('volumeId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'), 'contentVersion' => array('location' => 'query', 'type' => 'string'))), 'setPosition' => array('path' => 'mylibrary/readingpositions/{volumeId}/setPosition', 'httpMethod' => 'POST', 'parameters' => array('volumeId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'timestamp' => array('location' => 'query', 'type' => 'string', 'required' => true), 'position' => array('location' => 'query', 'type' => 'string', 'required' => true), 'deviceCookie' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'), 'contentVersion' => array('location' => 'query', 'type' => 'string'), 'action' => array('location' => 'query', 'type' => 'string'))))));
     $this->onboarding = new Google_Service_Books_Onboarding_Resource($this, $this->serviceName, 'onboarding', array('methods' => array('listCategories' => array('path' => 'onboarding/listCategories', 'httpMethod' => 'GET', 'parameters' => array('locale' => array('location' => 'query', 'type' => 'string'))), 'listCategoryVolumes' => array('path' => 'onboarding/listCategoryVolumes', 'httpMethod' => 'GET', 'parameters' => array('locale' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'categoryId' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'pageSize' => array('location' => 'query', 'type' => 'integer'))))));
     $this->promooffer = new Google_Service_Books_Promooffer_Resource($this, $this->serviceName, 'promooffer', array('methods' => array('accept' => array('path' => 'promooffer/accept', 'httpMethod' => 'POST', 'parameters' => array('product' => array('location' => 'query', 'type' => 'string'), 'volumeId' => array('location' => 'query', 'type' => 'string'), 'offerId' => array('location' => 'query', 'type' => 'string'), 'androidId' => array('location' => 'query', 'type' => 'string'), 'device' => array('location' => 'query', 'type' => 'string'), 'model' => array('location' => 'query', 'type' => 'string'), 'serial' => array('location' => 'query', 'type' => 'string'), 'manufacturer' => array('location' => 'query', 'type' => 'string'))), 'dismiss' => array('path' => 'promooffer/dismiss', 'httpMethod' => 'POST', 'parameters' => array('product' => array('location' => 'query', 'type' => 'string'), 'offerId' => array('location' => 'query', 'type' => 'string'), 'androidId' => array('location' => 'query', 'type' => 'string'), 'device' => array('location' => 'query', 'type' => 'string'), 'model' => array('location' => 'query', 'type' => 'string'), 'serial' => array('location' => 'query', 'type' => 'string'), 'manufacturer' => array('location' => 'query', 'type' => 'string'))), 'get' => array('path' => 'promooffer/get', 'httpMethod' => 'GET', 'parameters' => array('product' => array('location' => 'query', 'type' => 'string'), 'androidId' => array('location' => 'query', 'type' => 'string'), 'device' => array('location' => 'query', 'type' => 'string'), 'model' => array('location' => 'query', 'type' => 'string'), 'serial' => array('location' => 'query', 'type' => 'string'), 'manufacturer' => array('location' => 'query', 'type' => 'string'))))));
     $this->volumes = new Google_Service_Books_Volumes_Resource($this, $this->serviceName, 'volumes', array('methods' => array('get' => array('path' => 'volumes/{volumeId}', 'httpMethod' => 'GET', 'parameters' => array('volumeId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'source' => array('location' => 'query', 'type' => 'string'), 'country' => array('location' => 'query', 'type' => 'string'), 'projection' => array('location' => 'query', 'type' => 'string'), 'partner' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'volumes', 'httpMethod' => 'GET', 'parameters' => array('q' => array('location' => 'query', 'type' => 'string', 'required' => true), 'orderBy' => array('location' => 'query', 'type' => 'string'), 'projection' => array('location' => 'query', 'type' => 'string'), 'libraryRestrict' => array('location' => 'query', 'type' => 'string'), 'langRestrict' => array('location' => 'query', 'type' => 'string'), 'showPreorders' => array('location' => 'query', 'type' => 'boolean'), 'printType' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'filter' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'), 'startIndex' => array('location' => 'query', 'type' => 'integer'), 'download' => array('location' => 'query', 'type' => 'string'), 'partner' => array('location' => 'query', 'type' => 'string'))))));
     $this->volumes_associated = new Google_Service_Books_VolumesAssociated_Resource($this, $this->serviceName, 'associated', array('methods' => array('list' => array('path' => 'volumes/{volumeId}/associated', 'httpMethod' => 'GET', 'parameters' => array('volumeId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'locale' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'), 'association' => array('location' => 'query', 'type' => 'string'))))));
     $this->volumes_mybooks = new Google_Service_Books_VolumesMybooks_Resource($this, $this->serviceName, 'mybooks', array('methods' => array('list' => array('path' => 'volumes/mybooks', 'httpMethod' => 'GET', 'parameters' => array('locale' => array('location' => 'query', 'type' => 'string'), 'startIndex' => array('location' => 'query', 'type' => 'integer'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'source' => array('location' => 'query', 'type' => 'string'), 'acquireMethod' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'processingState' => array('location' => 'query', 'type' => 'string', 'repeated' => true))))));
     $this->volumes_recommended = new Google_Service_Books_VolumesRecommended_Resource($this, $this->serviceName, 'recommended', array('methods' => array('list' => array('path' => 'volumes/recommended', 'httpMethod' => 'GET', 'parameters' => array('locale' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'))), 'rate' => array('path' => 'volumes/recommended/rate', 'httpMethod' => 'POST', 'parameters' => array('rating' => array('location' => 'query', 'type' => 'string', 'required' => true), 'volumeId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'locale' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'))))));
     $this->volumes_useruploaded = new Google_Service_Books_VolumesUseruploaded_Resource($this, $this->serviceName, 'useruploaded', array('methods' => array('list' => array('path' => 'volumes/useruploaded', 'httpMethod' => 'GET', 'parameters' => array('locale' => array('location' => 'query', 'type' => 'string'), 'volumeId' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'source' => array('location' => 'query', 'type' => 'string'), 'startIndex' => array('location' => 'query', 'type' => 'integer'), 'processingState' => array('location' => 'query', 'type' => 'string', 'repeated' => true))))));
 }
Example #10
Show file File: class.GoogleApi.php Project: neocodesoftware/NeoCode-FmUsage
0
 /**
  * Returns an authorized API client.
  * @return Google_Client the authorized client object
  */
 private function getGoogleApiClient()
 {
     $client = new Google_Client();
     $client->setApplicationName($this->CFG['GOOGLE_API_APPLICATION_NAME']);
     $client->setScopes(Google_Service_Calendar::CALENDAR);
     $client->setAuthConfigFile($this->CFG['GOOGLE_API_CLIENT_SECRET_PATH']);
     $client->setAccessType('offline');
     // Load previously authorized credentials from a file.
     $credentialsPath = $this->CFG['GOOGLE_API_CREDENTIALS_PATH'];
     if (file_exists($credentialsPath)) {
         $accessToken = file_get_contents($credentialsPath);
     } else {
         // Request authorization from the user.
         $authUrl = $client->createAuthUrl();
         printf("Open the following link in your browser:\n%s\n", $authUrl);
         print 'Enter verification code: ';
         $authCode = trim(fgets(STDIN));
         // Exchange authorization code for an access token.
         $accessToken = $client->authenticate($authCode);
         // Store the credentials to disk.
         if (!file_exists(dirname($credentialsPath))) {
             mkdir(dirname($credentialsPath), 0700, true);
         }
         file_put_contents($credentialsPath, $accessToken);
         printf("Credentials saved to %s\n", $credentialsPath);
     }
     $client->setAccessToken($accessToken);
     // Refresh the token if it's expired.
     if ($client->isAccessTokenExpired()) {
         $client->refreshToken($client->getRefreshToken());
         file_put_contents($credentialsPath, $client->getAccessToken());
     }
     return $client;
 }
Example #11
Show file File: gcal.php Project: sbubaron/MagicMirror
0
/**
 * Returns an authorized API client.
 * @return Google_Client the authorized client object
 */
function getClient()
{
    $client = new Google_Client();
    $client->setApplicationName(APPLICATION_NAME);
    $client->setScopes(SCOPES);
    $client->setAuthConfigFile(CLIENT_SECRET_PATH);
    $client->setAccessType('offline');
    // Load previously authorized credentials from a file.
    $credentialsPath = expandHomeDirectory(CREDENTIALS_PATH);
    if (file_exists($credentialsPath)) {
        $accessToken = file_get_contents($credentialsPath);
    } else {
        // Request authorization from the user.
        $authUrl = $client->createAuthUrl();
        printf("Open the following link in your browser:\n%s\n", $authUrl);
        print 'Enter verification code: ';
        $authCode = trim(fgets(STDIN));
        // Exchange authorization code for an access token.
        $accessToken = $client->authenticate($authCode);
        // Store the credentials to disk.
        if (!file_exists(dirname($credentialsPath))) {
            mkdir(dirname($credentialsPath), 0700, true);
        }
        file_put_contents($credentialsPath, $accessToken);
        printf("Credentials saved to %s\n", $credentialsPath);
    }
    $client->setAccessToken($accessToken);
    // Refresh the token if it's expired.
    if ($client->isAccessTokenExpired()) {
        $client->refreshToken($client->getRefreshToken());
        file_put_contents($credentialsPath, $client->getAccessToken());
    }
    return $client;
}
Example #12
Show file File: LoginController.php Project: carlosqueiroz/nosh-core
0
 public function googleoauth()
 {
     $file = File::get(__DIR__ . "/../../.google");
     $file_arr = json_decode($file, true);
     $practice = DB::table('practiceinfo')->where('practice_id', '=', Session::get('practice_id'))->first();
     $client_id = $file_arr['web']['client_id'];
     $client_secret = $file_arr['web']['client_secret'];
     $url = Request::URL();
     $google = new Google_Client();
     $google->setRedirectUri($url);
     $google->setApplicationName('NOSH ChartingSystem');
     $google->setClientID($client_id);
     $google->setClientSecret($client_secret);
     $google->setAccessType('offline');
     $google->setApprovalPrompt('force');
     $google->setScopes(array('https://mail.google.com/'));
     if (isset($_REQUEST["code"])) {
         $credentials = $google->authenticate($_GET['code']);
         $result = json_decode($credentials, true);
         $data['google_refresh_token'] = $result['refresh_token'];
         DB::table('practiceinfo')->where('practice_id', '=', Session::get('practice_id'))->update($data);
         return Redirect::intended('/');
     } else {
         $authUrl = $google->createAuthUrl();
         header('Location: ' . filter_var($authUrl, FILTER_SANITIZE_URL));
         exit;
     }
 }
Example #13
Show file File: Psr.php Project: ksaltik/YouTube-Analytics-Dashboard
0
 /**
  * @param Google_Client $client           The current Google client
  * @param Psr\Log\LoggerInterface $logger PSR-3 logger where logging will be delegated.
  */
 public function __construct(Google_Client $client, $logger = null)
 {
     parent::__construct($client);
     if ($logger) {
         $this->setLogger($logger);
     }
 }
Example #14
Show file File: Analytics.php Project: huuly188/vietnamrealty
0
 /**
  * Constructs the internal representation of the Analytics service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'analytics/v3/';
     $this->version = 'v3';
     $this->serviceName = 'analytics';
     $this->data_ga = new Google_Service_Analytics_DataGa_Resource($this, $this->serviceName, 'ga', array('methods' => array('get' => array('path' => 'data/ga', 'httpMethod' => 'GET', 'parameters' => array('ids' => array('location' => 'query', 'type' => 'string', 'required' => true), 'start-date' => array('location' => 'query', 'type' => 'string', 'required' => true), 'end-date' => array('location' => 'query', 'type' => 'string', 'required' => true), 'metrics' => array('location' => 'query', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'sort' => array('location' => 'query', 'type' => 'string'), 'dimensions' => array('location' => 'query', 'type' => 'string'), 'start-index' => array('location' => 'query', 'type' => 'integer'), 'segment' => array('location' => 'query', 'type' => 'string'), 'samplingLevel' => array('location' => 'query', 'type' => 'string'), 'filters' => array('location' => 'query', 'type' => 'string'), 'output' => array('location' => 'query', 'type' => 'string'))))));
     $this->data_mcf = new Google_Service_Analytics_DataMcf_Resource($this, $this->serviceName, 'mcf', array('methods' => array('get' => array('path' => 'data/mcf', 'httpMethod' => 'GET', 'parameters' => array('ids' => array('location' => 'query', 'type' => 'string', 'required' => true), 'start-date' => array('location' => 'query', 'type' => 'string', 'required' => true), 'end-date' => array('location' => 'query', 'type' => 'string', 'required' => true), 'metrics' => array('location' => 'query', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'sort' => array('location' => 'query', 'type' => 'string'), 'dimensions' => array('location' => 'query', 'type' => 'string'), 'start-index' => array('location' => 'query', 'type' => 'integer'), 'samplingLevel' => array('location' => 'query', 'type' => 'string'), 'filters' => array('location' => 'query', 'type' => 'string'))))));
     $this->data_realtime = new Google_Service_Analytics_DataRealtime_Resource($this, $this->serviceName, 'realtime', array('methods' => array('get' => array('path' => 'data/realtime', 'httpMethod' => 'GET', 'parameters' => array('ids' => array('location' => 'query', 'type' => 'string', 'required' => true), 'metrics' => array('location' => 'query', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'sort' => array('location' => 'query', 'type' => 'string'), 'dimensions' => array('location' => 'query', 'type' => 'string'), 'filters' => array('location' => 'query', 'type' => 'string'))))));
     $this->management_accountSummaries = new Google_Service_Analytics_ManagementAccountSummaries_Resource($this, $this->serviceName, 'accountSummaries', array('methods' => array('list' => array('path' => 'management/accountSummaries', 'httpMethod' => 'GET', 'parameters' => array('max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))))));
     $this->management_accountUserLinks = new Google_Service_Analytics_ManagementAccountUserLinks_Resource($this, $this->serviceName, 'accountUserLinks', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/entityUserLinks', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/entityUserLinks', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'update' => array('path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_accounts = new Google_Service_Analytics_ManagementAccounts_Resource($this, $this->serviceName, 'accounts', array('methods' => array('list' => array('path' => 'management/accounts', 'httpMethod' => 'GET', 'parameters' => array('max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))))));
     $this->management_customDataSources = new Google_Service_Analytics_ManagementCustomDataSources_Resource($this, $this->serviceName, 'customDataSources', array('methods' => array('list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))))));
     $this->management_dailyUploads = new Google_Service_Analytics_ManagementDailyUploads_Resource($this, $this->serviceName, 'dailyUploads', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'date' => array('location' => 'path', 'type' => 'string', 'required' => true), 'type' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'start-date' => array('location' => 'query', 'type' => 'string', 'required' => true), 'end-date' => array('location' => 'query', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'upload' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'date' => array('location' => 'path', 'type' => 'string', 'required' => true), 'appendNumber' => array('location' => 'query', 'type' => 'integer', 'required' => true), 'type' => array('location' => 'query', 'type' => 'string', 'required' => true), 'reset' => array('location' => 'query', 'type' => 'boolean'))))));
     $this->management_experiments = new Google_Service_Analytics_ManagementExperiments_Resource($this, $this->serviceName, 'experiments', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'experimentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'experimentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'experimentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'experimentId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_filters = new Google_Service_Analytics_ManagementFilters_Resource($this, $this->serviceName, 'filters', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filterId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filterId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/filters', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/filters', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filterId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'filterId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_goals = new Google_Service_Analytics_ManagementGoals_Resource($this, $this->serviceName, 'goals', array('methods' => array('get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'goalId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'goalId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'goalId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_profileFilterLinks = new Google_Service_Analytics_ManagementProfileFilterLinks_Resource($this, $this->serviceName, 'profileFilterLinks', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_profileUserLinks = new Google_Service_Analytics_ManagementProfileUserLinks_Resource($this, $this->serviceName, 'profileUserLinks', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_profiles = new Google_Service_Analytics_ManagementProfiles_Resource($this, $this->serviceName, 'profiles', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_segments = new Google_Service_Analytics_ManagementSegments_Resource($this, $this->serviceName, 'segments', array('methods' => array('list' => array('path' => 'management/segments', 'httpMethod' => 'GET', 'parameters' => array('max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))))));
     $this->management_unsampledReports = new Google_Service_Analytics_ManagementUnsampledReports_Resource($this, $this->serviceName, 'unsampledReports', array('methods' => array('get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'unsampledReportId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'profileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))))));
     $this->management_uploads = new Google_Service_Analytics_ManagementUploads_Resource($this, $this->serviceName, 'uploads', array('methods' => array('deleteUploadData' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'uploadId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'migrateDataImport' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/migrateDataImport', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'uploadData' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customDataSourceId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_webPropertyAdWordsLinks = new Google_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource($this, $this->serviceName, 'webPropertyAdWordsLinks', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyAdWordsLinkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyAdWordsLinkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyAdWordsLinkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyAdWordsLinkId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_webproperties = new Google_Service_Analytics_ManagementWebproperties_Resource($this, $this->serviceName, 'webproperties', array('methods' => array('get' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 'httpMethod' => 'PATCH', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->management_webpropertyUserLinks = new Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource($this, $this->serviceName, 'webpropertyUserLinks', array('methods' => array('delete' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', 'httpMethod' => 'POST', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'max-results' => array('location' => 'query', 'type' => 'integer'), 'start-index' => array('location' => 'query', 'type' => 'integer'))), 'update' => array('path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'webPropertyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'linkId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->metadata_columns = new Google_Service_Analytics_MetadataColumns_Resource($this, $this->serviceName, 'columns', array('methods' => array('list' => array('path' => 'metadata/{reportType}/columns', 'httpMethod' => 'GET', 'parameters' => array('reportType' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->provisioning = new Google_Service_Analytics_Provisioning_Resource($this, $this->serviceName, 'provisioning', array('methods' => array('createAccountTicket' => array('path' => 'provisioning/createAccountTicket', 'httpMethod' => 'POST', 'parameters' => array()))));
 }
Example #15
Show file File: JSONTest.php Project: gonejack/tumblr-images-datastore
0
 /**
  * Setup the Google Cient with our 'monitored' HTTP IO
  *
  * @return \Google_Client
  */
 private function setupTestClient()
 {
     $obj_client = new \Google_Client();
     $this->obj_fake_io = new Google_IO_Fake($obj_client);
     $obj_client->setIo($this->obj_fake_io);
     return $obj_client;
 }
Example #16
Show file File: GoogleRequestor.class.php Project: lightbringer1991/Projects
0
 public function getYouTubeVideos($maxResults = 5)
 {
     $client = new Google_Client();
     $client->setDeveloperKey(self::$apiKey);
     $youtube = new Google_Service_YouTube($client);
     try {
         $searchResponse = $youtube->search->listSearch('id,snippet', array('type' => 'video', 'q' => urlencode($this->keyword), 'maxResults' => $maxResults, 'order' => 'viewCount'));
         $videos = array();
         $videoIds = array();
         foreach ($searchResponse['items'] as $result) {
             array_push($videoIds, $result['id']['videoId']);
             $videos[$result['id']['videoId']] = array('url' => $this->youtubeBaseURL . $result['id']['videoId'], 'thumbnail' => $result['snippet']['thumbnails']['high']['url']);
         }
         $videoResponse = $youtube->videos->listVideos('id,contentDetails,statistics', array('id' => join(',', $videoIds)));
         foreach ($videoResponse['items'] as $videoResult) {
             $duration = $this->getYouTubeDurations($videoResult['contentDetails']['duration']);
             $videos[$videoResult['id']]['duration'] = "{$duration[0]}:{$duration[1]}";
             $videos[$videoResult['id']]['views'] = $videoResult['statistics']['viewCount'];
         }
         return $videos;
     } catch (Google_Service_Exception $e) {
         die(sprintf('<p>A service error occurred: <code>%s</code></p>', htmlspecialchars($e->getMessage())));
     } catch (Google_Exception $e) {
         die(sprintf('<p>An client error occurred: <code>%s</code></p>', htmlspecialchars($e->getMessage())));
     }
     return null;
 }
Example #17
Show file File: AdSense.php Project: dasatti/dashboard
0
 /**
  * Constructs the internal representation of the AdSense service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'adsense/v1.4/';
     $this->version = 'v1.4';
     $this->serviceName = 'adsense';
     $this->accounts = new Google_Service_AdSense_Accounts_Resource($this, $this->serviceName, 'accounts', array('methods' => array('get' => array('path' => 'accounts/{accountId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'tree' => array('location' => 'query', 'type' => 'boolean'))), 'list' => array('path' => 'accounts', 'httpMethod' => 'GET', 'parameters' => array('pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->accounts_adclients = new Google_Service_AdSense_AccountsAdclients_Resource($this, $this->serviceName, 'adclients', array('methods' => array('list' => array('path' => 'accounts/{accountId}/adclients', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->accounts_adunits = new Google_Service_AdSense_AccountsAdunits_Resource($this, $this->serviceName, 'adunits', array('methods' => array('get' => array('path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adUnitId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'getAdCode' => array('path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adUnitId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'includeInactive' => array('location' => 'query', 'type' => 'boolean'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->accounts_adunits_customchannels = new Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource($this, $this->serviceName, 'customchannels', array('methods' => array('list' => array('path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adUnitId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->accounts_alerts = new Google_Service_AdSense_AccountsAlerts_Resource($this, $this->serviceName, 'alerts', array('methods' => array('delete' => array('path' => 'accounts/{accountId}/alerts/{alertId}', 'httpMethod' => 'DELETE', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'alertId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'accounts/{accountId}/alerts', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'locale' => array('location' => 'query', 'type' => 'string'))))));
     $this->accounts_customchannels = new Google_Service_AdSense_AccountsCustomchannels_Resource($this, $this->serviceName, 'customchannels', array('methods' => array('get' => array('path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customChannelId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->accounts_customchannels_adunits = new Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource($this, $this->serviceName, 'adunits', array('methods' => array('list' => array('path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customChannelId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'includeInactive' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'))))));
     $this->accounts_payments = new Google_Service_AdSense_AccountsPayments_Resource($this, $this->serviceName, 'payments', array('methods' => array('list' => array('path' => 'accounts/{accountId}/payments', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->accounts_reports = new Google_Service_AdSense_AccountsReports_Resource($this, $this->serviceName, 'reports', array('methods' => array('generate' => array('path' => 'accounts/{accountId}/reports', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'startDate' => array('location' => 'query', 'type' => 'string', 'required' => true), 'endDate' => array('location' => 'query', 'type' => 'string', 'required' => true), 'sort' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'locale' => array('location' => 'query', 'type' => 'string'), 'metric' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'filter' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'currency' => array('location' => 'query', 'type' => 'string'), 'startIndex' => array('location' => 'query', 'type' => 'integer'), 'useTimezoneReporting' => array('location' => 'query', 'type' => 'boolean'), 'dimension' => array('location' => 'query', 'type' => 'string', 'repeated' => true))))));
     $this->accounts_reports_saved = new Google_Service_AdSense_AccountsReportsSaved_Resource($this, $this->serviceName, 'saved', array('methods' => array('generate' => array('path' => 'accounts/{accountId}/reports/{savedReportId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'savedReportId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'locale' => array('location' => 'query', 'type' => 'string'), 'startIndex' => array('location' => 'query', 'type' => 'integer'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'list' => array('path' => 'accounts/{accountId}/reports/saved', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->accounts_savedadstyles = new Google_Service_AdSense_AccountsSavedadstyles_Resource($this, $this->serviceName, 'savedadstyles', array('methods' => array('get' => array('path' => 'accounts/{accountId}/savedadstyles/{savedAdStyleId}', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'savedAdStyleId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'accounts/{accountId}/savedadstyles', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->accounts_urlchannels = new Google_Service_AdSense_AccountsUrlchannels_Resource($this, $this->serviceName, 'urlchannels', array('methods' => array('list' => array('path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels', 'httpMethod' => 'GET', 'parameters' => array('accountId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->adclients = new Google_Service_AdSense_Adclients_Resource($this, $this->serviceName, 'adclients', array('methods' => array('list' => array('path' => 'adclients', 'httpMethod' => 'GET', 'parameters' => array('pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->adunits = new Google_Service_AdSense_Adunits_Resource($this, $this->serviceName, 'adunits', array('methods' => array('get' => array('path' => 'adclients/{adClientId}/adunits/{adUnitId}', 'httpMethod' => 'GET', 'parameters' => array('adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adUnitId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'getAdCode' => array('path' => 'adclients/{adClientId}/adunits/{adUnitId}/adcode', 'httpMethod' => 'GET', 'parameters' => array('adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adUnitId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'adclients/{adClientId}/adunits', 'httpMethod' => 'GET', 'parameters' => array('adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'includeInactive' => array('location' => 'query', 'type' => 'boolean'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->adunits_customchannels = new Google_Service_AdSense_AdunitsCustomchannels_Resource($this, $this->serviceName, 'customchannels', array('methods' => array('list' => array('path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', 'httpMethod' => 'GET', 'parameters' => array('adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'adUnitId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->alerts = new Google_Service_AdSense_Alerts_Resource($this, $this->serviceName, 'alerts', array('methods' => array('delete' => array('path' => 'alerts/{alertId}', 'httpMethod' => 'DELETE', 'parameters' => array('alertId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'alerts', 'httpMethod' => 'GET', 'parameters' => array('locale' => array('location' => 'query', 'type' => 'string'))))));
     $this->customchannels = new Google_Service_AdSense_Customchannels_Resource($this, $this->serviceName, 'customchannels', array('methods' => array('get' => array('path' => 'adclients/{adClientId}/customchannels/{customChannelId}', 'httpMethod' => 'GET', 'parameters' => array('adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customChannelId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'adclients/{adClientId}/customchannels', 'httpMethod' => 'GET', 'parameters' => array('adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->customchannels_adunits = new Google_Service_AdSense_CustomchannelsAdunits_Resource($this, $this->serviceName, 'adunits', array('methods' => array('list' => array('path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', 'httpMethod' => 'GET', 'parameters' => array('adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customChannelId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'includeInactive' => array('location' => 'query', 'type' => 'boolean'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->metadata_dimensions = new Google_Service_AdSense_MetadataDimensions_Resource($this, $this->serviceName, 'dimensions', array('methods' => array('list' => array('path' => 'metadata/dimensions', 'httpMethod' => 'GET', 'parameters' => array()))));
     $this->metadata_metrics = new Google_Service_AdSense_MetadataMetrics_Resource($this, $this->serviceName, 'metrics', array('methods' => array('list' => array('path' => 'metadata/metrics', 'httpMethod' => 'GET', 'parameters' => array()))));
     $this->payments = new Google_Service_AdSense_Payments_Resource($this, $this->serviceName, 'payments', array('methods' => array('list' => array('path' => 'payments', 'httpMethod' => 'GET', 'parameters' => array()))));
     $this->reports = new Google_Service_AdSense_Reports_Resource($this, $this->serviceName, 'reports', array('methods' => array('generate' => array('path' => 'reports', 'httpMethod' => 'GET', 'parameters' => array('startDate' => array('location' => 'query', 'type' => 'string', 'required' => true), 'endDate' => array('location' => 'query', 'type' => 'string', 'required' => true), 'sort' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'locale' => array('location' => 'query', 'type' => 'string'), 'metric' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'filter' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'currency' => array('location' => 'query', 'type' => 'string'), 'startIndex' => array('location' => 'query', 'type' => 'integer'), 'useTimezoneReporting' => array('location' => 'query', 'type' => 'boolean'), 'dimension' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'accountId' => array('location' => 'query', 'type' => 'string', 'repeated' => true))))));
     $this->reports_saved = new Google_Service_AdSense_ReportsSaved_Resource($this, $this->serviceName, 'saved', array('methods' => array('generate' => array('path' => 'reports/{savedReportId}', 'httpMethod' => 'GET', 'parameters' => array('savedReportId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'locale' => array('location' => 'query', 'type' => 'string'), 'startIndex' => array('location' => 'query', 'type' => 'integer'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'list' => array('path' => 'reports/saved', 'httpMethod' => 'GET', 'parameters' => array('pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->savedadstyles = new Google_Service_AdSense_Savedadstyles_Resource($this, $this->serviceName, 'savedadstyles', array('methods' => array('get' => array('path' => 'savedadstyles/{savedAdStyleId}', 'httpMethod' => 'GET', 'parameters' => array('savedAdStyleId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'savedadstyles', 'httpMethod' => 'GET', 'parameters' => array('pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->urlchannels = new Google_Service_AdSense_Urlchannels_Resource($this, $this->serviceName, 'urlchannels', array('methods' => array('list' => array('path' => 'adclients/{adClientId}/urlchannels', 'httpMethod' => 'GET', 'parameters' => array('adClientId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
 }
Example #18
Show file File: X2Calendar.php Project: dsyman2/X2CRM
0
 public function getGoogleCalendar()
 {
     // Google Calendar Libraries
     $timezone = date_default_timezone_get();
     require_once 'protected/integration/Google/google-api-php-client/src/Google/autoload.php';
     date_default_timezone_set($timezone);
     $admin = Yii::app()->settings;
     $credentials = Yii::app()->settings->getGoogleIntegrationCredentials();
     if ($admin->googleIntegration && $credentials) {
         $client = new Google_Client();
         $client->setClientId($credentials['clientId']);
         $client->setClientSecret($credentials['clientSecret']);
         //$client->setDeveloperKey($admin->googleAPIKey);
         $client->setAccessToken($this->googleAccessToken);
         $service = new Google_Service_Calendar($client);
         // check if the access token needs to be refreshed
         // note that the google library automatically refreshes the access token if we need a new one,
         // we just need to check if this happend by calling a google api function that requires authorization,
         // and, if the access token has changed, save this new access token
         $googleCalendar = $service->calendars->get($this->googleCalendarId);
         if ($this->googleAccessToken != $client->getAccessToken()) {
             $this->googleAccessToken = $client->getAccessToken();
             $this->update();
         }
         return $service;
     }
     return null;
 }
Example #19
Show file File: ClientTest.php Project: OlivierBarbier/google-api-php-client
0
 public function testApplicationDefaultCredentialsWithSubject()
 {
     $sub = 'sub123';
     $client = new Google_Client();
     $client->setAuthConfig(__DIR__ . '/../config/application-default-credentials.json');
     $client->setSubject($sub);
     $http = new Client();
     $client->authorize($http);
     $listeners = $http->getEmitter()->listeners('before');
     $this->assertEquals(1, count($listeners));
     $this->assertEquals(2, count($listeners[0]));
     $this->assertInstanceOf('Google\\Auth\\AuthTokenFetcher', $listeners[0][0]);
     // access the protected $fetcher property
     $class = new ReflectionClass(get_class($listeners[0][0]));
     $property = $class->getProperty('fetcher');
     $property->setAccessible(true);
     $fetcher = $property->getValue($listeners[0][0]);
     $this->assertInstanceOf('Google\\Auth\\ServiceAccountCredentials', $fetcher);
     // access the protected $auth property
     $class = new ReflectionClass(get_class($fetcher));
     $property = $class->getProperty('auth');
     $property->setAccessible(true);
     $auth = $property->getValue($fetcher);
     $this->assertEquals($sub, $auth->getSub());
 }
Example #20
Show file File: YouTube.php Project: IllyaKolisnichenko/numo.dp.ua
0
 /**
  * Constructs the internal representation of the YouTube service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'youtube/v3/';
     $this->version = 'v3';
     $this->serviceName = 'youtube';
     $this->activities = new Google_Service_YouTube_Activities_Resource($this, $this->serviceName, 'activities', array('methods' => array('insert' => array('path' => 'activities', 'httpMethod' => 'POST', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'activities', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'regionCode' => array('location' => 'query', 'type' => 'string'), 'publishedBefore' => array('location' => 'query', 'type' => 'string'), 'channelId' => array('location' => 'query', 'type' => 'string'), 'mine' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'home' => array('location' => 'query', 'type' => 'boolean'), 'publishedAfter' => array('location' => 'query', 'type' => 'string'))))));
     $this->captions = new Google_Service_YouTube_Captions_Resource($this, $this->serviceName, 'captions', array('methods' => array('delete' => array('path' => 'captions', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOf' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'download' => array('path' => 'captions/{id}', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true), 'tfmt' => array('location' => 'query', 'type' => 'string'), 'onBehalfOf' => array('location' => 'query', 'type' => 'string'), 'tlang' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'captions', 'httpMethod' => 'POST', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOf' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'sync' => array('location' => 'query', 'type' => 'boolean'))), 'list' => array('path' => 'captions', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'videoId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOf' => array('location' => 'query', 'type' => 'string'), 'id' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'update' => array('path' => 'captions', 'httpMethod' => 'PUT', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOf' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'sync' => array('location' => 'query', 'type' => 'boolean'))))));
     $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource($this, $this->serviceName, 'channelBanners', array('methods' => array('insert' => array('path' => 'channelBanners/insert', 'httpMethod' => 'POST', 'parameters' => array('onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))))));
     $this->channelSections = new Google_Service_YouTube_ChannelSections_Resource($this, $this->serviceName, 'channelSections', array('methods' => array('delete' => array('path' => 'channelSections', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'channelSections', 'httpMethod' => 'POST', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'channelSections', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'channelId' => array('location' => 'query', 'type' => 'string'), 'mine' => array('location' => 'query', 'type' => 'boolean'), 'hl' => array('location' => 'query', 'type' => 'string'), 'id' => array('location' => 'query', 'type' => 'string'))), 'update' => array('path' => 'channelSections', 'httpMethod' => 'PUT', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))))));
     $this->channels = new Google_Service_YouTube_Channels_Resource($this, $this->serviceName, 'channels', array('methods' => array('list' => array('path' => 'channels', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'managedByMe' => array('location' => 'query', 'type' => 'boolean'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'forUsername' => array('location' => 'query', 'type' => 'string'), 'mine' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'id' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'mySubscribers' => array('location' => 'query', 'type' => 'boolean'), 'hl' => array('location' => 'query', 'type' => 'string'), 'categoryId' => array('location' => 'query', 'type' => 'string'))), 'update' => array('path' => 'channels', 'httpMethod' => 'PUT', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))))));
     $this->commentThreads = new Google_Service_YouTube_CommentThreads_Resource($this, $this->serviceName, 'commentThreads', array('methods' => array('insert' => array('path' => 'commentThreads', 'httpMethod' => 'POST', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'commentThreads', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'searchTerms' => array('location' => 'query', 'type' => 'string'), 'allThreadsRelatedToChannelId' => array('location' => 'query', 'type' => 'string'), 'channelId' => array('location' => 'query', 'type' => 'string'), 'videoId' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'id' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'moderationStatus' => array('location' => 'query', 'type' => 'string'), 'textFormat' => array('location' => 'query', 'type' => 'string'), 'order' => array('location' => 'query', 'type' => 'string'))), 'update' => array('path' => 'commentThreads', 'httpMethod' => 'PUT', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true))))));
     $this->comments = new Google_Service_YouTube_Comments_Resource($this, $this->serviceName, 'comments', array('methods' => array('delete' => array('path' => 'comments', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'comments', 'httpMethod' => 'POST', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'comments', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'parentId' => array('location' => 'query', 'type' => 'string'), 'textFormat' => array('location' => 'query', 'type' => 'string'), 'id' => array('location' => 'query', 'type' => 'string'))), 'markAsSpam' => array('path' => 'comments/markAsSpam', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'setModerationStatus' => array('path' => 'comments/setModerationStatus', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'moderationStatus' => array('location' => 'query', 'type' => 'string', 'required' => true), 'banAuthor' => array('location' => 'query', 'type' => 'boolean'))), 'update' => array('path' => 'comments', 'httpMethod' => 'PUT', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true))))));
     $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource($this, $this->serviceName, 'guideCategories', array('methods' => array('list' => array('path' => 'guideCategories', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'regionCode' => array('location' => 'query', 'type' => 'string'), 'id' => array('location' => 'query', 'type' => 'string'), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->i18nLanguages = new Google_Service_YouTube_I18nLanguages_Resource($this, $this->serviceName, 'i18nLanguages', array('methods' => array('list' => array('path' => 'i18nLanguages', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->i18nRegions = new Google_Service_YouTube_I18nRegions_Resource($this, $this->serviceName, 'i18nRegions', array('methods' => array('list' => array('path' => 'i18nRegions', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource($this, $this->serviceName, 'liveBroadcasts', array('methods' => array('bind' => array('path' => 'liveBroadcasts/bind', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'streamId' => array('location' => 'query', 'type' => 'string'))), 'control' => array('path' => 'liveBroadcasts/control', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'displaySlate' => array('location' => 'query', 'type' => 'boolean'), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'offsetTimeMs' => array('location' => 'query', 'type' => 'string'), 'walltime' => array('location' => 'query', 'type' => 'string'))), 'delete' => array('path' => 'liveBroadcasts', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'liveBroadcasts', 'httpMethod' => 'POST', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'liveBroadcasts', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'broadcastStatus' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'mine' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'id' => array('location' => 'query', 'type' => 'string'))), 'transition' => array('path' => 'liveBroadcasts/transition', 'httpMethod' => 'POST', 'parameters' => array('broadcastStatus' => array('location' => 'query', 'type' => 'string', 'required' => true), 'id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'update' => array('path' => 'liveBroadcasts', 'httpMethod' => 'PUT', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))))));
     $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource($this, $this->serviceName, 'liveStreams', array('methods' => array('delete' => array('path' => 'liveStreams', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'liveStreams', 'httpMethod' => 'POST', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'liveStreams', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'mine' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'id' => array('location' => 'query', 'type' => 'string'))), 'update' => array('path' => 'liveStreams', 'httpMethod' => 'PUT', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))))));
     $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource($this, $this->serviceName, 'playlistItems', array('methods' => array('delete' => array('path' => 'playlistItems', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'playlistItems', 'httpMethod' => 'POST', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'playlistItems', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'playlistId' => array('location' => 'query', 'type' => 'string'), 'videoId' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'id' => array('location' => 'query', 'type' => 'string'))), 'update' => array('path' => 'playlistItems', 'httpMethod' => 'PUT', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true))))));
     $this->playlists = new Google_Service_YouTube_Playlists_Resource($this, $this->serviceName, 'playlists', array('methods' => array('delete' => array('path' => 'playlists', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'playlists', 'httpMethod' => 'POST', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'playlists', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'channelId' => array('location' => 'query', 'type' => 'string'), 'mine' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'hl' => array('location' => 'query', 'type' => 'string'), 'id' => array('location' => 'query', 'type' => 'string'))), 'update' => array('path' => 'playlists', 'httpMethod' => 'PUT', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))))));
     $this->search = new Google_Service_YouTube_Search_Resource($this, $this->serviceName, 'search', array('methods' => array('list' => array('path' => 'search', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'eventType' => array('location' => 'query', 'type' => 'string'), 'channelId' => array('location' => 'query', 'type' => 'string'), 'forDeveloper' => array('location' => 'query', 'type' => 'boolean'), 'videoSyndicated' => array('location' => 'query', 'type' => 'string'), 'channelType' => array('location' => 'query', 'type' => 'string'), 'videoCaption' => array('location' => 'query', 'type' => 'string'), 'publishedAfter' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'forContentOwner' => array('location' => 'query', 'type' => 'boolean'), 'regionCode' => array('location' => 'query', 'type' => 'string'), 'location' => array('location' => 'query', 'type' => 'string'), 'locationRadius' => array('location' => 'query', 'type' => 'string'), 'videoType' => array('location' => 'query', 'type' => 'string'), 'type' => array('location' => 'query', 'type' => 'string'), 'topicId' => array('location' => 'query', 'type' => 'string'), 'publishedBefore' => array('location' => 'query', 'type' => 'string'), 'videoDimension' => array('location' => 'query', 'type' => 'string'), 'videoLicense' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'relatedToVideoId' => array('location' => 'query', 'type' => 'string'), 'videoDefinition' => array('location' => 'query', 'type' => 'string'), 'videoDuration' => array('location' => 'query', 'type' => 'string'), 'relevanceLanguage' => array('location' => 'query', 'type' => 'string'), 'forMine' => array('location' => 'query', 'type' => 'boolean'), 'q' => array('location' => 'query', 'type' => 'string'), 'safeSearch' => array('location' => 'query', 'type' => 'string'), 'videoEmbeddable' => array('location' => 'query', 'type' => 'string'), 'videoCategoryId' => array('location' => 'query', 'type' => 'string'), 'order' => array('location' => 'query', 'type' => 'string'))))));
     $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource($this, $this->serviceName, 'subscriptions', array('methods' => array('delete' => array('path' => 'subscriptions', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'subscriptions', 'httpMethod' => 'POST', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'subscriptions', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'channelId' => array('location' => 'query', 'type' => 'string'), 'mine' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'forChannelId' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'mySubscribers' => array('location' => 'query', 'type' => 'boolean'), 'order' => array('location' => 'query', 'type' => 'string'), 'id' => array('location' => 'query', 'type' => 'string'))))));
     $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource($this, $this->serviceName, 'thumbnails', array('methods' => array('set' => array('path' => 'thumbnails/set', 'httpMethod' => 'POST', 'parameters' => array('videoId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))))));
     $this->videoAbuseReportReasons = new Google_Service_YouTube_VideoAbuseReportReasons_Resource($this, $this->serviceName, 'videoAbuseReportReasons', array('methods' => array('list' => array('path' => 'videoAbuseReportReasons', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource($this, $this->serviceName, 'videoCategories', array('methods' => array('list' => array('path' => 'videoCategories', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'regionCode' => array('location' => 'query', 'type' => 'string'), 'id' => array('location' => 'query', 'type' => 'string'), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->videos = new Google_Service_YouTube_Videos_Resource($this, $this->serviceName, 'videos', array('methods' => array('delete' => array('path' => 'videos', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'getRating' => array('path' => 'videos/getRating', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'videos', 'httpMethod' => 'POST', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'stabilize' => array('location' => 'query', 'type' => 'boolean'), 'onBehalfOfContentOwnerChannel' => array('location' => 'query', 'type' => 'string'), 'notifySubscribers' => array('location' => 'query', 'type' => 'boolean'), 'autoLevels' => array('location' => 'query', 'type' => 'boolean'))), 'list' => array('path' => 'videos', 'httpMethod' => 'GET', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'), 'regionCode' => array('location' => 'query', 'type' => 'string'), 'locale' => array('location' => 'query', 'type' => 'string'), 'videoCategoryId' => array('location' => 'query', 'type' => 'string'), 'chart' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'hl' => array('location' => 'query', 'type' => 'string'), 'myRating' => array('location' => 'query', 'type' => 'string'), 'id' => array('location' => 'query', 'type' => 'string'))), 'rate' => array('path' => 'videos/rate', 'httpMethod' => 'POST', 'parameters' => array('id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'rating' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'reportAbuse' => array('path' => 'videos/reportAbuse', 'httpMethod' => 'POST', 'parameters' => array('onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'update' => array('path' => 'videos', 'httpMethod' => 'PUT', 'parameters' => array('part' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))))));
     $this->watermarks = new Google_Service_YouTube_Watermarks_Resource($this, $this->serviceName, 'watermarks', array('methods' => array('set' => array('path' => 'watermarks/set', 'httpMethod' => 'POST', 'parameters' => array('channelId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))), 'unset' => array('path' => 'watermarks/unset', 'httpMethod' => 'POST', 'parameters' => array('channelId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'onBehalfOfContentOwner' => array('location' => 'query', 'type' => 'string'))))));
 }