/**
  * 构造函数
  *
  * @param @oauth_token
  * @param @oauth_token_secret
  * @return
  */
 function weibo($oauth_token = NULL, $oauth_token_secret = NULL)
 {
     $this->sha1_method = new ns_OAuthSignatureMethod_HMAC_SHA1();
     $this->consumer = new ns_OAuthConsumer(XWB_APP_KEY, XWB_APP_SECRET_KEY);
     $this->setConfig();
     $this->http = XWB_plugin::getHttp(false);
 }
 /**
  * 构造函数
  */
 function pushbackCommunicator()
 {
     $this->http = XWB_plugin::getHttp();
     $this->appkey = XWB_APP_KEY;
     $this->appsecret = XWB_APP_SECRET_KEY;
     $this->serverUrl = XWB_PUSHBACK_URL;
     $this->pushbackAuthKey = (string) XWB_Plugin::pCfg('pushback_authkey');
 }
 /**
  * 构造函数
  *
  * @param @oauth_token
  * @param @oauth_token_secret
  * @return
  */
 function weibo2_0($access_token = NULL, $oauth_token_secret = NULL)
 {
     $this->setConfig();
     $this->http = XWB_plugin::getHttp(false);
 }
 function apixwb($url = '')
 {
     $this->url = $url ? $url : XWB_plugin::pCfg('url_to_xweibo');
     $this->http = XWB_plugin::getHttp(false);
 }
 /**
  * 构造函数
  *
  * @return sinaFaceSync
  */
 function sinaFaceSync()
 {
     $this->_getSinaUserInfo();
     $this->http = XWB_plugin::getHttp(false);
 }