Weibo extends WeiboSupport implements java.io.Serializable { public Status updateStatus(String status) throws WeiboException{ return new Status(http.post(getBaseURL() + "statuses/update.json", new PostParameter[]{new PostParameter("status", status)}, true)); } Weibo();  Weibo(String baseURL);  Weibo(String id, String password);  Weibo(String id, String password, String baseURL); void setToken(String token, String tokenSecret); void setBaseURL(String baseURL); String getBaseURL(); void setSearchBaseURL(String searchBaseURL); String getSearchBaseURL(); synchronized void setOAuthConsumer(String consumerKey, String consumerSecret); RequestToken getOAuthRequestToken(); RequestToken getOAuthRequestToken(String callback_url); synchronized AccessToken getOAuthAccessToken(RequestToken requestToken); synchronized AccessToken getOAuthAccessToken(RequestToken requestToken, String pin); synchronized AccessToken getOAuthAccessToken(String token, String tokenSecret); synchronized AccessToken getOAuthAccessToken(String token
            , String tokenSecret, String oauth_verifier); synchronized AccessToken getXAuthAccessToken(String userId,String passWord,String mode); void setOAuthAccessToken(AccessToken accessToken); void setOAuthAccessToken(String token, String tokenSecret); QueryResult search(Query query); List<Status> search(String q); Trends getTrends(); Trends getCurrentTrends(); Trends getCurrentTrends(boolean excludeHashTags); List<Trends> getDailyTrends(); List<Trends> getDailyTrends(Date date, boolean excludeHashTags); List<Trends> getWeeklyTrends(); List<Trends> getWeeklyTrends(Date date, boolean excludeHashTags); List<Status> getPublicTimeline(); RateLimitStatus getRateLimitStatus(); List<Status> getPublicTimeline(int sinceID); List<Status> getPublicTimeline(long sinceID); List<Status> getHomeTimeline(); List<Status> getHomeTimeline(Paging paging); List<Status> getFriendsTimeline(); List<Status> getFriendsTimelineByPage(int page); List<Status> getFriendsTimeline(int page); List<Status> getFriendsTimeline(long sinceId, int page); List<Status> getFriendsTimeline(String id); List<Status> getFriendsTimelineByPage(String id, int page); List<Status> getFriendsTimeline(String id, int page); List<Status> getFriendsTimeline(long sinceId, String id, int page); List<Status> getFriendsTimeline(Paging paging); List<Status> getFriendsTimeline(String id, Paging paging); List<Status> getFriendsTimeline(Date since); List<Status> getFriendsTimeline(long sinceId); List<Status> getFriendsTimeline(String id,Date since); List<Status> getFriendsTimeline(String id, long sinceId); List<Status> getUserTimeline(String id, int count
            , Date since); List<Status> getUserTimeline(String id, int count,long sinceId); List<Status> getUserTimeline(String id, Paging paging); List<Status> getUserTimeline(String id, Date since); List<Status> getUserTimeline(String id, int count); List<Status> getUserTimeline(int count, Date since); List<Status> getUserTimeline(int count, long sinceId); List<Status> getUserTimeline(String id); List<Status> getUserTimeline(String id, long sinceId); List<Status> getUserTimeline(); List<Status> getUserTimeline(Paging paging); List<Status> getUserTimeline(long sinceId); List<Status> getReplies(); List<Status> getReplies(long sinceId); List<Status> getRepliesByPage(int page); List<Status> getReplies(int page); List<Status> getReplies(long sinceId, int page); List<Status> getMentions(); List<Status> getMentions(Paging paging); List<Status> getRetweetedByMe(); List<Status> getRetweetedByMe(Paging paging); List<Status> getRetweetedToMe(); List<Status> getRetweetedToMe(Paging paging); List<Status> getRetweetsOfMe(); List<Status> getRetweetsOfMe(Paging paging); Status show(int id); Status show(long id); Status showStatus(long id); Status update(String status); Status updateStatus(String status); Comment updateComment(String comment, String id, String cid); Status uploadStatus(String status,ImageItem item); Status uploadStatus(String status,ImageItem item,double _lat,double _long); Status uploadStatus(String status,File file); Status uploadStatus(String status,File file,double _lat,double _long); Status updateStatus(String status, double latitude, double longitude); Status update(String status, long inReplyToStatusId); Status updateStatus(String status, long inReplyToStatusId); Status updateStatus(String status, long inReplyToStatusId
            , double latitude, double longitude); Status destroyStatus(long statusId); Comment destroyComment(long commentId); List<Comment> destroyComments(String ids); List<Comment> destroyComments(String[] ids); Status resetCount(int type); Status retweetStatus(long statusId); List<RetweetDetails> getRetweets(long statusId); User getUserDetail(String id); User showUser(String screenName); User showUser(long id); List<User> getHotUsers(String category); User updatePrivacy(String comment); User getPrivacy(); List<User> getFriends(); List<User> getFriendsStatuses(); List<User> getFriends(Paging paging); List<User> getFriendsStatuses(Paging paging); List<User> getFriends(int page); List<User> getFriends(String id); List<User> getFriendsStatuses(String id); List<User> getFriends(String id, Paging paging); List<User> getFriendsStatuses(String id, Paging paging); List<User> getFriends(String id, int page); List<User> getFollowers(); List<User> getFollowersStatuses(); List<User> getFollowers(Paging paging); List<User> getFollowersStatuses(Paging paging); List<User> getFollowers(int page); List<User> getFollowers(String id); List<User> getFollowersStatuses(String id); List<User> getFollowers(String id, Paging paging); List<User> getFollowersStatuses(String id, Paging paging); List<User> getFollowers(String id, int page); List<User> getFeatured(); List<DirectMessage> getDirectMessages(); List<DirectMessage> getDirectMessages(Paging paging); List<DirectMessage> getDirectMessagesByPage(int page); List<DirectMessage> getDirectMessages(int page
            , int sinceId); List<DirectMessage> getDirectMessages(int sinceId); List<DirectMessage> getDirectMessages(Date since); List<DirectMessage> getSentDirectMessages(); List<DirectMessage> getSentDirectMessages(Paging paging); List<DirectMessage> getSentDirectMessages(Date since); List<DirectMessage> getSentDirectMessages(int sinceId); List<DirectMessage> getSentDirectMessages(int page
            , int sinceId); DirectMessage sendDirectMessage(String id,
                                                        String text); DirectMessage deleteDirectMessage(int id); DirectMessage destroyDirectMessage(int id); List<DirectMessage> destroyDirectMessages(String ids); List<DirectMessage> destroyDirectMessages(String[] ids); User create(String id); User createFriendship(long id); User createFriendship(String screenName); User createFriendship(String id, boolean follow); User destroy(String id); User destroyFriendship(String screenName); boolean exists(String userA, String userB); boolean existsFriendship(String userA, String userB); IDs getFriendsIDs(); IDs getFriendsIDs(Paging paging); IDs getFriendsIDs(long userId); IDs getFriendsIDs(long userId, long cursor); IDs getFriendsIDs(String screenName); IDs getFriendsIDs(long userId, long cursor,long _count); IDs getFriendsIDs(long userId, Paging _page); IDs getFriendsIDs(String screenName, long cursor); IDs getFriendsIDs(String screenName, Paging page); IDs getFollowersIDs(); IDs getFollowersIDs(Paging paging); IDs getFollowersIDs(long userId); IDs getFollowersIDs(long userId, Paging paging); IDs getFollowersIDs(long userId, long cursor,long count); IDs getFollowersIDs(String screenName); IDs getFollowersIDs(String screenName, Paging paging); IDs getFollowersIDs(String screenName, long cursor); User verifyCredentials(); User updateLocation(String location); User updateProfile(String name, String email, String url
            , String location, String description); User updateProfileImage(File image); RateLimitStatus rateLimitStatus(); User updateDeliverlyDevice(Device device); User updateProfileColors(
            String profileBackgroundColor,
            String profileTextColor,
            String profileLinkColor,
            String profileSidebarFillColor,
            String profileSidebarBorderColor); List<Status> favorites(); List<Status> getFavorites(); List<Status> favorites(int page); List<Status> getFavorites(int page); List<Status> favorites(String id); List<Status> getFavorites(String id); List<Status> favorites(String id, int page); List<Status> getFavorites(String id, int page); Status createFavorite(long id); Status destroyFavorite(long id); List<Status> destroyFavorites(String ids); List<Status> destroyFavorites(String[] ids); User follow(String id); User enableNotification(String id); User leave(String id); User disableNotification(String id); User block(String id); User createBlock(String id); User unblock(String id); User destroyBlock(String id); boolean existsBlock(String id); List<User> getBlockingUsers(); List<User> getBlockingUsers(int page); IDs getBlockingUsersIDs(); List<SavedSearch> getSavedSearches(); SavedSearch showSavedSearch(int id); SavedSearch createSavedSearch(String query); SavedSearch destroySavedSearch(int id); ListObject getList(String uid, String listId, boolean auth); List<Status> getListStatuses(String uid, String listId, boolean auth); ListObjectWapper getUserLists(String uid, boolean auth); ListObjectWapper getUserSubscriberLists(String uid, boolean auth); ListObjectWapper getUserListedLists(String uid, boolean auth); ListUserCount getListUserCount(String uid, boolean auth); UserWapper getListMembers(String uid, String listId, boolean auth); UserWapper getListSubscribers(String uid, String listId, boolean auth); ListObject insertList(String uid, String name, boolean mode, String description, boolean auth); ListObject updateList(String uid, String listId, String name, boolean mode, String description,
			boolean auth); ListObject removeList(String uid, String listId, boolean auth); ListObject addListMember(String uid, String listId, String targetUid, boolean auth); ListObject removeListMember(String uid, String listId, String targetUid, boolean auth); ListObject addListSubscriber(String uid, String listId, boolean auth); ListObject removeListSubscriber(String uid, String listId, boolean auth); boolean isListMember(String uid, String listId, String targetUid, boolean auth); boolean isListSubscriber(String uid, String listId, String targetUid, boolean auth); boolean test(); User getAuthenticatedUser(); String getDowntimeSchedule(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); List<Comment> getComments(String id); List<Comment> getCommentsTimeline(); List<Comment> getCommentsByMe(); List<Comment> getCommentsToMe(long _since_id); List<Comment> getCommentsToMe(); List<Count> getCounts(String ids); Count getUnread(); Status repost(String sid,String status); List<Status> getrepostbyme(String id); List<Status> getreposttimeline(String id); Status reply(String sid,String cid,String comment); JSONObject showFriendships(String target_id); JSONObject showFriendships(String source_id,String target_id); User endSession(); JSONObject register(String ip,String ...args); List<Tag> gettags(String user_id); List<Tag> createTags(String tags); List<Tag> getSuggestions(); JSONObject destoryTag(String tag_id); List<Tag> destory_batchTags(String ids); User updateFriendRemark(long _userId,String _remark); static String CONSUMER_KEY; static String CONSUMER_SECRET; final static Device IM; final static Device SMS; final static Device NONE; }
@Test public void testUpdateStatusStringLongDoubleDouble() throws WeiboException { String status="这是不是在伊拉克转发的？"; long inReplyToStatusId=4052331047L; double latitude=33.14; double longitude=44.22; assertNotNull(weibo.updateStatus(status, inReplyToStatusId, latitude, longitude)); }
@Test public void testUpdateStatusString() throws WeiboException { String status="A year without rain"; assertNotNull(weibo.updateStatus(status)); }
@Test public void testUpdateStatusStringDoubleDouble() throws WeiboException, JSONException, UnsupportedEncodingException { String status="time to say goodbye"; double latitude=39.9289; double longitude=116.3883; assertNotNull(weibo.updateStatus(status, latitude, longitude)); }