Example #1
0
 /**
  * 构造函数
  * @param int $pid						自建平台ID
  * @param string $oauth_token			AccessToken 之后拿到的token
  * @param string $oauth_token_secret	AccessToken 之后拿到的token_secret
  * @param int $openid					openid,目前只有QQ空间日志开放平台用到
  */
 function __construct($pid, $oauth_token = NULL, $oauth_token_secret = NULL, $openid = NULL)
 {
     $wt_open = new WTOpen();
     $app = $wt_open->getApp($pid, 'qzone');
     $this->openid = $openid;
     $this->callback = $app['callback'];
     parent::__construct($app['app_key'], $app['app_secret'], $oauth_token, $oauth_token_secret);
 }
Example #2
0
 /**
  * 构造函数
  * @param int $pid						自建平台ID
  * @param string $oauth_token			AccessToken 之后拿到的token
  * @param string $oauth_token_secret	AccessToken 之后拿到的token_secret
  */
 function __construct($pid, $oauth_token = NULL, $oauth_token_secret = NULL)
 {
     $wt_open = new WTOpen();
     $app = $wt_open->getApp($pid, 't_163');
     parent::__construct($app['app_key'], $app['app_secret'], $oauth_token, $oauth_token_secret);
 }