Example #1
0
 /**
  * 获得OAuth 对象
  * @return OpenSDK_OAuth_Client
  */
 protected static function getOAuth()
 {
     if (null === self::$oauth) {
         self::$oauth = new OpenSDK_OAuth_Client(self::$_appsecret, self::$_debug);
         $secret = self::getParam(self::OAUTH_TOKEN_SECRET);
         if ($secret) {
             self::$oauth->setTokenSecret($secret);
         }
     }
     return self::$oauth;
 }