/** * Create Zend_Gdata_Books 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_Books'); $this->registerPackage('Zend_Gdata_Books_Extension'); parent::__construct($client, $applicationId); $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); }
/** * Create Zend_Gdata_Gbase object */ public function __construct($client = null) { $this->registerPackage('Zend_Gdata_Gbase'); $this->registerPackage('Zend_Gdata_Gbase_Extension'); parent::__construct($client); $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); }
/** * Create Gdata_Calendar object * * @param string $email * @param string $password * */ public function __construct($client = null, $key = null) { parent::__construct($client); if ($key != null) { $this->setDeveloperKey($key); } }
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; }
/** * 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_Contacts'); $this->registerPackage('Zend_Gdata_Contacts_Extension'); parent::__construct($client, $applicationId); $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); $this->setMajorProtocolVersion(self::DEFAULT_MAJOR_PROTOCOL_VERSION); }
/** * Create Gdata_Docs 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, $applicationName) { $this->registerPackage('Zend_Gdata_Docs'); $this->registerPackage('Zend_Gdata_Docs_Extension_WritersCanInvite'); parent::__construct($client, $applicationName); $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); $this->setMajorProtocolVersion(self::DEFAULT_MAJOR_PROTOCOL_VERSION); }
/** * Create 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, $accountId = null, $applicationId = 'MyCompany-MyApp-1.0') { $this->_accountId = $accountId; $this->registerPackage('Varien_Gdata_Gshopping'); $this->registerPackage('Varien_Gdata_Gshoppinge_Extension'); parent::__construct($client, $applicationId); $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); }
/** * Class constructor * * Creates authenticated Google client. Note that this is never called directly * from public scope, but via the singleton function {@link GClient::getInstance()}. * * @method GClient GClient() GClient($service) creates and initializes new GClient object * @param string $service type of service access (either St, Doc, or Raw) * @see GClient::getInstance() * @return GClient */ public function __construct($service, $token = NULL, $captcha = NULL) { // get login credentials $user = get_option('gdocs_user'); $pwd = get_option('gdocs_pwd'); // create Zend Http Client $httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pwd, $service, NULL, NULL, $token, $captcha); $this->setProxy($httpClient); // create Zend Gdata client parent::__construct($httpClient); }
/** * Create Zend_Gdata_DublinCore 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_DublinCore'); $this->registerPackage('Zend_Gdata_DublinCore_Extension'); parent::__construct($client, $applicationId); }
/** * Create Gdata_Calendar object */ public function __construct($client = null) { parent::__construct($client); $this->_httpClient->setParameterPost('service', 'cl'); }
/** * Create Gdata_Spreadsheets object */ public function __construct($client = null) { parent::__construct($client); $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); $this->registerPackage('Zend_Gdata_Spreadsheets'); $this->registerPackage('Zend_Gdata_Spreadsheets_Extension'); $this->_server = 'spreadsheets.google.com'; }
/** * Create object * * @param \Zend_Http_Client $client (optional) The HTTP client to use when * when communicating with the Google Apps servers. * @param string $accountId Google Merchant account ID * @param string $applicationId The identity of the app in the form of Company-AppName-Version */ public function __construct($client = null, $accountId = null, $applicationId = 'MyCompany-MyApp-1.0') { $this->_accountId = $accountId; parent::__construct($client, $applicationId); $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); }
public function __construct($client = null, $applicationId = 'New App') { parent::__construct($client, $applicationId); }
/** * Create Gdata_Media object * * @param Zend_Http_Client $client The optional pre-configured HTTP client */ public function __construct($client = null) { $this->registerPackage('Zend_Gdata_Media'); $this->registerPackage('Zend_Gdata_Media_Extension'); parent::__construct($client); }