public class Comments extends Weibo
| Constructor and Description |
|---|
Comments() |
| Modifier and Type | Method and Description |
|---|---|
Comment |
createComment(String comment,
String id)
对一条微博进行评论
|
Comment |
createComment(String comment,
String id,
Integer comment_ori)
对一条微博进行评论
|
org.json.JSONArray |
destoryCommentBatch(String cids)
根据评论ID批量删除评论
|
Comment |
destroyComment(String cid)
删除一条评论
|
CommentWapper |
getCommentById(String id)
根据微博ID返回某条微博的评论列表
|
CommentWapper |
getCommentById(String id,
Paging page,
Integer filter_by_author)
根据微博ID返回某条微博的评论列表
|
CommentWapper |
getCommentByMe()
获取当前登录用户所发出的评论列表
|
CommentWapper |
getCommentByMe(Paging page,
Integer filter_by_source)
获取当前登录用户所发出的评论列表
|
CommentWapper |
getCommentMentions()
获取最新的提到当前登录用户的评论,即@我的评论
|
CommentWapper |
getCommentMentions(Paging page,
Integer filter_by_source,
Integer filter_by_author)
获取最新的提到当前登录用户的评论,即@我的评论
|
org.json.JSONArray |
getCommentShowBatch(String cids)
根据评论ID批量返回评论信息
|
CommentWapper |
getCommentTimeline()
获取当前登录用户的最新评论包括接收到的与发出的
|
CommentWapper |
getCommentTimeline(Paging page)
获取当前登录用户的最新评论包括接收到的与发出的
|
CommentWapper |
getCommentToMe()
获取当前登录用户所接收到的评论列表
|
CommentWapper |
getCommentToMe(Paging page,
Integer filter_by_source,
Integer filter_by_author)
获取当前登录用户所接收到的评论列表
|
Comment |
replyComment(String cid,
String id,
String comment)
回复一条评论
|
Comment |
replyComment(String cid,
String id,
String comment,
Integer without_mention,
Integer comment_ori)
回复一条评论
|
public CommentWapper getCommentById(String id) throws WeiboException
id - 需要查询的微博IDWeiboException - when Weibo service or network is unavailablepublic CommentWapper getCommentById(String id, Paging page, Integer filter_by_author) throws WeiboException
id - 需要查询的微博IDcount - 单页返回的记录条数,默认为50。page - 返回结果的页码,默认为1。filter_by_author - 作者筛选类型,0:全部、1:我关注的人、2:陌生人,默认为0。WeiboException - when Weibo service or network is unavailablepublic CommentWapper getCommentByMe() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic CommentWapper getCommentByMe(Paging page, Integer filter_by_source) throws WeiboException
count - 单页返回的记录条数,默认为50page - 返回结果的页码,默认为1filter_by_source - 来源筛选类型,0:全部、1:来自微博的评论、2:来自微群的评论,默认为0WeiboException - when Weibo service or network is unavailablepublic CommentWapper getCommentToMe() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic CommentWapper getCommentToMe(Paging page, Integer filter_by_source, Integer filter_by_author) throws WeiboException
count - 单页返回的记录条数,默认为50。page - 返回结果的页码,默认为1。filter_by_author - 作者筛选类型,0:全部、1:我关注的人、2:陌生人,默认为0。filter_by_source - 来源筛选类型,0:全部、1:来自微博的评论、2:来自微群的评论,默认为0。WeiboException - when Weibo service or network is unavailablepublic CommentWapper getCommentTimeline() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic CommentWapper getCommentTimeline(Paging page) throws WeiboException
count - 单页返回的记录条数,默认为50。page - 返回结果的页码,默认为1。WeiboException - when Weibo service or network is unavailablepublic CommentWapper getCommentMentions() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic CommentWapper getCommentMentions(Paging page, Integer filter_by_source, Integer filter_by_author) throws WeiboException
count - 单页返回的记录条数,默认为50。page - 返回结果的页码,默认为1。filter_by_author - 作者筛选类型,0:全部、1:我关注的人、2:陌生人,默认为0。filter_by_source - 来源筛选类型,0:全部、1:来自微博的评论、2:来自微群的评论,默认为0。WeiboException - when Weibo service or network is unavailablepublic org.json.JSONArray getCommentShowBatch(String cids) throws WeiboException
cids - 需要查询的批量评论ID,用半角逗号分隔,最大50WeiboException - when Weibo service or network is unavailablepublic Comment createComment(String comment, String id) throws WeiboException
comment - 评论内容,必须做URLencode,内容不超过140个汉字id - 需要评论的微博IDWeiboException - when Weibo service or network is unavailablepublic Comment createComment(String comment, String id, Integer comment_ori) throws WeiboException
comment - 评论内容,必须做URLencode,内容不超过140个汉字id - 需要评论的微博IDcomment_ori - 当评论转发微博时,是否评论给原微博,0:否、1:是,默认为0。WeiboException - when Weibo service or network is unavailablepublic Comment replyComment(String cid, String id, String comment) throws WeiboException
comment - 评论内容,必须做URLencode,内容不超过140个汉字cid - 需要回复的评论IDid - 需要评论的微博IDWeiboException - when Weibo service or network is unavailablepublic Comment replyComment(String cid, String id, String comment, Integer without_mention, Integer comment_ori) throws WeiboException
comment - 评论内容,必须做URLencode,内容不超过140个汉字cid - 需要回复的评论IDid - 需要评论的微博IDwithout_mention - 回复中是否自动加入“回复@用户名”,0:是、1:否,默认为0。comment_ori - 当评论转发微博时,是否评论给原微博,0:否、1:是,默认为0。WeiboException - when Weibo service or network is unavailablepublic Comment destroyComment(String cid) throws WeiboException
cid - 要删除的评论ID,只能删除登录用户自己发布的评论WeiboException - when Weibo service or network is unavailablepublic org.json.JSONArray destoryCommentBatch(String cids) throws WeiboException
ids - 需要删除的评论ID,用半角逗号隔开,最多20个WeiboException - when Weibo service or network is unavailableCopyright © 2013. All Rights Reserved.