| Package | Description |
|---|---|
| weibo4j | |
| weibo4j.examples.oauth2 | |
| weibo4j.http | |
| weibo4j.model |
| Modifier and Type | Method and Description |
|---|---|
String |
Oauth.authorize(String response_type,
String state) |
String |
Oauth.authorize(String response_type,
String state,
String scope) |
org.json.JSONObject |
Place.checkinsList(String uid)
获取用户签到过的地点列表
注:没有写完
|
org.json.JSONArray |
PublicService.cityList(String province)
获取城市列表
|
org.json.JSONArray |
PublicService.cityList(String province,
String language) |
org.json.JSONArray |
PublicService.cityList(String province,
String capital,
String language) |
org.json.JSONArray |
PublicService.cityListOfCapital(String province,
String capital) |
org.json.JSONObject |
ShortUrl.clicksOfUrl(String url_short)
获取短链接的总点击数
|
org.json.JSONObject |
ShortUrl.commentCountOfUrl(String url_short)
获取短链接在微博上的微博评论数
|
org.json.JSONObject |
ShortUrl.commentsContentUrl(String url_short)
获取包含指定单个短链接的最新微博评论
|
org.json.JSONArray |
PublicService.countryList()
获取国家列表
|
org.json.JSONArray |
PublicService.countryList(String language) |
org.json.JSONArray |
PublicService.countryList(String capital,
String language) |
org.json.JSONArray |
PublicService.countryListOfCapital(String capital) |
Comment |
Comments.createComment(String comment,
String id)
对一条微博进行评论
|
Comment |
Comments.createComment(String comment,
String id,
Integer comment_ori)
对一条微博进行评论
|
Favorites |
Favorite.createFavorites(String id)
添加一条微博到收藏里
|
User |
Friendships.createFriendshipsById(String uid)
关注一个用户
|
User |
Friendships.createFriendshipsByName(String screen_name)
关注一个用户
|
org.json.JSONArray |
Tags.createTags(String tags)
为当前登录用户添加新的用户标签
|
org.json.JSONArray |
Comments.destoryCommentBatch(String cids)
根据评论ID批量删除评论
|
org.json.JSONObject |
Tags.destoryTag(Integer tag_id)
删除一个用户标签
|
Status |
Timeline.Destroy(String id)
根据微博ID删除指定微博
|
Comment |
Comments.destroyComment(String cid)
删除一条评论
|
Favorites |
Favorite.destroyFavorites(String id)
取消收藏一条微博
|
Boolean |
Favorite.destroyFavoritesBatch(String ids)
批量删除收藏
|
Boolean |
Favorite.destroyFavoritesTagsBatch(String ids)
删除当前登录用户所有收藏下的指定标签
|
User |
Friendships.destroyFriendshipsDestroyById(String uid)
取消关注一个用户
|
User |
Friendships.destroyFriendshipsDestroyByName(String screen_name)
取消关注一个用户
|
List<Tag> |
Tags.destroyTagsBatch(String ids)
批量删除一组标签
|
StatusWapper |
Place.friendsTimeLine()
注:没有写完
获取当前登录用户与其好友的位置动态
|
AccessToken |
Oauth.getAccessTokenByCode(String code) |
org.json.JSONObject |
Account.getAccountPrivacy()
获取当前登录用户的隐私设置
|
List<School> |
Account.getAccountPrpfileSchoolList()
获取所有学校列表
|
List<School> |
Account.getAccountPrpfileSchoolList(Integer province,
Integer city,
Integer area,
Integer type,
String capital,
String keyword,
Integer count)
获取所有学校列表
|
RateLimitStatus |
Account.getAccountRateLimitStatus()
获取当前登录用户的API访问频率限制情况
|
StatusWapper |
Timeline.getBilateralTimeline()
获取双向关注用户的最新微博
|
StatusWapper |
Timeline.getBilateralTimeline(Integer base_app,
Integer feature) |
CommentWapper |
Comments.getCommentById(String id)
根据微博ID返回某条微博的评论列表
|
CommentWapper |
Comments.getCommentById(String id,
Paging page,
Integer filter_by_author)
根据微博ID返回某条微博的评论列表
|
CommentWapper |
Comments.getCommentByMe()
获取当前登录用户所发出的评论列表
|
CommentWapper |
Comments.getCommentByMe(Paging page,
Integer filter_by_source)
获取当前登录用户所发出的评论列表
|
CommentWapper |
Comments.getCommentMentions()
获取最新的提到当前登录用户的评论,即@我的评论
|
CommentWapper |
Comments.getCommentMentions(Paging page,
Integer filter_by_source,
Integer filter_by_author)
获取最新的提到当前登录用户的评论,即@我的评论
|
org.json.JSONArray |
Timeline.getCommentsDaily()
按天返回热门微博评论榜的微博列表
|
org.json.JSONArray |
Comments.getCommentShowBatch(String cids)
根据评论ID批量返回评论信息
|
org.json.JSONArray |
Timeline.getCommentsWeekly()
按周返回热门微博评论榜的微博列表
|
CommentWapper |
Comments.getCommentTimeline()
获取当前登录用户的最新评论包括接收到的与发出的
|
CommentWapper |
Comments.getCommentTimeline(Paging page)
获取当前登录用户的最新评论包括接收到的与发出的
|
CommentWapper |
Comments.getCommentToMe()
获取当前登录用户所接收到的评论列表
|
CommentWapper |
Comments.getCommentToMe(Paging page,
Integer filter_by_source,
Integer filter_by_author)
获取当前登录用户所接收到的评论列表
|
List<Emotion> |
Timeline.getEmotions()
获取微博官方表情的详细信息
|
List<Emotion> |
Timeline.getEmotions(String type,
String language)
获取微博官方表情的详细信息
|
List<Favorites> |
Favorite.getFavorites()
获取当前登录用户的收藏列表
|
List<Favorites> |
Favorite.getFavorites(Paging page)
获取当前登录用户的收藏列表
|
List<Favorites> |
Favorite.getFavoritesByTags(String tid)
根据标签获取当前登录用户该标签下的收藏列表
|
List<Favorites> |
Favorite.getFavoritesByTags(String tid,
Paging page)
根据标签获取当前登录用户该标签下的收藏列表
|
org.json.JSONObject |
Favorite.getFavoritesIds()
获取当前登录用户的收藏列表ID
|
org.json.JSONObject |
Favorite.getFavoritesIds(Paging page)
获取当前登录用户的收藏列表ID
|
List<FavoritesTag> |
Favorite.getFavoritesTags()
获取当前登录用户的收藏标签列表
|
UserWapper |
Friendships.getFollowersActive(String uid)
获取用户的活跃粉丝列表
|
UserWapper |
Friendships.getFollowersActive(String uid,
Integer count)
获取用户的活跃粉丝列表
|
UserWapper |
Friendships.getFollowersById(String uid)
获取用户的粉丝列表
|
UserWapper |
Friendships.getFollowersById(String uid,
Integer count,
Integer cursor)
获取用户的粉丝列表
|
UserWapper |
Friendships.getFollowersByName(String screen_name)
获取用户的粉丝列表
|
UserWapper |
Friendships.getFollowersByName(String screen_name,
Integer count,
Integer cursor)
获取用户的粉丝列表
|
String[] |
Friendships.getFollowersIdsById(String uid)
获取用户粉丝的用户UID列表
|
String[] |
Friendships.getFollowersIdsById(String uid,
Integer count,
Integer cursor)
获取用户粉丝的用户UID列表
|
String[] |
Friendships.getFollowersIdsByName(String screen_name)
获取用户粉丝的用户UID列表
|
String[] |
Friendships.getFollowersIdsByName(String screen_name,
Integer count,
Integer cursor)
获取用户粉丝的用户UID列表
|
UserWapper |
Friendships.getFriendsBilateral(String uid)
获取用户的双向关注列表,即互粉列表
|
UserWapper |
Friendships.getFriendsBilateral(String uid,
Integer sort,
Paging page)
获取用户的双向关注列表,即互粉列表
|
String[] |
Friendships.getFriendsBilateralIds(String uid)
获取用户双向关注的用户ID列表,即互粉UID列表
|
String[] |
Friendships.getFriendsBilateralIds(String uid,
Integer sort,
Paging page)
获取用户双向关注的用户ID列表,即互粉UID列表
|
UserWapper |
Friendships.getFriendsByID(String id)
获取用户的关注列表
|
UserWapper |
Friendships.getFriendsByScreenName(String screen_name)
获取用户的关注列表
|
UserWapper |
Friendships.getFriendsChainFollowers(String uid)
获取当前登录用户的关注人中又关注了指定用户的用户列表
|
String[] |
Friendships.getFriendsIdsByName(String screen_name)
获取用户关注的用户UID列表
|
String[] |
Friendships.getFriendsIdsByName(String screen_name,
Integer count,
Integer cursor)
获取用户关注的用户UID列表
|
String[] |
Friendships.getFriendsIdsByUid(String uid)
获取用户关注的用户UID列表
|
String[] |
Friendships.getFriendsIdsByUid(String uid,
Integer count,
Integer cursor)
获取用户关注的用户UID列表
|
UserWapper |
Friendships.getFriendsInCommon(String uid)
获取两个用户之间的共同关注人列表
|
UserWapper |
Friendships.getFriendsInCommon(String uid,
String suid,
Paging page)
获取两个用户之间的共同关注人列表
|
StatusWapper |
Timeline.getFriendsTimeline()
获取当前登录用户及其所关注用户的最新20条微博消息。
和用户登录 http://weibo.com 后在“我的首页”中看到的内容相同。
This method calls
http://api.t.sina.com.cn/statuses/friends_timeline.format
|
StatusWapper |
Timeline.getFriendsTimeline(Integer baseAPP,
Integer feature,
Paging paging)
获取当前登录用户及其所关注用户的最新微博消息。
和用户登录 http://weibo.com 后在“我的首页”中看到的内容相同。 |
org.json.JSONObject |
Timeline.getFriendsTimelineIds()
获取当前登录用户及其所关注用户的最新20条微博消息。
和用户登录 http://weibo.com 后在“我的首页”中看到的内容相同。
This method calls
http://api.t.sina.com.cn/statuses/friends_timeline.format
|
org.json.JSONObject |
Timeline.getFriendsTimelineIds(Integer baseAPP,
Integer feature,
Paging paging) |
StatusWapper |
Timeline.getHomeTimeline()
获取当前登录用户及其所关注用户的最新微博消息。
和用户登录 http://weibo.com 后在“我的首页”中看到的内容相同。 |
StatusWapper |
Timeline.getHomeTimeline(Integer baseAPP,
Integer feature,
Paging paging)
获取当前登录用户及其所关注用户的最新微博消息。
和用户登录 http://weibo.com 后在“我的首页”中看到的内容相同。 |
org.json.JSONArray |
PublicService.getLocationByCode(String codes)
通过地址编码获取地址名称
|
StatusWapper |
Timeline.getMentions()
获取最新的提到登录用户的微博列表,即@我的微博
|
StatusWapper |
Timeline.getMentions(Paging page,
Integer filter_by_author,
Integer filter_by_source,
Integer filter_by_type)
获取最新的提到登录用户的微博列表,即@我的微博
|
org.json.JSONObject |
Timeline.getMentionsIds()
获取最新的提到登录用户的微博ID列表,即@我的微博
|
org.json.JSONObject |
Timeline.getMentionsIds(Paging page,
Integer filter_by_author,
Integer filter_by_source,
Integer filter_by_type) |
StatusWapper |
Timeline.getPublicTimeline()
返回最新的公共微博
|
StatusWapper |
Timeline.getPublicTimeline(int count,
int baseApp)
返回最新的公共微博
|
org.json.JSONArray |
Friendships.getRemark(String uids)
批量获取当前登录用户的关注人的备注信息
|
StatusWapper |
Timeline.getRepostByMe()
获取当前用户最新转发的微博列表
|
StatusWapper |
Timeline.getRepostByMe(Paging page)
获取当前用户最新转发的微博列表
|
org.json.JSONArray |
Timeline.getRepostDaily()
按天返回热门微博转发榜的微博列表
|
StatusWapper |
Timeline.getRepostTimeline(String id)
获取指定微博的转发微博列表
|
StatusWapper |
Timeline.getRepostTimeline(String id,
Paging page)
获取指定微博的转发微博列表
|
org.json.JSONObject |
Timeline.getRepostTimelineIds(String id)
获取指定微博的转发微博列表
|
org.json.JSONArray |
Timeline.getRepostWeekly()
按周返回热门微博转发榜的微博列表
|
List<Tag> |
Tags.getTags(String uid)
返回指定用户的标签列表
|
List<Tag> |
Tags.getTags(String uid,
Paging page)
返回指定用户的标签列表
|
TagWapper |
Tags.getTagsBatch(String uids)
批量获取用户的标签列表
|
List<Tag> |
Tags.getTagsSuggestions()
获取系统推荐的标签列表
|
org.json.JSONObject |
PublicService.getTomeZone()
获取时区配置表
|
List<UserTrend> |
Trend.getTrends(String uid)
获取某人的话题列表
|
List<UserTrend> |
Trend.getTrends(String uid,
Paging page)
获取某人的话题列表
|
List<Trends> |
Trend.getTrendsDaily()
返回最近一天内的热门话题
|
List<Trends> |
Trend.getTrendsDaily(Integer base_app) |
List<Trends> |
Trend.getTrendsHourly()
返回最近一小时内的热门话题
|
List<Trends> |
Trend.getTrendsHourly(Integer base_app) |
List<Trends> |
Trend.getTrendsWeekly()
返回最近一周内的热门话题
|
List<Trends> |
Trend.getTrendsWeekly(Integer base_app) |
org.json.JSONObject |
Account.getUid()
OAuth授权之后,获取授权用户的UID
|
org.json.JSONObject |
Reminds.getUnreadCountOfRemind()
获取某个用户的各种消息未读数
|
org.json.JSONObject |
Reminds.getUnreadCountOfRemind(String callback) |
org.json.JSONArray |
Users.getUserCount(String uids)
批量获取用户的粉丝数、关注数、微博数
|
StatusWapper |
Timeline.getUserTimeline()
获取某个用户最新发表的微博列表
|
StatusWapper |
Timeline.getUserTimelineByName(String screen_name) |
StatusWapper |
Timeline.getUserTimelineByName(String screen_name,
Paging page,
Integer base_app,
Integer feature) |
StatusWapper |
Timeline.getUserTimelineByUid(String uid) |
StatusWapper |
Timeline.getUserTimelineByUid(String uid,
Paging page,
Integer base_app,
Integer feature)
获取某个用户最新发表的微博列表
|
org.json.JSONObject |
Timeline.getUserTimelineIdsByName(String screen_name) |
org.json.JSONObject |
Timeline.getUserTimelineIdsByUid(String uid)
获取某个用户最新发表的微博列表ID
|
org.json.JSONObject |
Trend.isFollow(String trend_name)
判断当前用户是否关注某话题
|
org.json.JSONObject |
ShortUrl.locationsOfUrl(String url_short)
获取一个短链接点击的地区来源和数量
|
org.json.JSONObject |
ShortUrl.longToShortUrl(String url_long)
长链接转为短链接
|
org.json.JSONObject |
Place.photoList(String uid)
获取用户的照片列表
注:没有写完
|
org.json.JSONObject |
Place.poisShow(String poiid)
获取地点详情
|
org.json.JSONObject |
Place.poisShow(String poiid,
int base_app) |
User |
Place.poisTipsList(String poiid)
获取在某个地点点评的列表
注:没写完
|
org.json.JSONObject |
Place.poisUsersList(String poiid)
获取在某个地点签到的人的列表
注:没写完
|
org.json.JSONArray |
PublicService.provinceList(String country)
获取省份列表
|
org.json.JSONArray |
PublicService.provinceList(String country,
String language) |
org.json.JSONArray |
PublicService.provinceList(String country,
String capital,
String language) |
org.json.JSONArray |
PublicService.provinceListOfCapital(String country,
String capital) |
org.json.JSONObject |
Timeline.QueryId(String mid,
Integer type,
int isBase62)
通过微博MID获取其ID
|
org.json.JSONObject |
Timeline.QueryId(String mid,
Integer type,
Integer isBatch,
Integer isBase62)
通过微博MID获取其ID
|
org.json.JSONObject |
Timeline.QueryMid(Integer type,
String id)
通过微博ID获取其MID
|
org.json.JSONObject |
Timeline.QueryMid(Integer type,
String id,
int is_batch)
通过微博ID获取其MID
|
org.json.JSONObject |
ShortUrl.referersOfUrl(String url_short)
获取一个短链接点击的referer来源和数量
|
Comment |
Comments.replyComment(String cid,
String id,
String comment)
回复一条评论
|
Comment |
Comments.replyComment(String cid,
String id,
String comment,
Integer without_mention,
Integer comment_ori)
回复一条评论
|
Status |
Timeline.Repost(String id)
转发一条新微博
|
Status |
Timeline.Repost(String id,
String status,
Integer is_comment)
转发一条微博
|
org.json.JSONArray |
Search.searchSuggestionsApps(String q) |
org.json.JSONArray |
Search.searchSuggestionsApps(String q,
int count) |
org.json.JSONArray |
Search.searchSuggestionsAt_users(String q,
int type) |
org.json.JSONArray |
Search.searchSuggestionsAt_users(String q,
int count,
int type,
int range) |
org.json.JSONArray |
Search.searchSuggestionsCompanies(String q) |
org.json.JSONArray |
Search.searchSuggestionsCompanies(String q,
int count) |
org.json.JSONArray |
Search.searchSuggestionsSchools(String q) |
org.json.JSONArray |
Search.searchSuggestionsSchools(String q,
int count,
int type) |
org.json.JSONArray |
Search.searchSuggestionsStatuses(String q) |
org.json.JSONArray |
Search.searchSuggestionsStatuses(String q,
int count) |
org.json.JSONArray |
Search.searchSuggestionsUsers(String q) |
org.json.JSONArray |
Search.searchSuggestionsUsers(String q,
int count) |
org.json.JSONObject |
ShortUrl.shareCountsOfUrl(String url_short)
获取短链接在微博上的微博分享数
|
org.json.JSONObject |
ShortUrl.shortToLongUrl(String url_short)
短链接转为长链接
|
Favorites |
Favorite.showFavorites(String id)
根据收藏ID获取指定的收藏信息
|
Status |
Timeline.showStatus(String id)
根据微博ID获取单条微博内容
|
User |
Users.showUserByDomain(String domain)
通过个性化域名获取用户资料以及用户最新的一条微博
|
User |
Users.showUserById(String uid)
根据用户ID获取用户信息
|
User |
Users.showUserByScreenName(String screen_name)
根据用户ID获取用户信息
|
org.json.JSONObject |
ShortUrl.statusesContentUrl(String url_short)
获取包含指定单个短链接的最新微博内容
|
org.json.JSONArray |
Suggestion.suggestionsFavoritesHot()
返回系统推荐的热门收藏
|
org.json.JSONArray |
Suggestion.suggestionsFavoritesHot(int page,
int count) |
StatusWapper |
Suggestion.suggestionsStatusesHot(int type,
int isPic)
获取微博精选推荐
|
StatusWapper |
Suggestion.suggestionsStatusesHot(int type,
int isPic,
Paging page) |
UserWapper |
Suggestion.suggestionsUsersByStatus(String content)
根据一段微博正文推荐相关微博用户
|
UserWapper |
Suggestion.suggestionsUsersByStatus(String content,
int num) |
org.json.JSONArray |
Suggestion.suggestionsUsersHot()
返回系统推荐的热门用户列表
|
org.json.JSONArray |
Suggestion.suggestionsUsersHot(String category) |
org.json.JSONArray |
Suggestion.suggestionsUsersMayInterested()
获取用户可能感兴趣的人
|
org.json.JSONArray |
Suggestion.suggestionsUsersMayInterested(int count,
int page) |
User |
Suggestion.suggestionsUsersNot_interested(String uid)
把某人标识为不感兴趣的人
|
org.json.JSONObject |
Place.tipsList(String uid)
获取用户的点评列表
注:没有写完
|
org.json.JSONObject |
Trend.trendsDestroy(Integer trend_id)
取消对某话题的关注
|
UserTrend |
Trend.trendsFollow(String trend_name)
关注某话题
|
Favorites |
Favorite.updateFavoritesTags(String id)
更新一条收藏的收藏标签
|
Favorites |
Favorite.updateFavoritesTags(String id,
String tags)
更新一条收藏的收藏标签
|
org.json.JSONObject |
Favorite.updateFavoritesTagsBatch(String tid,
String tag)
更新当前登录用户所有收藏下的指定标签
|
Status |
Timeline.UpdateStatus(String status)
发布一条新微博
|
Status |
Timeline.UpdateStatus(String status,
Float lat,
Float longs,
String annotations)
发布一条新微博
|
Status |
Timeline.UploadStatus(String status,
ImageItem item)
上传图片并发布一条新微博
|
Status |
Timeline.UploadStatus(String status,
ImageItem item,
Float lat,
Float longs)
上传图片并发布一条新微博
|
org.json.JSONObject |
Place.userInfoInLBS(String uid)
获取LBS位置服务内的用户信息
|
org.json.JSONObject |
Place.userInfoInLBS(String uid,
int base_app) |
| Modifier and Type | Method and Description |
|---|---|
static void |
OAuth4Code.main(String[] args) |
| Modifier and Type | Method and Description |
|---|---|
Document |
Response.asDocument()
Returns the response body as org.w3c.dom.Document.
Disconnects the internal HttpURLConnection silently. |
org.json.JSONArray |
Response.asJSONArray()
Returns the response body as sinat4j.org.json.JSONArray.
Disconnects the internal HttpURLConnection silently. |
org.json.JSONObject |
Response.asJSONObject()
Returns the response body as sinat4j.org.json.JSONObject.
Disconnects the internal HttpURLConnection silently. |
String |
Response.asString()
Returns the response body as string.
Disconnects the internal HttpURLConnection silently. |
Response |
HttpClient.delete(String url,
PostParameter[] params)
处理http deletemethod请求
|
Response |
HttpClient.get(String url)
处理http getmethod 请求
|
Response |
HttpClient.get(String url,
PostParameter[] params) |
Response |
HttpClient.get(String url,
PostParameter[] params,
Paging paging) |
Response |
HttpClient.httpRequest(org.apache.commons.httpclient.HttpMethod method) |
Response |
HttpClient.httpRequest(org.apache.commons.httpclient.HttpMethod method,
Boolean WithTokenHeader) |
Response |
HttpClient.multPartURL(String url,
PostParameter[] params,
ImageItem item)
支持multipart方式上传图片
|
Response |
HttpClient.multPartURL(String fileParamName,
String url,
PostParameter[] params,
File file,
boolean authenticated) |
Response |
HttpClient.post(String url,
PostParameter[] params)
处理http post请求
|
Response |
HttpClient.post(String url,
PostParameter[] params,
Boolean WithTokenHeader) |
| Constructor and Description |
|---|
AccessToken(Response res) |
ImageItem(byte[] content) |
ImageItem(String name,
byte[] content) |
| Constructor and Description |
|---|
Comment(org.json.JSONObject json) |
Comment(Response res) |
Comment(String str) |
Emotion(org.json.JSONObject json) |
Emotion(Response res) |
Favorites(Response res) |
FavoritesTag(org.json.JSONObject json) |
RateLimitStatus(Response res) |
School(org.json.JSONObject json) |
School(Response res) |
Status(org.json.JSONObject json) |
Status(Response res) |
Status(String str) |
Tag(org.json.JSONObject json) |
Tag(org.json.JSONObject json,
Weibo weibo) |
User(org.json.JSONObject json) |
UserTrend(org.json.JSONObject json) |
UserTrend(Response res) |
Copyright © 2013. All Rights Reserved.