123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- <?php
- /*
- * Copyright 2014 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-
- /**
- * Service definition for Plus (v1).
- *
- * <p>
- * Builds on top of the Google+ platform.</p>
- *
- * <p>
- * For more information about this service, see the API
- * <a href="https://developers.google.com/+/api/" target="_blank">Documentation</a>
- * </p>
- *
- * @author Google, Inc.
- */
- class Google_Service_Plus extends Google_Service
- {
- /** Know the list of people in your circles, your age range, and language. */
- const PLUS_LOGIN =
- "https://www.googleapis.com/auth/plus.login";
- /** Know who you are on Google. */
- const PLUS_ME =
- "https://www.googleapis.com/auth/plus.me";
- /** View your email address. */
- const USERINFO_EMAIL =
- "https://www.googleapis.com/auth/userinfo.email";
- /** View your basic profile info. */
- const USERINFO_PROFILE =
- "https://www.googleapis.com/auth/userinfo.profile";
-
- public $activities;
- public $comments;
- public $people;
-
- /**
- * Constructs the internal representation of the Plus service.
- *
- * @param Google_Client $client
- */
- public function __construct(Google_Client $client)
- {
- parent::__construct($client);
- $this->rootUrl = 'https://www.googleapis.com/';
- $this->servicePath = 'plus/v1/';
- $this->version = 'v1';
- $this->serviceName = 'plus';
-
- $this->activities = new Google_Service_Plus_Resource_Activities(
- $this,
- $this->serviceName,
- 'activities',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'activities/{activityId}',
- 'httpMethod' => 'GET',
- '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,
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'search' => array(
- 'path' => 'activities',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'query' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'language' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->comments = new Google_Service_Plus_Resource_Comments(
- $this,
- $this->serviceName,
- 'comments',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'comments/{commentId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'commentId' => 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,
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'sortOrder' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->people = new Google_Service_Plus_Resource_People(
- $this,
- $this->serviceName,
- 'people',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'people/{userId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'userId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'people/{userId}/people/{collection}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'userId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'collection' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'listByActivity' => array(
- 'path' => 'activities/{activityId}/people/{collection}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'activityId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'collection' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'search' => array(
- 'path' => 'people',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'query' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'language' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- }
- }
|