Array
(
[request] => /statuses/mentions.json
[error_code] => 401
[error] => 40113:token_rejected!
)
在线求解 谢谢
(
[request] => /statuses/mentions.json
[error_code] => 401
[error] => 40113:token_rejected!
)
在线求解 谢谢
解决方案 »
- 请问如何在应用内调用setKeyguardEnabled()方法关闭锁屏?
- android保存图片问题
- 请在国内手机公司搞android系统开发的进来谈谈心得体会吧
- 单独的widget可以支持全屏动画吗?
- android 随机数生成后不能比较
- listview控制内部控件显示隐藏
- 刚学Android,问一个小白问题
- Toast在Timer中为什么只执行了一次?
- LocationManager.NETWORK_PROVIDER得不到位置信息
- 请问安卓如何实时获取系统栈顶应用的包名
- 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 );
}
然后就出现上述错误了