public class Trend extends Weibo
| Constructor and Description |
|---|
Trend() |
| Modifier and Type | Method and Description |
|---|---|
List<UserTrend> |
getTrends(String uid)
获取某人的话题列表
|
List<UserTrend> |
getTrends(String uid,
Paging page)
获取某人的话题列表
|
List<Trends> |
getTrendsDaily()
返回最近一天内的热门话题
|
List<Trends> |
getTrendsDaily(Integer base_app) |
List<Trends> |
getTrendsHourly()
返回最近一小时内的热门话题
|
List<Trends> |
getTrendsHourly(Integer base_app) |
List<Trends> |
getTrendsWeekly()
返回最近一周内的热门话题
|
List<Trends> |
getTrendsWeekly(Integer base_app) |
org.json.JSONObject |
isFollow(String trend_name)
判断当前用户是否关注某话题
|
org.json.JSONObject |
trendsDestroy(Integer trend_id)
取消对某话题的关注
|
UserTrend |
trendsFollow(String trend_name)
关注某话题
|
public List<UserTrend> getTrends(String uid) throws WeiboException
uid - 需要获取话题的用户的UIDWeiboException - when Weibo service or network is unavailablepublic List<UserTrend> getTrends(String uid, Paging page) throws WeiboException
uid - 需要获取话题的用户的UIDpage - 返回结果的页码,默认为1WeiboException - when Weibo service or network is unavailablepublic org.json.JSONObject isFollow(String trend_name) throws WeiboException
trend_name - 话题关键字,必须做URLencodeWeiboException - when Weibo service or network is unavailableorg.json.JSONExceptionpublic List<Trends> getTrendsHourly() throws WeiboException
base_app - 是否只获取当前应用的数据。0为否(所有数据),1为是(仅当前应用),默认为0WeiboException - when Weibo service or network is unavailableorg.json.JSONExceptionpublic List<Trends> getTrendsHourly(Integer base_app) throws WeiboException
WeiboExceptionpublic List<Trends> getTrendsDaily() throws WeiboException
base_app - 是否只获取当前应用的数据。0为否(所有数据),1为是(仅当前应用),默认为0WeiboException - when Weibo service or network is unavailableorg.json.JSONExceptionpublic List<Trends> getTrendsDaily(Integer base_app) throws WeiboException
WeiboExceptionpublic List<Trends> getTrendsWeekly() throws WeiboException
base_app - 是否只获取当前应用的数据。0为否(所有数据),1为是(仅当前应用),默认为0WeiboException - when Weibo service or network is unavailableorg.json.JSONExceptionpublic List<Trends> getTrendsWeekly(Integer base_app) throws WeiboException
WeiboExceptionpublic UserTrend trendsFollow(String trend_name) throws WeiboException
trend_name - 要关注的话题关键词。WeiboException - when Weibo service or network is unavailableorg.json.JSONExceptionpublic org.json.JSONObject trendsDestroy(Integer trend_id) throws WeiboException
trend_id - 要取消关注的话题IDWeiboException - when Weibo service or network is unavailableorg.json.JSONExceptionCopyright © 2013. All Rights Reserved.