當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Hybrid_Provider_Model_OAuth1類代碼示例

本文整理匯總了PHP中Hybrid_Provider_Model_OAuth1的典型用法代碼示例。如果您正苦於以下問題:PHP Hybrid_Provider_Model_OAuth1類的具體用法?PHP Hybrid_Provider_Model_OAuth1怎麽用?PHP Hybrid_Provider_Model_OAuth1使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Hybrid_Provider_Model_OAuth1類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: initialize

 /**
  * IDp wrappers initializer 
  */
 function initialize()
 {
     parent::initialize();
     // provider api end-points
     $this->api->api_base_url = "https://identi.ca/api/";
     $this->api->authorize_url = "https://identi.ca/api/oauth/authorize";
     $this->api->request_token_url = "https://identi.ca/api/oauth/request_token";
     $this->api->access_token_url = "https://identi.ca/api/oauth/access_token";
 }
開發者ID:davidbehler,項目名稱:HybridAuth,代碼行數:12,代碼來源:Identica.php

示例2: initialize

 /**
  * IDp wrappers initializer 
  */
 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->api_endpoint_url = "http://api.myspace.com/v1/";
     $this->api->authorize_url = "http://api.myspace.com/authorize";
     $this->api->request_token_url = "http://api.myspace.com/request_token";
     $this->api->access_token_url = "http://api.myspace.com/access_token";
 }
開發者ID:mafiu,項目名稱:listapp,代碼行數:12,代碼來源:MySpace.php

示例3: initialize

 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->api_base_url = 'http://api.murmur.tw/1/';
     $this->api->authorize_url = 'http://api.murmur.tw/oauth/authorize';
     $this->api->request_token_url = 'http://api.murmur.tw/oauth/request_token';
     $this->api->access_token_url = 'http://api.murmur.tw/oauth/access_token';
 }
開發者ID:govza,項目名稱:modx-hybridauth,代碼行數:9,代碼來源:Murmur.php

示例4: initialize

 /**
  * IDp wrappers initializer
  */
 function initialize()
 {
     parent::initialize();
     // provider api end-points
     $this->api->api_base_url = "https://bitbucket.org/api/1.0/";
     $this->api->authorize_url = "https://bitbucket.org/api/1.0/oauth/authenticate";
     $this->api->request_token_url = "https://bitbucket.org/api/1.0/oauth/request_token";
     $this->api->access_token_url = "https://bitbucket.org/api/1.0/oauth/access_token";
     $this->api->curl_auth_header = false;
 }
開發者ID:mif32,項目名稱:2_d_social_login_lite,代碼行數:13,代碼來源:bitbucket.php

示例5: initialize

 /**
  * IDp wrappers initializer
  */
 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->api_base_url = 'http://api.rdio.com/1/';
     $this->api->authorize_url = 'https://www.rdio.com/oauth/authorize';
     $this->api->request_token_url = 'http://api.rdio.com/oauth/request_token';
     $this->api->access_token_url = 'http://api.rdio.com/oauth/access_token';
     $this->api->curl_authenticate_method = "POST";
 }
開發者ID:govza,項目名稱:modx-hybridauth,代碼行數:13,代碼來源:Rdio.php

示例6: initialize

 /**
  * IDp wrappers initializer 
  */
 function initialize()
 {
     parent::initialize();
     // provider api end-points
     $this->api->api_base_url = "https://api.500px.com/v1/";
     $this->api->authorize_url = "https://api.500px.com/v1/oauth/authorize";
     $this->api->request_token_url = "https://api.500px.com/v1/oauth/request_token";
     $this->api->access_token_url = "https://api.500px.com/v1/oauth/access_token";
     $this->api->curl_auth_header = false;
 }
開發者ID:hilmysyarif,項目名稱:l4-bootstrap-admin,代碼行數:13,代碼來源:px500.php

示例7: initialize

 /**
  * IDp wrappers initializer 
  */
 function initialize()
 {
     parent::initialize();
     // provider api end-points
     $this->api->api_base_url = "http://www.goodreads.com/";
     $this->api->authorize_url = "http://www.goodreads.com/oauth/authorize";
     $this->api->request_token_url = "http://www.goodreads.com/oauth/request_token";
     $this->api->access_token_url = "http://www.goodreads.com/oauth/access_token";
     // turn off json parsing!
     $this->api->decode_json = false;
 }
開發者ID:mrsad,項目名稱:Dru.io,代碼行數:14,代碼來源:Goodreads.php

示例8: initialize

 function initialize()
 {
     // Use Beijing Timezone
     date_default_timezone_set('Etc/GMT-8');
     parent::initialize();
     // Provider api end-points
     $this->api->api_base_url = 'http://open.t.qq.com/api/';
     $this->api->authorize_url = 'https://open.t.qq.com/cgi-bin/authorize';
     $this->api->request_token_url = 'https://open.t.qq.com/cgi-bin/request_token';
     $this->api->access_token_url = 'https://open.t.qq.com/cgi-bin/access_token';
 }
開發者ID:kumarsivarajan,項目名稱:yii-user-management,代碼行數:11,代碼來源:QQ.php

示例9: initialize

 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->api_base_url = 'http://emma.pixnet.cc/';
     $this->api->authorize_url = 'http://emma.pixnet.cc/oauth/authorize';
     $this->api->request_token_url = 'http://emma.pixnet.cc/oauth/request_token';
     $this->api->access_token_url = 'http://emma.pixnet.cc/oauth/access_token';
     // for access_token need to POST data instead of using GET
     $this->api->access_token_method = 'POST';
 }
開發者ID:alijaffar,項目名稱:PHP-Login-Framework,代碼行數:11,代碼來源:Pixnet.php

示例10: initialize

 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->api_base_url = 'http://www.plurk.com/APP/';
     $this->api->authorize_url = 'http://www.plurk.com/OAuth/authorize';
     $this->api->request_token_url = 'http://www.plurk.com/OAuth/request_token';
     $this->api->access_token_url = 'http://www.plurk.com/OAuth/access_token';
     // for Plurk we need to POST data instead of using GET
     $this->api->request_token_method = 'POST';
     $this->api->access_token_method = 'POST';
 }
開發者ID:DonaldNgai,項目名稱:PHPAuthentication,代碼行數:12,代碼來源:Plurk.php

示例11: initialize

 /**
  * IDp wrappers initializer 
  */
 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->api_base_url = "https://api.twitter.com/1.1/";
     $this->api->authorize_url = "https://api.twitter.com/oauth/authenticate";
     $this->api->request_token_url = "https://api.twitter.com/oauth/request_token";
     $this->api->access_token_url = "https://api.twitter.com/oauth/access_token";
     if (isset($this->config['api_version']) && $this->config['api_version']) {
         $this->api->api_base_url = "https://api.twitter.com/{$this->config['api_version']}/";
     }
     if (isset($this->config['authorize']) && $this->config['authorize']) {
         $this->api->authorize_url = "https://api.twitter.com/oauth/authorize";
     }
     $this->api->curl_auth_header = false;
 }
開發者ID:microbye,項目名稱:q2a-open-login,代碼行數:19,代碼來源:Twitter.php

示例12: initialize

 /**
  * Initialize.
  */
 function initialize()
 {
     if (!$this->config['keys']['key'] || !$this->config['keys']['secret']) {
         throw new Exception('You need a consumer key and secret to connect to ' . $this->providerId . '.');
     }
     parent::initialize();
     // XING API endpoints.
     $this->api->api_base_url = 'https://api.xing.com/v1/';
     $this->api->authorize_url = 'https://api.xing.com/v1/authorize';
     $this->api->request_token_url = 'https://api.xing.com/v1/request_token';
     $this->api->access_token_url = 'https://api.xing.com/v1/access_token';
     // Currently there is only version "v1" available.
     if (isset($this->config['api_version']) && $this->config['api_version']) {
         $this->api->api_base_url = 'https://api.xing.com/' . $this->config['api_version'] . '/';
     }
     // We don't need them.
     $this->api->curl_auth_header = false;
 }
開發者ID:DonaldNgai,項目名稱:PHPAuthentication,代碼行數:21,代碼來源:XING.php

示例13: loginFinish

 /**
  * {@inheritdoc}
  */
 public function loginFinish()
 {
     // in case we are completing a Reverse Auth flow; cf. https://dev.twitter.com/docs/ios/using-reverse-auth
     if (isset($_REQUEST['oauth_token_secret'])) {
         $tokens = $_REQUEST;
         $this->access_tokens_raw = $tokens;
         // we should have an access_token unless something has gone wrong
         if (!isset($tokens["oauth_token"])) {
             throw new Exception("Authentication failed! {$this->providerId} returned an invalid access token.", 5);
         }
         // Get rid of tokens we don't need
         $this->deleteToken("request_token");
         $this->deleteToken("request_token_secret");
         // Store access_token and secret for later use
         $this->token("access_token", $tokens['oauth_token']);
         $this->token("access_token_secret", $tokens['oauth_token_secret']);
         // set user as logged in to the current provider
         $this->setUserConnected();
         return;
     }
     parent::loginFinish();
 }
開發者ID:kalypso63,項目名稱:social_auth,代碼行數:25,代碼來源:Twitter.php


注:本文中的Hybrid_Provider_Model_OAuth1類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。