__construct() public méthode

public __construct ( )
Exemple #1
0
 public function __construct($uri, $mode = SWOOLE_BASE)
 {
     parent::__construct();
     $url = $this->parseUrl($uri);
     $this->type = $url->type;
     $this->server = new swoole_server($url->host, $url->port, $mode, $url->type);
 }
Exemple #2
0
 /**
  * @constructor
  */
 public function __construct($config)
 {
     $this->config = $config;
     $this->setURLTemplate(sprintf('http://readitlaterlist.com/users/%s/feed/', $config['username']));
     $this->setItemTemplate('<li class="clearfix state{%state%}"><span class="date">{%time_updated%}</span> <p><a target="_blank" href="{%url%}">{%title%}</a></p></li>');
     parent::__construct($config);
 }
Exemple #3
0
 public function __construct($config)
 {
     // Include SimplePie
     include_once 'SimplePie' . DIRECTORY_SEPARATOR . 'SimplePieAutoloader.php';
     include_once 'SimplePie' . DIRECTORY_SEPARATOR . 'idn' . DIRECTORY_SEPARATOR . 'idna_convert.class.php';
     if (!isset($config['contenttype'])) {
         $config['contenttype'] = 'application/xml';
     }
     $this->setHeaderLink(array('url' => $config['url'], 'type' => $config['contenttype']));
     $this->total = $config['total'];
     if (isset($config['date_format']) && $config['date_format']) {
         $this->dateFormat = $config['date_format'];
     }
     $this->callback_function = array($this, 'loadStringIntoSimplePieObject');
     $this->setURL($config['url']);
     $this->setItemTemplate('<li>
             {{#media_thumbnail_url}}
                 <img src="{{{media_thumbnail_url}}}" class="item-media-thumbnail" alt="{{{media_caption}}}" height="75" />
             {{/media_thumbnail_url}}
             <a href="{{link}}">{{{title}}}</a>
             {{#summary}}
                 <br/>{{{summary}}}
             {{/summary}}
             ({{{date}}})
          </li>' . "\n");
     $this->setURLTemplate($config['link']);
     parent::__construct($config);
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct();
     $this->scriptPath = dirname(__FILE__) . '/../scripts/';
     $this->pluginname = _('Kernelmodules U3');
     if ($this->checkLicense(true) == false) {
         return true;
     }
     if ($_GET['ajax'] == 1 && $_GET['action'] == 'buildHifaceWithKernel') {
         //Function to get Progress of Installation
         $this->_buildHifaceWithKernel(1);
         ob_end_clean();
         echo implode('<br />', $this->view->message);
         ob_flush();
         die;
     }
     if (isset($_GET['action'])) {
         if ($_GET['action'] == 'enableHifaceUSB') {
             $this->_enableHifaceUSB(true);
         }
         if ($_GET['action'] == 'disableHifaceUSB') {
             $this->_enableHifaceUSB(false);
         }
         if ($_GET['action'] == 'buildHifaceWithKernel') {
             $this->_buildHifaceWithKernel();
         }
     }
     $this->getHifaceUSBEnabled();
     //Get Debug Info
     $this->_getAllLogs();
 }
 /**
  * Constructs the internal representation of the Cloudsearch service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->servicePath = '';
     $this->version = 'v1';
     $this->serviceName = 'cloudsearch';
 }
Exemple #6
0
 public function __construct($config)
 {
     Config::$configPath = $config['configDir'];
     View::$directory[] = $config['themes'];
     $this->autoLoader = $config['autoLoader'];
     parent::__construct(Config::get('service'));
 }
Exemple #7
0
 /**
  * @constructor
  */
 public function __construct($config)
 {
     $this->setURL(sprintf('http://github.com/api/v2/xml/repos/show/%s', $config['username']));
     $this->setURLTemplate('http://github.com/' . $config['username'] . '/');
     $this->setItemTemplate('<li class="clearfix"><div class="metadata"><a href="{%url%}"><strong>{%name%}</strong></a></div><div class="infos">{%description%}</div></li>' . "\n");
     parent::__construct($config);
 }
Exemple #8
0
 public function __construct()
 {
     parent::__construct();
     //Only Available for Debian - Ubuntu 14.04 has no gmediarenderer
     $version = $this->getLinuxVersion();
     if ($version[0] != 'Debian') {
         $this->view->isAvailable = false;
     } else {
         $this->view->isAvailable = true;
     }
     if ($this->checkInstalled()) {
         if (isset($_GET['action'])) {
             if ($_GET['action'] == 'startgm') {
                 $this->view->message[] = $this->start($this->pname);
             }
             if ($_GET['action'] == 'stopgm') {
                 $this->view->message[] = $this->stop($this->pname);
             }
             if ($_GET['action'] == 'killgm') {
                 $this->view->message[] = $this->kill($this->pname);
             }
             if ($_GET['action'] == 'save') {
                 $this->selectAutostart(isset($_GET['autostartgm']) ? 1 : 0);
                 $this->saveAudioDevice();
             }
         }
         $this->view->pid = $this->status($this->pname);
         $this->view->autostart = $this->checkAutostart($this->pname, true);
         $this->getAudioDevice();
     } else {
         if (isset($_GET['action']) && $_GET['action'] == 'installgm') {
             $this->installGmediarender();
         }
     }
 }
 /**
  * Constructs the internal representation of the Analytics service.
  *
  * @param Client $client
  */
 public function __construct(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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 Analytics_Provisioning_Resource($this, $this->serviceName, 'provisioning', array('methods' => array('createAccountTicket' => array('path' => 'provisioning/createAccountTicket', 'httpMethod' => 'POST', 'parameters' => array()))));
 }
 /**
  * Constructs the internal representation of the Books service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'books/v1/';
     $this->version = 'v1';
     $this->serviceName = 'books';
     $this->bookshelves = new 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 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 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 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 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 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 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 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 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'))), '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'), 'updatedMax' => array('location' => 'query', 'type' => 'string'), 'contentVersion' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'), 'layerId' => 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 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), 'reason' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'))))));
     $this->mylibrary_bookshelves_volumes = new 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 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->notification = new Books_Notification_Resource($this, $this->serviceName, 'notification', array('methods' => array('get' => array('path' => 'notification/get', 'httpMethod' => 'GET', 'parameters' => array('notification_id' => array('location' => 'query', 'type' => 'string', 'required' => true), 'locale' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'))))));
     $this->onboarding = new 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'), 'maxAllowedMaturityRating' => array('location' => 'query', 'type' => 'string'), 'categoryId' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'pageSize' => array('location' => 'query', 'type' => 'integer'))))));
     $this->personalizedstream = new Books_Personalizedstream_Resource($this, $this->serviceName, 'personalizedstream', array('methods' => array('get' => array('path' => 'personalizedstream/get', 'httpMethod' => 'GET', 'parameters' => array('locale' => array('location' => 'query', 'type' => 'string'), 'source' => array('location' => 'query', 'type' => 'string'), 'maxAllowedMaturityRating' => array('location' => 'query', 'type' => 'string'))))));
     $this->promooffer = new 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 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), 'user_library_consistent_read' => array('location' => 'query', 'type' => 'boolean'), 'projection' => array('location' => 'query', 'type' => 'string'), 'country' => array('location' => 'query', 'type' => 'string'), 'source' => 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 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'), 'maxAllowedMaturityRating' => array('location' => 'query', 'type' => 'string'), 'association' => array('location' => 'query', 'type' => 'string'))))));
     $this->volumes_mybooks = new 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 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'), 'maxAllowedMaturityRating' => 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 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))))));
 }
 /**
  * Constructs the internal representation of the MapsEngine service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'mapsengine/v1/';
     $this->version = 'v1';
     $this->serviceName = 'mapsengine';
     $this->assets = new 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 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 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 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 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 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 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 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 MapsEngine_Projects_Resource($this, $this->serviceName, 'projects', array('methods' => array('list' => array('path' => 'projects', 'httpMethod' => 'GET', 'parameters' => array()))));
     $this->projects_icons = new 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 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 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 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 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 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 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 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 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 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 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 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 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 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))))));
 }
 /**
  * Constructs the internal representation of the YouTube service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'youtube/v3/';
     $this->version = 'v3';
     $this->serviceName = 'youtube';
     $this->activities = new 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 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 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 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 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 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 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 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 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 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 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'))), 'bind_direct' => array('path' => 'liveBroadcasts/bind/direct', '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 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 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 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 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 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 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 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 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 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 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'))))));
 }
Exemple #13
0
 public function __construct()
 {
     parent::__construct();
     $this->pluginname = _('Advanced Setup Odroid U3');
     if ($_GET['ajax'] == 1 && $_GET['action'] == 'upgradeSystem') {
         //Function to get Progress of Installation
         $this->_upgradeSystem(true);
         ob_end_clean();
         echo implode('<br />', $this->view->message);
         ob_flush();
         die;
     }
     if (isset($_GET['action'])) {
         if ($_GET['action'] == 'disableLEDBlink') {
             $this->_setLEDBlink();
         }
         if ($_GET['action'] == 'configurePowerButton') {
             $this->_configurePowerButton();
         }
         if ($_GET['action'] == 'upgradeSystem') {
             $this->_upgradeSystem();
         }
         if ($_GET['action'] == 'checkUpgrade') {
             $this->_checkUpgrade();
         }
         if ($_GET['action'] == 'installFlash') {
             $this->_installFlash();
         }
         if ($_GET['action'] == 'installFan') {
             $this->_installFanXU4();
         }
     }
     $this->_getPowerButton();
     $this->_getDebug();
 }
Exemple #14
0
 public function __construct()
 {
     parent::__construct();
     $this->scriptPath = dirname(__FILE__) . '/../scripts/';
     $this->pluginname = _('Accesspoint Setup');
     $this->registerLocale(dirname(__FILE__) . '/../locale', 'accesspoint');
     if ($this->checkLicense(true) == false) {
         return true;
     }
     if (isset($_GET['action'])) {
         if ($_GET['action'] == 'install') {
             $this->_install();
         }
         if ($_GET['action'] == 'uninstall') {
             $this->_uninstall();
         }
         if ($_GET['action'] == 'saveSettings') {
             $this->_saveSettings();
         }
     }
     if ($this->_checkInstall()) {
         $this->_getSettings();
     }
     //Get Debug Info
     $this->_getAllLogs();
 }
 /**
  * Constructs the internal representation of the AdSense service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'adsense/v1.4/';
     $this->version = 'v1.4';
     $this->serviceName = 'adsense';
     $this->accounts = new 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 AdSense_MetadataDimensions_Resource($this, $this->serviceName, 'dimensions', array('methods' => array('list' => array('path' => 'metadata/dimensions', 'httpMethod' => 'GET', 'parameters' => array()))));
     $this->metadata_metrics = new AdSense_MetadataMetrics_Resource($this, $this->serviceName, 'metrics', array('methods' => array('list' => array('path' => 'metadata/metrics', 'httpMethod' => 'GET', 'parameters' => array()))));
     $this->payments = new AdSense_Payments_Resource($this, $this->serviceName, 'payments', array('methods' => array('list' => array('path' => 'payments', 'httpMethod' => 'GET', 'parameters' => array()))));
     $this->reports = new 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 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 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 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'))))));
 }
Exemple #16
0
 public function __construct()
 {
     parent::__construct();
     // Setup DB connection
     $this->db = new PDO('sqlite:highscore.sqlite');
     $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
     $this->db->exec("CREATE TABLE IF NOT EXISTS highscore (\n\t\t\tgame_id TEXT,\n\t\t\tscore INTEGER,\n\t\t\tname TEXT)");
 }
 /**
  * Constructs the internal representation of the Audit service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->servicePath = 'apps/reporting/audit/v1/';
     $this->version = 'v1';
     $this->serviceName = 'audit';
     $this->activities = new 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'))))));
 }
 /**
  * Constructs the internal representation of the Logging service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://logging.googleapis.com/';
     $this->servicePath = '';
     $this->version = 'v2beta1';
     $this->serviceName = 'logging';
 }
Exemple #19
0
 public function __construct($config)
 {
     $this->setVariables($config);
     $this->setUrl(sprintf('http://www.goodreads.com/review/list_rss/%d', $config['userid']));
     $this->setItemTemplate('<li><a class="clearfix" href="{{{link}}}"><img src="{{{image}}}" width="{{{size}}}" alt="{{{title}}}" /><strong><span>{{{title}}}</span> {{{author}}}</strong></a></li>' . "\n");
     $this->setUrlTemplate(sprintf('http://www.goodreads.com/user/show/%d', $config['userid']));
     parent::__construct($config);
 }
 /**
  * Constructs the internal representation of the Admin service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'email/v2/users/';
     $this->version = 'email_migration_v2';
     $this->serviceName = 'admin';
     $this->mail = new 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))))));
 }
Exemple #21
0
 /**
  * @constructor
  */
 public function __construct($config)
 {
     $this->total = $config['total'];
     $this->setURL(sprintf('https://api.github.com/users/%s/gists', $config['owner']));
     $this->setURLTemplate('https://gist.github.com/' . $config['owner']);
     $this->setItemTemplate('<li><a href="{{link}}">{{{description}}}</a> ({{{date}}})</li>' . PHP_EOL);
     parent::__construct($config);
     $this->callback_function = array('Pubwich', 'json_decode');
 }
 /**
  * Constructs the internal representation of the IdentityToolkit service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'identitytoolkit/v3/relyingparty/';
     $this->version = 'v3';
     $this->serviceName = 'identitytoolkit';
     $this->relyingparty = new 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()), 'getRecaptchaParam' => array('path' => 'getRecaptchaParam', '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()))));
 }
 /**
  * Constructs the internal representation of the SiteVerification service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'siteVerification/v1/';
     $this->version = 'v1';
     $this->serviceName = 'siteVerification';
     $this->webResource = new SiteVerification_WebResource_Resource($this, $this->serviceName, 'webResource', array('methods' => array('delete' => array('path' => 'webResource/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'webResource/{id}', 'httpMethod' => 'GET', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'getToken' => array('path' => 'token', 'httpMethod' => 'POST', 'parameters' => array()), 'insert' => array('path' => 'webResource', 'httpMethod' => 'POST', 'parameters' => array('verificationMethod' => array('location' => 'query', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'webResource', 'httpMethod' => 'GET', 'parameters' => array()), 'patch' => array('path' => 'webResource/{id}', 'httpMethod' => 'PATCH', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'webResource/{id}', 'httpMethod' => 'PUT', 'parameters' => array('id' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
 }
Exemple #24
0
 public function __construct($config)
 {
     $this->setURL(sprintf('http://vimeo.com/api/%s/clips.xml', $config['username']));
     $this->total = $config['total'];
     $this->username = $config['username'];
     $this->setItemTemplate('<li><a class="clearfix" href="{{{link}}}"><img src="{{{image_small}}}" alt="{{{title}}}" /><span>{{{title}}}</span></a></li>' . "\n");
     $this->setURLTemplate('http://www.vimeo.com/' . $config['username'] . '/');
     parent::__construct($config);
 }
 /**
  * Constructs the internal representation of the Freebase service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'freebase/v1/';
     $this->version = 'v1';
     $this->serviceName = 'freebase';
     $this->base_methods = new Resource($this, $this->serviceName, '', array('methods' => array('reconcile' => array('path' => 'reconcile', 'httpMethod' => 'GET', 'parameters' => array('lang' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'confidence' => array('location' => 'query', 'type' => 'number'), 'name' => array('location' => 'query', 'type' => 'string'), 'kind' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'prop' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'limit' => array('location' => 'query', 'type' => 'integer'))), 'search' => array('path' => 'search', 'httpMethod' => 'GET', 'parameters' => array('domain' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'help' => array('location' => 'query', 'type' => 'string'), 'query' => array('location' => 'query', 'type' => 'string'), 'scoring' => array('location' => 'query', 'type' => 'string'), 'cursor' => array('location' => 'query', 'type' => 'integer'), 'prefixed' => array('location' => 'query', 'type' => 'boolean'), 'exact' => array('location' => 'query', 'type' => 'boolean'), 'mid' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'encode' => array('location' => 'query', 'type' => 'string'), 'type' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'as_of_time' => array('location' => 'query', 'type' => 'string'), 'stemmed' => array('location' => 'query', 'type' => 'boolean'), 'format' => array('location' => 'query', 'type' => 'string'), 'spell' => array('location' => 'query', 'type' => 'string'), 'with' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'lang' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'indent' => array('location' => 'query', 'type' => 'boolean'), 'filter' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'callback' => array('location' => 'query', 'type' => 'string'), 'without' => array('location' => 'query', 'type' => 'string', 'repeated' => true), 'limit' => array('location' => 'query', 'type' => 'integer'), 'output' => array('location' => 'query', 'type' => 'string'), 'mql_output' => array('location' => 'query', 'type' => 'string'))))));
 }
 /**
  * Constructs the internal representation of the Pagespeedonline service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'pagespeedonline/v2/';
     $this->version = 'v2';
     $this->serviceName = 'pagespeedonline';
     $this->pagespeedapi = new 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'))))));
 }
 /**
  * Constructs the internal representation of the Script service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://script.googleapis.com/';
     $this->servicePath = '';
     $this->version = 'v1';
     $this->serviceName = 'script';
     $this->scripts = new Script_Scripts_Resource($this, $this->serviceName, 'scripts', array('methods' => array('run' => array('path' => 'v1/scripts/{scriptId}:run', 'httpMethod' => 'POST', 'parameters' => array('scriptId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
 }
Exemple #28
0
 public function __construct($config)
 {
     $this->setURL($config['url']);
     $this->total = $config['total'];
     $this->setItemTemplate('<li><a href="{{{link}}}">{{{title}}}</a><div style="text-align:right"><small>{{{date}}}</small></div></li>' . "\n");
     $this->setURLTemplate($config['link']);
     $this->setHeaderLink(array('url' => $config['url'], 'type' => 'application/rss+xml'));
     parent::__construct($config);
 }
 /**
  * Constructs the internal representation of the Webfonts service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'webfonts/v1/';
     $this->version = 'v1';
     $this->serviceName = 'webfonts';
     $this->webfonts = new Webfonts_Webfonts_Resource($this, $this->serviceName, 'webfonts', array('methods' => array('list' => array('path' => 'webfonts', 'httpMethod' => 'GET', 'parameters' => array('sort' => array('location' => 'query', 'type' => 'string'))))));
 }
 /**
  * Constructs the internal representation of the Customsearch service.
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     parent::__construct($client);
     $this->rootUrl = 'https://www.googleapis.com/';
     $this->servicePath = 'customsearch/';
     $this->version = 'v1';
     $this->serviceName = 'customsearch';
     $this->cse = new 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'))))));
 }