123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <?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 ConsumerSurveys (v2).
- *
- * <p>
- * Creates and conducts surveys, lists the surveys that an authenticated user
- * owns, and retrieves survey results and information about specified surveys.</p>
- *
- * <p>
- * For more information about this service, see the API
- * <a href="" target="_blank">Documentation</a>
- * </p>
- *
- * @author Google, Inc.
- */
- class Google_Service_ConsumerSurveys extends Google_Service
- {
- /** View and edit your surveys and results. */
- const CONSUMERSURVEYS =
- "https://www.googleapis.com/auth/consumersurveys";
- /** View the results for your surveys. */
- const CONSUMERSURVEYS_READONLY =
- "https://www.googleapis.com/auth/consumersurveys.readonly";
- /** View your email address. */
- const USERINFO_EMAIL =
- "https://www.googleapis.com/auth/userinfo.email";
-
- public $mobileapppanels;
- public $results;
- public $surveys;
-
- /**
- * Constructs the internal representation of the ConsumerSurveys service.
- *
- * @param Google_Client $client
- */
- public function __construct(Google_Client $client)
- {
- parent::__construct($client);
- $this->rootUrl = 'https://www.googleapis.com/';
- $this->servicePath = 'consumersurveys/v2/';
- $this->version = 'v2';
- $this->serviceName = 'consumersurveys';
-
- $this->mobileapppanels = new Google_Service_ConsumerSurveys_Resource_Mobileapppanels(
- $this,
- $this->serviceName,
- 'mobileapppanels',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'mobileAppPanels/{panelId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'panelId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'mobileAppPanels',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'startIndex' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'token' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'update' => array(
- 'path' => 'mobileAppPanels/{panelId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'panelId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->results = new Google_Service_ConsumerSurveys_Resource_Results(
- $this,
- $this->serviceName,
- 'results',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'surveys/{surveyUrlId}/results',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'surveyUrlId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->surveys = new Google_Service_ConsumerSurveys_Resource_Surveys(
- $this,
- $this->serviceName,
- 'surveys',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'surveys/{surveyUrlId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'surveyUrlId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'surveys/{surveyUrlId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'surveyUrlId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'surveys',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),'list' => array(
- 'path' => 'surveys',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'startIndex' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'token' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'start' => array(
- 'path' => 'surveys/{resourceId}/start',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'resourceId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'stop' => array(
- 'path' => 'surveys/{resourceId}/stop',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'resourceId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'surveys/{surveyUrlId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'surveyUrlId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- }
- }
|