public function __construct() { $this->requestToken = array('url' => 'http://twitter.com/oauth/request_token', 'params' => array()); $this->authorizeUrl = 'http://twitter.com/oauth/authorize?oauth_token='; $this->accessToken = 'http://twitter.com/oauth/access_token'; // key, secret parent::__construct($this->key, $this->secret); }
public function __construct() { $this->requestToken = array('url' => 'https://graph.facebook.com/oauth/authorize', 'params' => array('client_id' => $this->clientId, 'redirect_uri' => 'http://' . env('SERVER_NAME') . '/services/oauth_callback/facebook/', 'type' => 'user_agent')); $this->authorizeUrl = 'https://graph.facebook.com/oauth/authorize?redirect_uri=http://' . env('SERVER_NAME') . '/services/oauth_callback/facebook/&client_id=' . $this->clientId . '&scope=publish_stream'; $this->accessToken = 'https://graph.facebook.com/oauth/access_token'; // key, secret parent::__construct($this->key, $this->secret); }
public function __construct() { $this->requestToken = array('url' => 'https://api.login.yahoo.com/oauth/v2/get_request_token', 'params' => array()); $this->authorizeUrl = 'https://api.login.yahoo.com/oauth/v2/request_auth?oauth_token='; $this->accessToken = 'https://api.login.yahoo.com/oauth/v2/get_token'; // key, secret parent::__construct($this->key, $this->secret); }
public function __construct() { $this->requestToken = array('url' => 'https://consent.live.com/Connect.aspx', 'params' => array('wrap_client_id' => $this->key, 'wrap_callback' => 'http://' . env('SERVER_NAME') . '/services/oauth_callback/windows_live', 'wrap_scope' => 'WL_Contacts.View')); $this->authorizeUrl = 'https://consent.live.com/Connect.aspx?wrap_client_id=' . $this->key . '&wrap_callback=http://' . env('SERVER_NAME') . '/services/oauth_callback/windows_live&wrap_scope=WL_Contacts.View'; $this->accessToken = ''; // key, secret parent::__construct($this->key, $this->secret); }
public function __construct() { $scope = 'https://www.google.com/m8/feeds/'; $this->requestToken = array('url' => 'https://www.google.com/accounts/OAuthGetRequestToken', 'params' => array('scope' => $scope)); $this->authorizeUrl = 'https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token='; $this->accessToken = 'https://www.google.com/accounts/OAuthGetAccessToken'; // key, secret parent::__construct($this->key, $this->secret); }
/** * Store our secret and options as part of this consumer * * @param string $secret * @param array $options */ public function __construct($secret, $options = array()) { parent::__construct($secret, $options); if (isset($options["max_queue_size"])) { $this->max_queue_size = $options["max_queue_size"]; } if (isset($options["batch_size"])) { $this->batch_size = $options["batch_size"]; } $this->queue = array(); }
/** * The file consumer writes track and identify calls to a file. * @param string $secret * @param array $options * string 'filename" - where to log the analytics calls */ public function __construct($secret, $options = array()) { if (!isset($options['filename'])) { $options['filename'] = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'analytics.log'; } parent::__construct($secret, $options); try { $this->file_handle = fopen($options['filename'], 'a'); chmod($options['filename'], 0777); } catch (Exception $e) { $this->handleError($e->getCode(), $e->getMessage()); } }
public function __construct() { parent::__construct('nRP8lULUCuryKPUOOTuzQ', 'ObZFIH32bBNuGQk4rZ2sSrrSpT3VHhlFXiLF7poNw'); }
public function __construct() { parent::__construct(BASE_DOMAIN, GOOGLE_OAUTH_CONSUMER_SECRET); }
public function __construct() { parent::__construct('yourKey', 'yourSecret'); }