
twitter4j.api.UserMethodsAsync Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twitter4j-core Show documentation
Show all versions of twitter4j-core Show documentation
A Java library for the Twitter API
The newest version!
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Yusuke Yamamoto nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package twitter4j.api;
import twitter4j.ResponseList;
import twitter4j.TwitterException;
import twitter4j.User;
/**
* @author Joern Huxhorn - jhuxhorn at googlemail.com
*/
public interface UserMethodsAsync {
/**
* Retrieves extended information of a given user, specified by screen name. This information includes design settings, so third party developers can theme their widgets according to a given user's preferences.
*
This method calls http://api.twitter.com/1/users/show
* @param screenName the screen name of the user for whom to request the detail
* @see Twitter API Wiki / Twitter REST API Method: users%C2%A0show
*/
void showUser(String screenName);
/**
* Retrieves extended information of a given user, specified by screen name. This information includes design settings, so third party developers can theme their widgets according to a given user's preferences.
*
This method calls http://api.twitter.com/1/users/show
* @param userId the ID of the user for whom to request the detail
* @see Twitter API Wiki / Twitter REST API Method: users%C2%A0show
*/
void showUser(int userId);
/**
* Run a search for users similar to Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API (about being listed in the People Search). It is only possible to retrieve the first 1000 matches from this API.
*
This method calls http://api.twitter.com/1/users/search.json
*
* @param query The query to run against people search.
* @param page Specifies the page of results to retrieve. Number of statuses per page is fixed to 20.
* @throws twitter4j.TwitterException when Twitter service or network is unavailable
* @see Twitter API Wiki / Twitter REST API Method: users search
*/
void searchUsers(String query, int page) throws TwitterException;
/**
* Returns the specified user's friends, each with current status inline.
*
This method calls http://api.twitter.com/1/statuses/friends
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends
* @since Twitter4J 2.0.9
*/
void getFriendsStatuses();
/**
* Returns the specified user's friends, each with current status inline.
*
This method calls http://api.twitter.com/1/statuses/friends
* @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
* @since Twitter4J 2.0.9
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends
*/
void getFriendsStatuses(long cursor);
/**
* Returns the specified user's friends, each with current status inline.
*
This method calls http://api.twitter.com/1/statuses/friends
* @param screenName the screen name of the user for whom to request a list of friends
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends
* @since Twitter4J 2.0.9
*/
void getFriendsStatuses(String screenName);
/**
* Returns the specified user's friends, each with current status inline.
*
This method calls http://api.twitter.com/1/statuses/friends
* @param userId the ID of the user for whom to request a list of friends
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends
* @since Twitter4J 2.1.0
*/
void getFriendsStatuses(int userId);
/**
* Returns the specified user's friends, each with current status inline.
*
This method calls http://api.twitter.com/1/statuses/friends
* @param screenName the screen name of the user for whom to request a list of friends
* @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends
* @since Twitter4J 2.0.9
*/
void getFriendsStatuses(String screenName, long cursor);
/**
* Returns the specified user's friends, each with current status inline.
*
This method calls http://api.twitter.com/1/statuses/friends
* @param userId the screen name of the user for whom to request a list of friends
* @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends
* @since Twitter4J 2.1.0
*/
void getFriendsStatuses(int userId, long cursor);
/**
* Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
*
This method calls http://api.twitter.com/1/statuses/followers
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers
* @since Twitter4J 2.0.9
*/
void getFollowersStatuses();
/**
* Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
*
This method calls http://api.twitter.com/1/statuses/followers
* @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
* @since Twitter4J 2.0.9
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers
*/
void getFollowersStatuses(long cursor);
/**
* Returns the specified user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
*
This method calls http://api.twitter.com/1/statuses/followers
*
* @param screenName The screen name of the user for whom to request a list of followers.
* @since Twitter4J 2.0.9
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers
*/
void getFollowersStatuses(String screenName);
/**
* Returns the specified user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
*
This method calls http://api.twitter.com/1/statuses/followers
*
* @param userId The ID of the user for whom to request a list of followers.
* @since Twitter4J 2.1.0
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers
*/
void getFollowersStatuses(int userId);
/**
* Returns the specified user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
*
This method calls http://api.twitter.com/1/statuses/followers
* @param screenName The screen name of the user for whom to request a list of followers.
* @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
* @since Twitter4J 2.0.9
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers
*/
void getFollowersStatuses(String screenName, long cursor);
/**
* Returns the specified user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
*
This method calls http://api.twitter.com/1/statuses/followers
* @param userId The ID of the user for whom to request a list of followers.
* @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
* @since Twitter4J 2.1.0
* @see Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers
*/
void getFollowersStatuses(int userId, long cursor);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy