* Creates and conducts surveys, lists the surveys that an authenticated user * owns, and retrieves survey results and information about specified surveys.
* ** For more information about this service, see the API * Documentation *
* * @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, ), ), ), ) ) ); } }