public class Friendships extends Weibo
| Constructor and Description |
|---|
Friendships() |
public UserWapper getFriendsByID(String id) throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic UserWapper getFriendsByScreenName(String screen_name) throws WeiboException
WeiboException - when Weibo service or network is unavailablepublic UserWapper getFriendsInCommon(String uid) throws WeiboException
uid - 需要获取共同关注关系的用户UIDWeiboException - when Weibo service or network is unavailablepublic UserWapper getFriendsInCommon(String uid, String suid, Paging page) throws WeiboException
uid - 需要获取共同关注关系的用户UIDsuid - 需要获取共同关注关系的用户UID,默认为当前登录用户count - 单页返回的记录条数,默认为50page - 返回结果的页码,默认为1WeiboException - when Weibo service or network is unavailablepublic UserWapper getFriendsBilateral(String uid) throws WeiboException
uid - 需要获取双向关注列表的用户UIDWeiboException - when Weibo service or network is unavailablepublic UserWapper getFriendsBilateral(String uid, Integer sort, Paging page) throws WeiboException
uid - 需要获取双向关注列表的用户UIDcount - 单页返回的记录条数,默认为50。page - 返回结果的页码,默认为1。sort - 排序类型,0:按关注时间最近排序,默认为0。WeiboException - when Weibo service or network is unavailablepublic String[] getFriendsBilateralIds(String uid) throws WeiboException
uid - 需要获取双向关注列表的用户UIDWeiboException - when Weibo service or network is unavailablepublic String[] getFriendsBilateralIds(String uid, Integer sort, Paging page) throws WeiboException
uid - 需要获取双向关注列表的用户UIDcount - 单页返回的记录条数,默认为50。page - 返回结果的页码,默认为1。sort - 排序类型,0:按关注时间最近排序,默认为0。WeiboException - when Weibo service or network is unavailablepublic String[] getFriendsIdsByUid(String uid) throws WeiboException
uid - 需要查询的用户UIDWeiboException - when Weibo service or network is unavailablepublic String[] getFriendsIdsByName(String screen_name) throws WeiboException
uid - 需要查询的用户UIDWeiboException - when Weibo service or network is unavailablepublic String[] getFriendsIdsByUid(String uid, Integer count, Integer cursor) throws WeiboException
uid - 需要查询的用户UIDcount - 单页返回的记录条数,默认为500,最大不超过5000cursor - 返回结果的游标,下一页用返回值里的next_cursor,上一页用previous_cursor,默认为0WeiboException - when Weibo service or network is unavailablepublic String[] getFriendsIdsByName(String screen_name, Integer count, Integer cursor) throws WeiboException
screen_name - 需要查询的用户昵称count - 单页返回的记录条数,默认为500,最大不超过5000cursor - 返回结果的游标,下一页用返回值里的next_cursor,上一页用previous_cursor,默认为0WeiboException - when Weibo service or network is unavailablepublic org.json.JSONArray getRemark(String uids) throws WeiboException
uids - 需要获取备注的用户UID,用半角逗号分隔,最多不超过50个WeiboException - when Weibo service or network is unavailablepublic UserWapper getFollowersByName(String screen_name) throws WeiboException
screen_name - 需要查询的用户昵称WeiboException - when Weibo service or network is unavailablepublic UserWapper getFollowersByName(String screen_name, Integer count, Integer cursor) throws WeiboException
screen_name - 需要查询的用户昵称count - 单页返回的记录条数,默认为500,最大不超过5000cursor - 返回结果的游标,下一页用返回值里的next_cursor,上一页用previous_cursor,默认为0WeiboException - when Weibo service or network is unavailablepublic UserWapper getFollowersById(String uid) throws WeiboException
screen_name - 需要查询的用户昵称WeiboException - when Weibo service or network is unavailablepublic UserWapper getFollowersById(String uid, Integer count, Integer cursor) throws WeiboException
screen_name - 需要查询的用户昵称count - 单页返回的记录条数,默认为500,最大不超过5000cursor - 返回结果的游标,下一页用返回值里的next_cursor,上一页用previous_cursor,默认为0WeiboException - when Weibo service or network is unavailablepublic String[] getFollowersIdsById(String uid) throws WeiboException
uid - 需要查询的用户IDWeiboException - when Weibo service or network is unavailablepublic String[] getFollowersIdsById(String uid, Integer count, Integer cursor) throws WeiboException
uid - 需要查询的用户IDcount - 单页返回的记录条数,默认为500,最大不超过5000cursor - 返回结果的游标,下一页用返回值里的next_cursor,上一页用previous_cursor,默认为0WeiboException - when Weibo service or network is unavailablepublic String[] getFollowersIdsByName(String screen_name) throws WeiboException
screen_name - 需要查询的用户昵称WeiboException - when Weibo service or network is unavailablepublic String[] getFollowersIdsByName(String screen_name, Integer count, Integer cursor) throws WeiboException
screen_name - 需要查询的用户IDcount - 单页返回的记录条数,默认为500,最大不超过5000cursor - 返回结果的游标,下一页用返回值里的next_cursor,上一页用previous_cursor,默认为0WeiboException - when Weibo service or network is unavailablepublic UserWapper getFollowersActive(String uid) throws WeiboException
uid - 需要查询的用户IDWeiboException - when Weibo service or network is unavailablepublic UserWapper getFollowersActive(String uid, Integer count) throws WeiboException
uid - 需要查询的用户IDcount - 返回的记录条数,默认为20,最大不超过200。WeiboException - when Weibo service or network is unavailablepublic UserWapper getFriendsChainFollowers(String uid) throws WeiboException
uid - 需要查询的用户IDWeiboException - when Weibo service or network is unavailablepublic User createFriendshipsById(String uid) throws WeiboException
uid - 需要查询的用户IDWeiboException - when Weibo service or network is unavailablepublic User createFriendshipsByName(String screen_name) throws WeiboException
screen_name - 需要查询的用户screen_nameWeiboException - when Weibo service or network is unavailablepublic User destroyFriendshipsDestroyById(String uid) throws WeiboException
uid - 需要查询的用户IDWeiboException - when Weibo service or network is unavailablepublic User destroyFriendshipsDestroyByName(String screen_name) throws WeiboException
screen_name - 需要查询的用户screen_nameWeiboException - when Weibo service or network is unavailableCopyright © 2013. All Rights Reserved.