腾讯微博API接口的问题 腾讯微博API报错 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 使用接口之前,是先要验证的,就是在实例化时要传入openid和$access_token这2个值即$qq = new QC($access_token,$openid);这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是调用微博时间线的函数 preg_match做过滤词功能,遇到长度限制了! 怎么生成静态页面 我写的一个PHP即时聊室天方案 两个同父类的子类之间的调用问题 PHP与数据库连接问题 php如何 取客户端浏览器版本 随机数问题 晕了,SESSION存不住了,刷新一次生成一个新的,count也不会加了 怎么处理复选框? 求教COM 下拉列表的数据怎样动态读取数据库字段的内容? 既然HTTP是无状态协议,mysql_close还有必要么?
即$qq = new QC($access_token,$openid);
这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是调用微博时间线的函数