当前位置: 首页>>代码示例>>PHP>>正文


PHP Google_Service::__construct方法代码示例

本文整理汇总了PHP中Google_Service::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Google_Service::__construct方法的具体用法?PHP Google_Service::__construct怎么用?PHP Google_Service::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Google_Service的用法示例。


在下文中一共展示了Google_Service::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructs the internal representation of the Orkut service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'orkut/v2/';
     $this->version = 'v2';
     $this->availableScopes = array("https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly");
     $this->serviceName = 'orkut';
     $client->addService($this->serviceName, $this->version, $this->availableScopes);
     $this->acl = new Google_Service_Orkut_Acl_Resource($this, $this->serviceName, 'acl', array('methods' => array('delete' => array('path' => 'activities/{activityId}/acl/{userId}', 'httpMethod' => 'DELETE', 'parameters' => array('activityId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'userId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->activities = new Google_Service_Orkut_Activities_Resource($this, $this->serviceName, 'activities', array('methods' => array('delete' => array('path' => 'activities/{activityId}', 'httpMethod' => 'DELETE', 'parameters' => array('activityId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'people/{userId}/activities/{collection}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'collection' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->activityVisibility = new Google_Service_Orkut_ActivityVisibility_Resource($this, $this->serviceName, 'activityVisibility', array('methods' => array('get' => array('path' => 'activities/{activityId}/visibility', 'httpMethod' => 'GET', 'parameters' => array('activityId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'patch' => array('path' => 'activities/{activityId}/visibility', 'httpMethod' => 'PATCH', 'parameters' => array('activityId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'activities/{activityId}/visibility', 'httpMethod' => 'PUT', 'parameters' => array('activityId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->badges = new Google_Service_Orkut_Badges_Resource($this, $this->serviceName, 'badges', array('methods' => array('get' => array('path' => 'people/{userId}/badges/{badgeId}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'badgeId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'people/{userId}/badges', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->comments = new Google_Service_Orkut_Comments_Resource($this, $this->serviceName, 'comments', array('methods' => array('delete' => array('path' => 'comments/{commentId}', 'httpMethod' => 'DELETE', 'parameters' => array('commentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'comments/{commentId}', 'httpMethod' => 'GET', 'parameters' => array('commentId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'hl' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'activities/{activityId}/comments', 'httpMethod' => 'POST', 'parameters' => array('activityId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'activities/{activityId}/comments', 'httpMethod' => 'GET', 'parameters' => array('activityId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'orderBy' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->communities = new Google_Service_Orkut_Communities_Resource($this, $this->serviceName, 'communities', array('methods' => array('get' => array('path' => 'communities/{communityId}', 'httpMethod' => 'GET', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'hl' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'people/{userId}/communities', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'orderBy' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->communityFollow = new Google_Service_Orkut_CommunityFollow_Resource($this, $this->serviceName, 'communityFollow', array('methods' => array('delete' => array('path' => 'communities/{communityId}/followers/{userId}', 'httpMethod' => 'DELETE', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'userId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'communities/{communityId}/followers/{userId}', 'httpMethod' => 'POST', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'userId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->communityMembers = new Google_Service_Orkut_CommunityMembers_Resource($this, $this->serviceName, 'communityMembers', array('methods' => array('delete' => array('path' => 'communities/{communityId}/members/{userId}', 'httpMethod' => 'DELETE', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'userId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'communities/{communityId}/members/{userId}', 'httpMethod' => 'GET', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'userId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'hl' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'communities/{communityId}/members/{userId}', 'httpMethod' => 'POST', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'userId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'communities/{communityId}/members', 'httpMethod' => 'GET', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'friendsOnly' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->communityMessages = new Google_Service_Orkut_CommunityMessages_Resource($this, $this->serviceName, 'communityMessages', array('methods' => array('delete' => array('path' => 'communities/{communityId}/topics/{topicId}/messages/{messageId}', 'httpMethod' => 'DELETE', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'topicId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'messageId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'communities/{communityId}/topics/{topicId}/messages', 'httpMethod' => 'POST', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'topicId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'communities/{communityId}/topics/{topicId}/messages', 'httpMethod' => 'GET', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'topicId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->communityPollComments = new Google_Service_Orkut_CommunityPollComments_Resource($this, $this->serviceName, 'communityPollComments', array('methods' => array('insert' => array('path' => 'communities/{communityId}/polls/{pollId}/comments', 'httpMethod' => 'POST', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'pollId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'communities/{communityId}/polls/{pollId}/comments', 'httpMethod' => 'GET', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'pollId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->communityPollVotes = new Google_Service_Orkut_CommunityPollVotes_Resource($this, $this->serviceName, 'communityPollVotes', array('methods' => array('insert' => array('path' => 'communities/{communityId}/polls/{pollId}/votes', 'httpMethod' => 'POST', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'pollId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->communityPolls = new Google_Service_Orkut_CommunityPolls_Resource($this, $this->serviceName, 'communityPolls', array('methods' => array('get' => array('path' => 'communities/{communityId}/polls/{pollId}', 'httpMethod' => 'GET', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'pollId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'hl' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'communities/{communityId}/polls', 'httpMethod' => 'GET', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->communityRelated = new Google_Service_Orkut_CommunityRelated_Resource($this, $this->serviceName, 'communityRelated', array('methods' => array('list' => array('path' => 'communities/{communityId}/related', 'httpMethod' => 'GET', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->communityTopics = new Google_Service_Orkut_CommunityTopics_Resource($this, $this->serviceName, 'communityTopics', array('methods' => array('delete' => array('path' => 'communities/{communityId}/topics/{topicId}', 'httpMethod' => 'DELETE', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'topicId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'communities/{communityId}/topics/{topicId}', 'httpMethod' => 'GET', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'topicId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'hl' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'communities/{communityId}/topics', 'httpMethod' => 'POST', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'isShout' => array('location' => 'query', 'type' => 'boolean'))), 'list' => array('path' => 'communities/{communityId}/topics', 'httpMethod' => 'GET', 'parameters' => array('communityId' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'hl' => array('location' => 'query', 'type' => 'string'))))));
     $this->counters = new Google_Service_Orkut_Counters_Resource($this, $this->serviceName, 'counters', array('methods' => array('list' => array('path' => 'people/{userId}/counters', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->scraps = new Google_Service_Orkut_Scraps_Resource($this, $this->serviceName, 'scraps', array('methods' => array('insert' => array('path' => 'activities/scraps', 'httpMethod' => 'POST', 'parameters' => array()))));
 }
开发者ID:rickb838,项目名称:scalr,代码行数:30,代码来源:Orkut.php

示例2: __construct

 /**
  * Constructs the internal representation of the Dataflow service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = '';
     $this->version = 'v1b4';
     $this->serviceName = 'dataflow';
 }
开发者ID:8191,项目名称:opnsense-core,代码行数:12,代码来源:Dataflow.php

示例3: __construct

 /**
  * Constructs the internal representation of the Cloudsearch service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = '';
     $this->version = 'v1';
     $this->serviceName = 'cloudsearch';
 }
开发者ID:maguria,项目名称:usuariosCorreo,代码行数:12,代码来源:Cloudsearch.php

示例4: __construct

 /**
  * Constructs the internal representation of the IdentityToolkit service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'identitytoolkit/v3/relyingparty/';
     $this->version = 'v3';
     $this->serviceName = 'identitytoolkit';
     $this->relyingparty = new Google_Service_IdentityToolkit_Relyingparty_Resource($this, $this->serviceName, 'relyingparty', array('methods' => array('createAuthUri' => array('path' => 'createAuthUri', 'httpMethod' => 'POST', 'parameters' => array()), 'deleteAccount' => array('path' => 'deleteAccount', 'httpMethod' => 'POST', 'parameters' => array()), 'downloadAccount' => array('path' => 'downloadAccount', 'httpMethod' => 'POST', 'parameters' => array()), 'getAccountInfo' => array('path' => 'getAccountInfo', 'httpMethod' => 'POST', 'parameters' => array()), 'getOobConfirmationCode' => array('path' => 'getOobConfirmationCode', 'httpMethod' => 'POST', 'parameters' => array()), 'getPublicKeys' => array('path' => 'publicKeys', 'httpMethod' => 'GET', 'parameters' => array()), 'resetPassword' => array('path' => 'resetPassword', 'httpMethod' => 'POST', 'parameters' => array()), 'setAccountInfo' => array('path' => 'setAccountInfo', 'httpMethod' => 'POST', 'parameters' => array()), 'uploadAccount' => array('path' => 'uploadAccount', 'httpMethod' => 'POST', 'parameters' => array()), 'verifyAssertion' => array('path' => 'verifyAssertion', 'httpMethod' => 'POST', 'parameters' => array()), 'verifyPassword' => array('path' => 'verifyPassword', 'httpMethod' => 'POST', 'parameters' => array()))));
 }
开发者ID:agilecharl,项目名称:google-api-php-client,代码行数:13,代码来源:IdentityToolkit.php

示例5: __construct

 /**
  * Constructs the internal representation of the Appsactivity service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'appsactivity/v1/';
     $this->version = 'v1';
     $this->serviceName = 'appsactivity';
     $this->activities = new Google_Service_Appsactivity_Activities_Resource($this, $this->serviceName, 'activities', array('methods' => array('list' => array('path' => 'activities', 'httpMethod' => 'GET', 'parameters' => array('drive.ancestorId' => array('location' => 'query', 'type' => 'string'), 'pageSize' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'userId' => array('location' => 'query', 'type' => 'string'), 'groupingStrategy' => array('location' => 'query', 'type' => 'string'), 'drive.fileId' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'))))));
 }
开发者ID:NeilBryant,项目名称:webpagetest,代码行数:13,代码来源:Appsactivity.php

示例6: __construct

 /**
  * Constructs the internal representation of the Playmoviespartner service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://playmoviespartner.googleapis.com/';
     $this->servicePath = '';
     $this->version = 'v1';
     $this->serviceName = 'playmoviespartner';
 }
开发者ID:pzhu2004,项目名称:moodle,代码行数:13,代码来源:Playmoviespartner.php

示例7: __construct

 /**
  * Constructs the internal representation of the Licensing service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'apps/licensing/v1/product/';
     $this->version = 'v1';
     $this->serviceName = 'licensing';
     $this->licenseAssignments = new Google_Service_Licensing_LicenseAssignments_Resource($this, $this->serviceName, 'licenseAssignments', array('methods' => array('delete' => array('path' => '{productId}/sku/{skuId}/user/{userId}', 'httpMethod' => 'DELETE', 'parameters' => array('productId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'skuId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'userId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => '{productId}/sku/{skuId}/user/{userId}', 'httpMethod' => 'GET', 'parameters' => array('productId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'skuId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'userId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => '{productId}/sku/{skuId}/user', 'httpMethod' => 'POST', 'parameters' => array('productId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'skuId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'listForProduct' => array('path' => '{productId}/users', 'httpMethod' => 'GET', 'parameters' => array('productId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customerId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'listForProductAndSku' => array('path' => '{productId}/sku/{skuId}/users', 'httpMethod' => 'GET', 'parameters' => array('productId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'skuId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'customerId' => array('location' => 'query', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => '{productId}/sku/{skuId}/user/{userId}', 'httpMethod' => 'PATCH', 'parameters' => array('productId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'skuId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'userId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => '{productId}/sku/{skuId}/user/{userId}', 'httpMethod' => 'PUT', 'parameters' => array('productId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'skuId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'userId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
 }
开发者ID:tmaski45,项目名称:tedmatuszewski.com,代码行数:13,代码来源:Licensing.php

示例8: __construct

 /**
  * Constructs the internal representation of the Audit service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'apps/reporting/audit/v1/';
     $this->version = 'v1';
     $this->serviceName = 'audit';
     $this->activities = new Google_Service_Audit_Activities_Resource($this, $this->serviceName, 'activities', array('methods' => array('list' => array('path' => '{customerId}/{applicationId}', 'httpMethod' => 'GET', 'parameters' => array('customerId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'applicationId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'actorEmail' => array('location' => 'query', 'type' => 'string'), 'actorApplicationId' => array('location' => 'query', 'type' => 'string'), 'actorIpAddress' => array('location' => 'query', 'type' => 'string'), 'caller' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'eventName' => array('location' => 'query', 'type' => 'string'), 'startTime' => array('location' => 'query', 'type' => 'string'), 'endTime' => array('location' => 'query', 'type' => 'string'), 'continuationToken' => array('location' => 'query', 'type' => 'string'))))));
 }
开发者ID:Coop920,项目名称:Sterling-Wellness,代码行数:13,代码来源:Audit.php

示例9: __construct

 /**
  * Constructs the internal representation of the Admin service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'email/v2/users/';
     $this->version = 'email_migration_v2';
     $this->serviceName = 'admin';
     $this->mail = new Google_Service_Admin_Mail_Resource($this, $this->serviceName, 'mail', array('methods' => array('insert' => array('path' => '{userKey}/mail', 'httpMethod' => 'POST', 'parameters' => array('userKey' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
 }
开发者ID:huuly188,项目名称:vietnamrealty,代码行数:13,代码来源:Admin.php

示例10: __construct

 /**
  * Constructs the internal representation of the Webfonts service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'webfonts/v1/';
     $this->version = 'v1';
     $this->serviceName = 'webfonts';
     $this->webfonts = new Google_Service_Webfonts_Webfonts_Resource($this, $this->serviceName, 'webfonts', array('methods' => array('list' => array('path' => 'webfonts', 'httpMethod' => 'GET', 'parameters' => array('sort' => array('location' => 'query', 'type' => 'string'))))));
 }
开发者ID:8191,项目名称:opnsense-core,代码行数:13,代码来源:Webfonts.php

示例11: __construct

 /**
  * Constructs the internal representation of the Urlshortener service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'urlshortener/v1/';
     $this->version = 'v1';
     $this->serviceName = 'urlshortener';
     $this->url = new Google_Service_Urlshortener_Url_Resource($this, $this->serviceName, 'url', array('methods' => array('get' => array('path' => 'url', 'httpMethod' => 'GET', 'parameters' => array('shortUrl' => array('location' => 'query', 'type' => 'string', 'required' => true), 'projection' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'url', 'httpMethod' => 'POST', 'parameters' => array()), 'list' => array('path' => 'url/history', 'httpMethod' => 'GET', 'parameters' => array('start-token' => array('location' => 'query', 'type' => 'string'), 'projection' => array('location' => 'query', 'type' => 'string'))))));
 }
开发者ID:AriannaCodes,项目名称:cs50-final,代码行数:13,代码来源:Urlshortener.php

示例12: __construct

 /**
  * Constructs the internal representation of the AppState service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'appstate/v1/';
     $this->version = 'v1';
     $this->serviceName = 'appstate';
     $this->states = new Google_Service_AppState_States_Resource($this, $this->serviceName, 'states', array('methods' => array('clear' => array('path' => 'states/{stateKey}/clear', 'httpMethod' => 'POST', 'parameters' => array('stateKey' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'currentDataVersion' => array('location' => 'query', 'type' => 'string'))), 'delete' => array('path' => 'states/{stateKey}', 'httpMethod' => 'DELETE', 'parameters' => array('stateKey' => array('location' => 'path', 'type' => 'integer', 'required' => true))), 'get' => array('path' => 'states/{stateKey}', 'httpMethod' => 'GET', 'parameters' => array('stateKey' => array('location' => 'path', 'type' => 'integer', 'required' => true))), 'list' => array('path' => 'states', 'httpMethod' => 'GET', 'parameters' => array('includeData' => array('location' => 'query', 'type' => 'boolean'))), 'update' => array('path' => 'states/{stateKey}', 'httpMethod' => 'PUT', 'parameters' => array('stateKey' => array('location' => 'path', 'type' => 'integer', 'required' => true), 'currentStateVersion' => array('location' => 'query', 'type' => 'string'))))));
 }
开发者ID:andrewkrug,项目名称:repucaution,代码行数:13,代码来源:AppState.php

示例13: __construct

 /**
  * Constructs the internal representation of the QPXExpress service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'qpxExpress/v1/trips/';
     $this->version = 'v1';
     $this->serviceName = 'qpxExpress';
     $this->trips = new Google_Service_QPXExpress_Trips_Resource($this, $this->serviceName, 'trips', array('methods' => array('search' => array('path' => 'search', 'httpMethod' => 'POST', 'parameters' => array()))));
 }
开发者ID:8191,项目名称:opnsense-core,代码行数:13,代码来源:QPXExpress.php

示例14: __construct

 /**
  * Constructs the internal representation of the Customsearch service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'customsearch/';
     $this->version = 'v1';
     $this->serviceName = 'customsearch';
     $this->cse = new Google_Service_Customsearch_Cse_Resource($this, $this->serviceName, 'cse', array('methods' => array('list' => array('path' => 'v1', 'httpMethod' => 'GET', 'parameters' => array('q' => array('location' => 'query', 'type' => 'string', 'required' => true), 'sort' => array('location' => 'query', 'type' => 'string'), 'orTerms' => array('location' => 'query', 'type' => 'string'), 'highRange' => array('location' => 'query', 'type' => 'string'), 'num' => array('location' => 'query', 'type' => 'integer'), 'cr' => array('location' => 'query', 'type' => 'string'), 'imgType' => array('location' => 'query', 'type' => 'string'), 'gl' => array('location' => 'query', 'type' => 'string'), 'relatedSite' => array('location' => 'query', 'type' => 'string'), 'searchType' => array('location' => 'query', 'type' => 'string'), 'fileType' => array('location' => 'query', 'type' => 'string'), 'start' => array('location' => 'query', 'type' => 'integer'), 'imgDominantColor' => array('location' => 'query', 'type' => 'string'), 'lr' => array('location' => 'query', 'type' => 'string'), 'siteSearch' => array('location' => 'query', 'type' => 'string'), 'cref' => array('location' => 'query', 'type' => 'string'), 'dateRestrict' => array('location' => 'query', 'type' => 'string'), 'safe' => array('location' => 'query', 'type' => 'string'), 'c2coff' => array('location' => 'query', 'type' => 'string'), 'googlehost' => array('location' => 'query', 'type' => 'string'), 'hq' => array('location' => 'query', 'type' => 'string'), 'exactTerms' => array('location' => 'query', 'type' => 'string'), 'hl' => array('location' => 'query', 'type' => 'string'), 'lowRange' => array('location' => 'query', 'type' => 'string'), 'imgSize' => array('location' => 'query', 'type' => 'string'), 'imgColorType' => array('location' => 'query', 'type' => 'string'), 'rights' => array('location' => 'query', 'type' => 'string'), 'excludeTerms' => array('location' => 'query', 'type' => 'string'), 'filter' => array('location' => 'query', 'type' => 'string'), 'linkSite' => array('location' => 'query', 'type' => 'string'), 'cx' => array('location' => 'query', 'type' => 'string'), 'siteSearchFilter' => array('location' => 'query', 'type' => 'string'))))));
 }
开发者ID:Coop920,项目名称:Sterling-Wellness,代码行数:13,代码来源:Customsearch.php

示例15: __construct

 /**
  * Constructs the internal representation of the Pagespeedonline service.
  *
  * @param Google_Client $client
  */
 public function __construct(Google_Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'pagespeedonline/v1/';
     $this->version = 'v1';
     $this->serviceName = 'pagespeedonline';
     $this->pagespeedapi = new Google_Service_Pagespeedonline_Pagespeedapi_Resource($this, $this->serviceName, 'pagespeedapi', array('methods' => array('runpagespeed' => array('path' => 'runPagespeed', 'httpMethod' => 'GET', 'parameters' => array('url' => array('location' => 'query', 'type' => 'string', 'required' => true), 'screenshot' => array('location' => 'query', 'type' => 'boolean'), 'locale' => array('location' => 'query', 'type' => 'string'), 'rule' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'strategy' => array('location' => 'query', 'type' => 'string'), 'filter_third_party_resources' => array('location' => 'query', 'type' => 'boolean'))))));
 }
开发者ID:AriannaCodes,项目名称:cs50-final,代码行数:13,代码来源:Pagespeedonline.php


注:本文中的Google_Service::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。