有研究过新浪微博的嘛?关于weibo4j设置请求值的问题

有研究过新浪微博的嘛?关于weibo4j设置请求值的问题

问题描述:

Weibo = new Weibo();
weibo.setOAuthAccessToken("xxx","xxxxx");
// 获取某条微博的评论列表
List comments = weibo.getComments(id,paging)....
但是我看了json的示例。可以指定请求参数:
filter_by_author作者筛选类型:0全部,1我关注的人2陌生人。。
等等

这些个参数怎样在java中请求的时候带过去???

[code="java"]getComments()
你看这个方法得源码 可以添加参数得
/**
* 根据微博ID返回某条微博的评论列表

* @param id 需要查询的微博ID
* @param count 单页返回的记录条数,默认为50。
* @param page 返回结果的页码,默认为1。
* @param filter_by_author 作者筛选类型,0:全部、1:我关注的人、2:陌生人,默认为0。
* @return list of Comment
* @throws WeiboException when Weibo service or network is unavailable
* @version weibo4j-V2 1.0.0
* @see comments/show
* @since JDK 1.5
*/
public List getCommentById(String id,Paging page,Integer count,Integer filter_by_author) throws WeiboException{
return Comment.constructComments(Weibo.client.get(WeiboConfig.getValue("baseURL")+"comments/show.json",
new PostParameter[]{
new PostParameter("id", id),
new PostParameter("count", count.toString()),
new PostParameter("filter_by_author",filter_by_author.toString())
},page));
}
[/code]