Array
(
[request] => /statuses/mentions.json
[error_code] => 401
[error] => 40113:token_rejected!
)
在线求解 谢谢
(
[request] => /statuses/mentions.json
[error_code] => 401
[error] => 40113:token_rejected!
)
在线求解 谢谢
解决方案 »
- NDK编译CPP文件的问题
- 如何为alertDialog添加onKeyDown()事件监听?
- Thead发送信息让handler来处理的问题
- android小问题,求各位大虾解救啊!!!!
- opengl es 中怎么实现指定颜色通道为透明?
- XmlResourceParser使用Next()后有办法回退 或 回到根部吗?
- 如何获取当前的屏幕颜色
- 请教ListView里如何异步加载网络图片
- 菜鸟画bitmap的时候,如何实现后续操作啊?
- 大数据的手机号码进行归属地查询,分类存储文件
- Android 跨布局拖动控件的问题(已附源码,希望高手改善)
- android群发短信怎么保存到数据库,让发送的短信在一个会话里?
include_once SITE_PATH."/addons/plugins/login/sina.class.php";
$platform = new sina();
$opt = $platform->getToken();
$contents = $platform->mentions($opt);//获取@当前用户的最新微博
function mentions($opt,$page = 1 , $count = 20)
{
return $this->doClient($opt)->mentions($page = 1 , $count);
}public function doClient($opt){
$oauth_token = ( $opt['oauth_token'] )? $opt['oauth_token']:$_SESSION['sina']['access_token']['oauth_token'];
$oauth_token_secret = ( $opt['oauth_token_secret'] )? $opt['oauth_token_secret']:$_SESSION['sina']['access_token']['oauth_token_secret'];
return new WeiboClient( $this->_sina_akey , $this->_sina_skey , $oauth_token, $oauth_token_secret );
}
然后就出现上述错误了
$platform = new sina();
$opt = $platform->getToken();
$contents = $platform->mentions($opt);//获取@当前用户的最新微博
function mentions($opt,$page = 1 , $count = 20)
{
return $this->doClient($opt)->mentions($page = 1 , $count);
}public function doClient($opt){
$oauth_token = ( $opt['oauth_token'] )? $opt['oauth_token']:$_SESSION['sina']['access_token']['oauth_token'];
$oauth_token_secret = ( $opt['oauth_token_secret'] )? $opt['oauth_token_secret']:$_SESSION['sina']['access_token']['oauth_token_secret'];
return new WeiboClient( $this->_sina_akey , $this->_sina_skey , $oauth_token, $oauth_token_secret );
}
然后就出现上述错误了