示例#1
0
 /**
  * Create ZendGData\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('ZendGData\\Calendar');
     $this->registerPackage('ZendGData\\Calendar\\Extension');
     parent::__construct($client, $applicationId);
     $this->_httpClient->setParameterPost(array('service' => self::AUTH_SERVICE_NAME));
 }
示例#2
0
 /**
  * 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;
 }
示例#3
0
 /**
  * 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(array('service' => self::AUTH_SERVICE_NAME));
     $this->_server = 'spreadsheets.google.com';
 }
示例#4
0
 /**
  * Create Zend_Gdata_Geo object
  *
  * @param \Zend\Http\Client $client (optional) The HTTP client to use when
  *          when communicating with the Google Apps 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\Geo');
     $this->registerPackage('Zend\GData\Geo\Extension');
     parent::__construct($client, $applicationId);
 }
示例#5
0
文件: GApps.php 项目: rexmac/zf2
 /**
  * Create Gdata_GApps object
  *
  * @param \Zend\Http\Client $client (optional) The HTTP client to use when
  *          when communicating with the Google Apps servers.
  * @param string $domain (optional) The Google Apps domain which is to be
  *          accessed.
  * @param string $applicationId The identity of the app in the form of Company-AppName-Version
  */
 public function __construct($client = null, $domain = null, $applicationId = 'MyCompany-MyApp-1.0')
 {
     $this->registerPackage('Zend\\GData\\GApps');
     $this->registerPackage('Zend\\GData\\GApps\\Extension');
     parent::__construct($client, $applicationId);
     $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME);
     $this->_domain = $domain;
 }