예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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);
 }
예제 #3
0
파일: ConsumerTest.php 프로젝트: travisj/zf
 public function __construct(array $options = array())
 {
     $this->_requestToken = new Zend_Oauth_Token_Request();
     $this->_accessToken = new Zend_Oauth_Token_Access();
     parent::__construct($options);
 }
예제 #4
0
 public function __construct($config)
 {
     $this->config = $config;
     parent::__construct(array_merge($config['app'], $config['server']));
 }