/** * Create Gdata_OAuth_Helper object * * @param string $consumerKey OAuth consumer key (domain). * @param string $consumerSecret (optional) OAuth consumer secret. Required if * using HMAC-SHA1 for a signature method. * @param string $sigMethod (optional) The oauth_signature method to use. * Defaults to HMAC-SHA1. RSA-SHA1 is also supported. */ public function __construct($consumerKey, $consumerSecret = null, $sigMethod = 'HMAC-SHA1') { $this->_defaultOptions['consumerKey'] = $consumerKey; $this->_defaultOptions['consumerSecret'] = $consumerSecret; $this->_defaultOptions['signatureMethod'] = $sigMethod; parent::__construct($this->_defaultOptions); }
/** * Create OAuth client * @param string $consumer_key * @param string $consumer_secret * @param array $params OAuth options */ public function __construct($consumer_key, $consumer_secret, $params = null) { $this->_oauth_config = array('consumerKey' => $consumer_key, 'consumerSecret' => $consumer_secret); if (!empty($params)) { $this->_oauth_config = array_merge($this->_oauth_config, $params); } parent::__construct($this->_oauth_config); }
public function __construct(array $options = array()) { $this->_requestToken = new Zend_Oauth_Token_Request(); $this->_accessToken = new Zend_Oauth_Token_Access(); parent::__construct($options); }
public function __construct($config) { $this->config = $config; parent::__construct(array_merge($config['app'], $config['server'])); }