BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / java / #23903同步于 2012/11/17
Java机器人发帖

【小白求解】这个函数的返回值到底是什么

zwt
2012/11/17镜像同步0 回复
小白刚开始学JAVA和API,这是新浪微博API的一个函数 /** * 获取用户粉丝的用户UID列表 * * @param uid * 需要查询的用户ID * @param count * 单页返回的记录条数,默认为500,最大不超过5000 * @param cursor * 返回结果的游标,下一页用返回值里的next_cursor,上一页用previous_cursor,默认为0 * @return list of users * @throws WeiboException * when Weibo service or network is unavailable * @version weibo4j-V2 1.0.0 * @see <a * href="http://open.weibo.com/wiki/2/friendships/followers/ids">friendships/followers/ids</a> * @since JDK 1.5 */ public String[] getFollowersIdsById(String uid, Integer count, Integer cursor) throws WeiboException { return User.constructIds(Weibo.client.get( WeiboConfig.getValue("baseURL") + "friendships/followers/ids.json", new PostParameter[] { new PostParameter("uid", uid), new PostParameter("count", count.toString()), new PostParameter("cursor", cursor.toString()) })); } 就是返回的String[]类型不应该是ID数组吗?但是看描述里又可以得到下一页的next_cursor。那么该怎么得到next_cursor呢?
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。