function query_sid($mid) { if ($this->_wb_type != 'sina') { return; } return oauth_api_factory::query_sid($mid); }
public function __construct($wb_type) { global $kekezu; $this->_kekezu = $kekezu; $this->_wb_type = $wb_type; require_once S_ROOT . './keke_client/weibo/client.php'; $this->init_api_config(); $this->_oauth_obj = oauth_api_factory::get_o($wb_type, $this->_app_id, $this->_app_secret); }
function logout() { oauth_api_factory::clear_access_token($this->_wb_type, $this->_app_id, $this->_app_secret); }