public class Timeline extends Weibo
| Constructor and Description |
|---|
Timeline() |
| Modifier and Type | Method and Description |
|---|---|
Status |
Destroy(String id)
根据微博ID删除指定微博
|
StatusWapper |
getBilateralTimeline()
获取双向关注用户的最新微博
|
StatusWapper |
getBilateralTimeline(Integer base_app,
Integer feature) |
org.json.JSONArray |
getCommentsDaily()
按天返回热门微博评论榜的微博列表
|
org.json.JSONArray |
getCommentsWeekly()
按周返回热门微博评论榜的微博列表
|
List<Emotion> |
getEmotions()
获取微博官方表情的详细信息
|
List<Emotion> |
getEmotions(String type,
String language)
获取微博官方表情的详细信息
|
StatusWapper |
getFriendsTimeline()
获取当前登录用户及其所关注用户的最新20条微博消息。
和用户登录 http://weibo.com 后在“我的首页”中看到的内容相同。
This method calls
http://api.t.sina.com.cn/statuses/friends_timeline.format
|
StatusWapper |
getFriendsTimeline(Integer baseAPP,
Integer feature,
Paging paging)
获取当前登录用户及其所关注用户的最新微博消息。
和用户登录 http://weibo.com 后在“我的首页”中看到的内容相同。 |
org.json.JSONObject |
getFriendsTimelineIds()
获取当前登录用户及其所关注用户的最新20条微博消息。
和用户登录 http://weibo.com 后在“我的首页”中看到的内容相同。
This method calls
http://api.t.sina.com.cn/statuses/friends_timeline.format
|
org.json.JSONObject |
getFriendsTimelineIds(Integer baseAPP,
Integer feature,
Paging paging) |
StatusWapper |
getHomeTimeline()
获取当前登录用户及其所关注用户的最新微博消息。
和用户登录 http://weibo.com 后在“我的首页”中看到的内容相同。 |
StatusWapper |
getHomeTimeline(Integer baseAPP,
Integer feature,
Paging paging)
获取当前登录用户及其所关注用户的最新微博消息。
和用户登录 http://weibo.com 后在“我的首页”中看到的内容相同。 |
StatusWapper |
getMentions()
获取最新的提到登录用户的微博列表,即@我的微博
|
StatusWapper |
getMentions(Paging page,
Integer filter_by_author,
Integer filter_by_source,
Integer filter_by_type)
获取最新的提到登录用户的微博列表,即@我的微博
|
org.json.JSONObject |
getMentionsIds()
获取最新的提到登录用户的微博ID列表,即@我的微博
|
org.json.JSONObject |
getMentionsIds(Paging page,
Integer filter_by_author,
Integer filter_by_source,
Integer filter_by_type) |
StatusWapper |
getPublicTimeline()
返回最新的公共微博
|
StatusWapper |
getPublicTimeline(int count,
int baseApp)
返回最新的公共微博
|
StatusWapper |
getRepostByMe()
获取当前用户最新转发的微博列表
|
StatusWapper |
getRepostByMe(Paging page)
获取当前用户最新转发的微博列表
|
org.json.JSONArray |
getRepostDaily()
按天返回热门微博转发榜的微博列表
|
StatusWapper |
getRepostTimeline(String id)
获取指定微博的转发微博列表
|
StatusWapper |
getRepostTimeline(String id,
Paging page)
获取指定微博的转发微博列表
|
org.json.JSONObject |
getRepostTimelineIds(String id)
获取指定微博的转发微博列表
|
org.json.JSONArray |
getRepostWeekly()
按周返回热门微博转发榜的微博列表
|
StatusWapper |
getUserTimeline()
获取某个用户最新发表的微博列表
|
StatusWapper |
getUserTimelineByName(String screen_name) |
StatusWapper |
getUserTimelineByName(String screen_name,
Paging page,
Integer base_app,
Integer feature) |
StatusWapper |
getUserTimelineByUid(String uid) |
StatusWapper |
getUserTimelineByUid(String uid,
Paging page,
Integer base_app,
Integer feature)
获取某个用户最新发表的微博列表
|
org.json.JSONObject |
getUserTimelineIdsByName(String screen_name) |
org.json.JSONObject |
getUserTimelineIdsByUid(String uid)
获取某个用户最新发表的微博列表ID
|
org.json.JSONObject |
QueryId(String mid,
Integer type,
int isBase62)
通过微博MID获取其ID
|
org.json.JSONObject |
QueryId(String mid,
Integer type,
Integer isBatch,
Integer isBase62)
通过微博MID获取其ID
|
org.json.JSONObject |
QueryMid(Integer type,
String id)
通过微博ID获取其MID
|
org.json.JSONObject |
QueryMid(Integer type,
String id,
int is_batch)
通过微博ID获取其MID
|
Status |
Repost(String id)
转发一条新微博
|
Status |
Repost(String id,
String status,
Integer is_comment)
转发一条微博
|
Status |
showStatus(String id)
根据微博ID获取单条微博内容
|
Status |
UpdateStatus(String status)
发布一条新微博
|
Status |
UpdateStatus(String status,
Float lat,
Float longs,
String annotations)
发布一条新微博
|
Status |
UploadStatus(String status,
ImageItem item)
上传图片并发布一条新微博
|
Status |
UploadStatus(String status,
ImageItem item,
Float lat,
Float longs)
上传图片并发布一条新微博
|
public StatusWapper getPublicTimeline() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic StatusWapper getPublicTimeline(int count, int baseApp) throws WeiboException
count - 单页返回的记录条数,默认为20。baseApp - 是否仅获取当前应用发布的信息。0为所有,1为仅本应用。WeiboException - when Weibo service or network is unavailablepublic StatusWapper getFriendsTimeline() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic StatusWapper getFriendsTimeline(Integer baseAPP, Integer feature, Paging paging) throws WeiboException
paging - 相关分页参数过滤类型ID,0:全部、1:原创、2:图片、3:视频、4:音乐,默认为0。 - WeiboException - when Weibo service or network is unavailablepublic org.json.JSONObject getFriendsTimelineIds()
throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic org.json.JSONObject getFriendsTimelineIds(Integer baseAPP, Integer feature, Paging paging) throws WeiboException
WeiboExceptionpublic StatusWapper getHomeTimeline() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic StatusWapper getHomeTimeline(Integer baseAPP, Integer feature, Paging paging) throws WeiboException
paging - 相关分页参数过滤类型ID - ,0:全部、1:原创、2:图片、3:视频、4:音乐,默认为0。WeiboException - when Weibo service or network is unavailablepublic StatusWapper getUserTimeline() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic StatusWapper getUserTimelineByUid(String uid) throws WeiboException
WeiboExceptionpublic StatusWapper getUserTimelineByName(String screen_name) throws WeiboException
WeiboExceptionpublic StatusWapper getUserTimelineByUid(String uid, Paging page, Integer base_app, Integer feature) throws WeiboException
uid - 需要查询的用户ID。screen_name - 需要查询的用户昵称。count - 单页返回的记录条数,默认为50。page - 返回结果的页码,默认为1。base_app - 是否只获取当前应用的数据。0为否(所有数据),1为是(仅当前应用),默认为0。feature - 过滤类型ID,0:全部、1:原创、2:图片、3:视频、4:音乐,默认为0。WeiboException - when Weibo service or network is unavailablepublic StatusWapper getUserTimelineByName(String screen_name, Paging page, Integer base_app, Integer feature) throws WeiboException
WeiboExceptionpublic org.json.JSONObject getUserTimelineIdsByUid(String uid) throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic org.json.JSONObject getUserTimelineIdsByName(String screen_name) throws WeiboException
WeiboExceptionpublic StatusWapper getRepostTimeline(String id) throws WeiboException
id - 需要查询的微博IDWeiboException - when Weibo service or network is unavailablepublic StatusWapper getRepostTimeline(String id, Paging page) throws WeiboException
id - 需要查询的微博IDcount - 单页返回的记录条数,默认为50page - 返回结果的页码,默认为1WeiboException - when Weibo service or network is unavailablepublic org.json.JSONObject getRepostTimelineIds(String id) throws WeiboException
id - 需要查询的微博IDWeiboException - when Weibo service or network is unavailablepublic StatusWapper getRepostByMe() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic StatusWapper getRepostByMe(Paging page) throws WeiboException
page - 返回结果的页码,默认为1WeiboException - when Weibo service or network is unavailablepublic StatusWapper getMentions() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic StatusWapper getMentions(Paging page, Integer filter_by_author, Integer filter_by_source, Integer filter_by_type) throws WeiboException
count - 单页返回的记录条数,默认为50。page - 返回结果的页码,默认为1。filter_by_author - 作者筛选类型,0:全部、1:我关注的人、2:陌生人,默认为0。filter_by_source - 来源筛选类型,0:全部、1:来自微博、2:来自微群,默认为0。filter_by_type - 原创筛选类型,0:全部微博、1:原创的微博,默认为0。WeiboException - when Weibo service or network is unavailablepublic org.json.JSONObject getMentionsIds()
throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic org.json.JSONObject getMentionsIds(Paging page, Integer filter_by_author, Integer filter_by_source, Integer filter_by_type) throws WeiboException
WeiboExceptionpublic StatusWapper getBilateralTimeline() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic StatusWapper getBilateralTimeline(Integer base_app, Integer feature) throws WeiboException
WeiboExceptionpublic Status showStatus(String id) throws WeiboException
id - 需要获取的微博ID。WeiboException - when Weibo service or network is unavailablepublic org.json.JSONObject QueryMid(Integer type, String id) throws WeiboException
id - 需要查询的微博ID,批量模式下,用半角逗号分隔,最多不超过20个。type - 获取类型,1:微博、2:评论、3:私信,默认为1。WeiboException - when Weibo service or network is unavailablepublic org.json.JSONObject QueryMid(Integer type, String id, int is_batch) throws WeiboException
id - 需要查询的微博ID,批量模式下,用半角逗号分隔,最多不超过20个。type - 获取类型,1:微博、2:评论、3:私信,默认为1。is_batch - 是否使用批量模式,0:否、1:是,默认为0。WeiboException - when Weibo service or network is unavailablepublic org.json.JSONObject QueryId(String mid, Integer type, int isBase62) throws WeiboException
mid - true string 需要查询的微博MID,批量模式下,用半角逗号分隔,最多不超过20个type - 获取类型,1:微博、2:评论、3:私信,默认为1。WeiboException - when Weibo service or network is unavailablepublic org.json.JSONObject QueryId(String mid, Integer type, Integer isBatch, Integer isBase62) throws WeiboException
mid - true string 需要查询的微博MID,批量模式下,用半角逗号分隔,最多不超过20个type - 获取类型,1:微博、2:评论、3:私信,默认为1。is_batch - 是否使用批量模式,0:否、1:是,默认为0。inbox - 仅对私信有效,当MID类型为私信时用此参数,0:发件箱、1:收件箱,默认为0 。isBase62 - MID是否是base62编码,0:否、1:是,默认为0。WeiboException - when Weibo service or network is unavailablepublic org.json.JSONArray getRepostDaily()
throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic org.json.JSONArray getRepostWeekly()
throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic org.json.JSONArray getCommentsDaily()
throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic org.json.JSONArray getCommentsWeekly()
throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic Status Repost(String id) throws WeiboException
id - 要转发的微博IDWeiboException - when Weibo service or network is unavailablepublic Status Repost(String id, String status, Integer is_comment) throws WeiboException
id - 要转发的微博IDstatus - 添加的转发文本,必须做URLencode,内容不超过140个汉字,不填则默认为“转发微博”is_comment - 是否在转发的同时发表评论,0:否、1:评论给当前微博、2:评论给原微博、3:都评论,默认为0WeiboException - when Weibo service or network is unavailablepublic Status Destroy(String id) throws WeiboException
id - 需要删除的微博IDWeiboException - when Weibo service or network is unavailablepublic Status UpdateStatus(String status) throws WeiboException
status - 要发布的微博文本内容,必须做URLencode,内容不超过140个汉字WeiboException - when Weibo service or network is unavailablepublic Status UpdateStatus(String status, Float lat, Float longs, String annotations) throws WeiboException
status - 要发布的微博文本内容,必须做URLencode,内容不超过140个汉字lat - 纬度,有效范围:-90.0到+90.0,+表示北纬,默认为0.0。long - 经度,有效范围:-180.0到+180.0,+表示东经,默认为0.0。annotations - 元数据,主要是为了方便第三方应用记录一些适合于自己使用的信息,每条微博可以包含一个或者多个元数据,
必须以json字串的形式提交,字串长度不超过512个字符,具体内容可以自定WeiboException - when Weibo service or network is unavailablepublic Status UploadStatus(String status, ImageItem item) throws WeiboException
status - 要发布的微博文本内容,必须做URLencode,内容不超过140个汉字pic - 要上传的图片,仅支持JPEG、GIF、PNG格式,图片大小小于5M。WeiboException - when Weibo service or network is unavailablepublic Status UploadStatus(String status, ImageItem item, Float lat, Float longs) throws WeiboException
status - 要发布的微博文本内容,必须做URLencode,内容不超过140个汉字pic - 要上传的图片,仅支持JPEG、GIF、PNG格式,图片大小小于5M。lat - 纬度,有效范围:-90.0到+90.0,+表示北纬,默认为0.0。long - 经度,有效范围:-180.0到+180.0,+表示东经,默认为0.0。WeiboException - when Weibo service or network is unavailablepublic List<Emotion> getEmotions() throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic List<Emotion> getEmotions(String type, String language) throws WeiboException
type - 表情类别,face:普通表情、ani:魔法表情、cartoon:动漫表情,默认为facelanguage - 语言类别,cnname:简体、twname:繁体,默认为cnnameWeiboException - when Weibo service or network is unavailableCopyright © 2013. All Rights Reserved.