Array
(
    [request] => /statuses/mentions.json
    [error_code] => 401
    [error] => 40113:token_rejected!
)
在线求解 谢谢

解决方案 »

  1.   

                
        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  );
    }
    然后就出现上述错误了
      

  2.   

    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 );
    }
    然后就出现上述错误了
      

  3.   

    bu dong bang ding