解决方案 »

  1.   

    使用接口之前,是先要验证的,就是在实例化时要传入openid和$access_token这2个值
    即$qq = new QC($access_token,$openid);
    这2个值是在会员登录时获取到的,这2个值在会员登录时你可以保存到数据库去,需要的时候再读取出来就是了
      

  2.   

    楼主有没有做微博加载更多,求教
     public List<WeiBoItem> loadMore(){
        
         AccountModel account = new AccountModel(accessToken);
         timeLineAPI = new TimeLineAPI(account);
         Log.i("123","加载更多++++++");
         WBLaCallBack = new HttpCallback() {
    @Override
    public void onResult(Object object) {
    ModelResult result = (ModelResult) object;
    if (loadingWindow != null && loadingWindow.isShowing()) { loadingWindow.dismiss();
    }
    if (result != null && result.isSuccess()) {
    String jsonString = result.getObj().toString();

    Log.i("123","加载更多:"+jsonString+"---------");
    weiBoItem = WeiBoItem.parse(jsonString);
    MainFragment.timestamp = weiBoItem.get(weiBoItem.size()-1).timestamp;
    // Log.i("123","---微博昵称:"+weiBoItem[0].nick);     
    } else {
    Log.e("weibo refresh", "微博信息获取失败");
    } }
    };
         timeLineAPI.getHomeTimeLine(mainActivity, 1, MainFragment.timestamp, WeiBoConstant.WEIBO_ITEM_NUM, 0, 0, requestFormat, WBLaCallBack, null, BaseVO.TYPE_JSON);
            return weiBoItem;
    我这样写 不知道为什么获得不到数据?
    timeLineAPI.getHomeTimeLine是调用微博时间线的函数