/** * Create Gdata_Calendar object * * @param \Zend\HTTP\Client $client (optional) The HTTP client to use when * when communicating with the Google servers. * @param string $applicationId The identity of the app in the form of Company-AppName-Version */ public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0') { $this->registerPackage('\\Zend\\GData\\Calendar'); $this->registerPackage('\\Zend\\GData\\Calendar\\Extension'); parent::__construct($client, $applicationId); $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); }
/** * Create Gdata object * * @param Client $client * @param string $applicationId The identity of the app in the form of * Company-AppName-Version */ public function __construct(Client $client = null, $applicationId = 'MyCompany-MyApp-1.0') { $this->registerPackage('Zend_Gdata_Analytics'); $this->registerPackage('Zend_Gdata_Analytics_Extension'); parent::__construct($client, $applicationId); $this->_httpClient->setParameterPost(array('service' => self::AUTH_SERVICE_NAME)); }
/** * Create Gdata_Spreadsheets object * * @param \Zend\HTTP\Client $client (optional) The HTTP client to use when * when communicating with the Google servers. * @param string $applicationId The identity of the app in the form of Company-AppName-Version */ public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0') { $this->registerPackage('\\Zend\\GData\\Spreadsheets'); $this->registerPackage('\\Zend\\GData\\Spreadsheets\\Extension'); parent::__construct($client, $applicationId); $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); $this->_server = 'spreadsheets.google.com'; }
/** * Create Zend_Gdata_Exif object * * @param \Zend\HTTP\Client $client (optional) The HTTP client to use when * when communicating with the Google servers. * @param string $applicationId The identity of the app in the form of Company-AppName-Version */ public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0') { $this->registerPackage('\\Zend\\GData\\EXIF'); $this->registerPackage('\\Zend\\GData\\EXIF\\Extension'); parent::__construct($client, $applicationId); }
/** * Create Zend_Gdata_Health object * * @param \Zend\HTTP\Client $client (optional) The HTTP client to use when * when communicating with the Google Health servers. * @param string $applicationId The identity of the application in the form * of Company-AppName-Version * @param bool $useH9Sandbox True if the H9 Developer's Sandbox should be * used instead of production Google Health. */ public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0', $useH9Sandbox = false) { $this->registerPackage('\\Zend\\GData\\Health'); $this->registerPackage('\\Zend\\GData\\Health\\Extension\\Ccr'); parent::__construct($client, $applicationId); $this->_useH9Sandbox = $useH9Sandbox; }