All Downloads are FREE. Search and download functionalities are using the official Maven repository.

twitter4j.api.FriendsFollowersResourcesAsync Maven / Gradle / Ivy

There is a newer version: 4.0.7
Show newest version
/*
 * Copyright 2007 Yusuke Yamamoto
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package twitter4j.api;

/**
 * @author Joern Huxhorn - jhuxhorn at googlemail.com
 */
public interface FriendsFollowersResourcesAsync {
    /**
     * Returns an array of numeric IDs for every user the authenticating user is following.
     * 
This method calls https://api.twitter.com/1.1/friends/ids.json * * @param cursor Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned. * @see GET friends/ids | Twitter Developers * @since Twitter4J 2.0.10 */ void getFriendsIDs(long cursor); /** * Returns an array of numeric IDs for every user the specified user is following. *
This method calls https://api.twitter.com/1.1/friends/ids.json * * @param userId Specifies the ID of the user for whom to return the friends list. * @param cursor Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned. * @see GET friends/ids | Twitter Developers * @since Twitter4J 2.0.10 */ void getFriendsIDs(long userId, long cursor); /** * Returns an array of numeric IDs for every user the specified user is following. *
This method calls https://api.twitter.com/1.1/friends/ids.json * * @param screenName Specifies the screen name of the user for whom to return the friends list. * @param cursor Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned. * @see GET friends/ids | Twitter Developers * @since Twitter4J 2.0.10 */ void getFriendsIDs(String screenName, long cursor); /** * Returns an array of numeric IDs for every user the specified user is followed by. *
This method calls https://api.twitter.com/1.1/followers/ids.json * * @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 GET followers/ids | Twitter Developers * @since Twitter4J 2.0.10 */ void getFollowersIDs(long cursor); /** * Returns an array of numeric IDs for every user the specified user is followed by. *
This method calls https://api.twitter.com/1.1/followers/ids.json * * @param userId Specifies the ID of the user for whom to return the followers list. * @param cursor Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned. * @see GET followers/ids | Twitter Developers * @since Twitter4J 2.0.10 */ void getFollowersIDs(long userId, long cursor); /** * Returns an array of numeric IDs for every user the specified user is followed by. *
This method calls https://api.twitter.com/1.1/followers/ids.json * * @param screenName Specifies the screen name of the user for whom to return the followers list. * @param cursor Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned. * @see GET followers/ids | Twitter Developers * @since Twitter4J 2.0.10 */ void getFollowersIDs(String screenName, long cursor); /** * Returns the relationship of the authenticating user to the specified users. *
This method has not been finalized and the interface is subject to change in incompatible ways. *
This method calls https://api.twitter.com/1.1/friendships/lookup.json * * @param ids array of the ids to lookup * @see #newtwitter and the API - Twitter API Announcements | Google Group * @since Twitter4J 2.1.9 */ void lookupFriendships(long[] ids); /** * Returns the relationship of the authenticating user to the specified users. *
This method has not been finalized and the interface is subject to change in incompatible ways. *
This method calls https://api.twitter.com/1.1/friendships/lookup.json * * @param screenNames array of the screen names to lookup * @see #newtwitter and the API - Twitter API Announcements | Google Group * @since Twitter4J 2.1.9 */ void lookupFriendships(String[] screenNames); /** * Returns an array of numeric IDs for every user who has a pending request to follow the authenticating user. *
This method calls https://api.twitter.com/1.1/friendships/incoming.json * * @param cursor Breaks the results into pages. A single page contains 5000 identifiers. Provide a value of -1 to begin paging. * @see GET friendships/incoming | Twitter Developers * @since Twitter4J 2.1.2 */ void getIncomingFriendships(long cursor); /** * Returns an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request. *
This method calls https://api.twitter.com/1.1/friendships/outgoing.json * * @param cursor Breaks the results into pages. A single page contains 5000 identifiers. Provide a value of -1 to begin paging. * @see GET friendships/outgoing | Twitter Developers * @since Twitter4J 2.1.2 */ void getOutgoingFriendships(long cursor); /** * Allows the authenticating users to follow the user specified in the ID parameter.
* Returns the befriended user in the requested format when successful. Returns a string describing the failure condition when unsuccessful. If you are already friends with the user an HTTP 403 will be returned. *
This method calls https://api.twitter.com/1.1/friendships/create * * @param userId the ID of the user to be befriended * @see POST friendships/create | Twitter Developers * @since Twitter4J 2.1.0 */ void createFriendship(long userId); /** * Allows the authenticating users to follow the user specified in the ID parameter.
* Returns the befriended user in the requested format when successful. Returns a string describing the failure condition when unsuccessful. If you are already friends with the user an HTTP 403 will be returned. *
This method calls https://api.twitter.com/1.1/friendships/create * * @param screenName the screen name of the user to be befriended * @see POST friendships/create | Twitter Developers * @since Twitter4J 2.0.1 */ void createFriendship(String screenName); /** * Allows the authenticating users to follow the user specified in the ID parameter.
* Returns the befriended user in the requested format when successful. Returns a string describing the failure condition when unsuccessful. If you are already friends with the user an HTTP 403 will be returned. *
This method calls https://api.twitter.com/1.1/friendships/create * * @param userId the ID of the user to be befriended * @param follow Enable notifications for the target user in addition to becoming friends. * @see POST friendships/create | Twitter Developers * @since Twitter4J 2.1.0 */ void createFriendship(long userId, boolean follow); /** * Allows the authenticating users to follow the user specified in the ID parameter.
* Returns the befriended user in the requested format when successful. Returns a string describing the failure condition when unsuccessful. If you are already friends with the user an HTTP 403 will be returned. *
This method calls https://api.twitter.com/1.1/friendships/create * * @param screenName the screen name of the user to be befriended * @param follow Enable notifications for the target user in addition to becoming friends. * @see POST friendships/create | Twitter Developers * @since Twitter4J 2.0.1 */ void createFriendship(String screenName, boolean follow); /** * Allows the authenticating users to unfollow the user specified in the ID parameter.
* Returns the unfollowed user in the requested format when successful. Returns a string describing the failure condition when unsuccessful. *
This method calls https://api.twitter.com/1.1/friendships/destroy * * @param userId the screen name of the user to be befriended * @see POST friendships/destroy | Twitter Developers * @since Twitter4J 2.1.0 */ void destroyFriendship(long userId); /** * Allows the authenticating users to unfollow the user specified in the ID parameter.
* Returns the unfollowed user in the requested format when successful. Returns a string describing the failure condition when unsuccessful. *
This method calls https://api.twitter.com/1.1/friendships/destroy * * @param screenName the screen name of the user to be befriended * @see POST friendships/destroy | Twitter Developers * @since Twitter4J 2.0.1 */ void destroyFriendship(String screenName); /** * Allows you to enable or disable retweets and device notifications from the specified user. *
This method has not been finalized and the interface is subject to change in incompatible ways. *
This method calls https://api.twitter.com/1.1/friendships/update.json * * @param userId user id to update * @param enableDeviceNotification set true to enable device notification * @param retweets set true to enable retweets * @see #newtwitter and the API - Twitter API Announcements | Google Group * @since Twitter4J 2.1.9 */ void updateFriendship(long userId, boolean enableDeviceNotification , boolean retweets); /** * Allows you to enable or disable retweets and device notifications from the specified user. *
This method has not been finalized and the interface is subject to change in incompatible ways. *
This method calls https://api.twitter.com/1.1/friendships/update.json * * @param screenName screen name to update * @param enableDeviceNotification set true to enable device notification * @param retweets set true to enable retweets * @see #newtwitter and the API - Twitter API Announcements | Google Group * @since Twitter4J 2.1.9 */ void updateFriendship(String screenName, boolean enableDeviceNotification , boolean retweets); /** * Returns detailed information about the relationship between two users. *
This method calls https://api.twitter.com/1.1/friendships/show.json * * @param sourceId the ID of the source user * @param targetId the ID of the target user * @see GET friendships/show | Twitter Developers * @since Twitter4J 2.1.0 */ void showFriendship(long sourceId, long targetId); /** * Returns detailed information about the relationship between two users. *
This method calls https://api.twitter.com/1.1/friendships/show.json * * @param sourceScreenName the screen name of the source user * @param targetScreenName the screen name of the target user * @see GET friendships/show | Twitter Developers * @since Twitter4J 2.1.0 */ void showFriendship(String sourceScreenName, String targetScreenName); /** * Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
* At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. Results are given in groups of 20 users and multiple "pages" of results can be navigated through using the next_cursor value in subsequent requests. See Using cursors to navigate collections for more information. *
This method calls https://api.twitter.com/1.1/friends/list.json * * @param userId The ID of the user for whom to return results for. * @param cursor Causes the results to be broken into pages of no more than 20 records at a time. * @see GET friends/list | Twitter Developers * @since Twitter4J 3.0.2 */ void getFriendsList(long userId, long cursor); /** * Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
* At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. Results are given in groups of 20 users and multiple "pages" of results can be navigated through using the next_cursor value in subsequent requests. See Using cursors to navigate collections for more information. *
This method calls https://api.twitter.com/1.1/friends/list.json * * @param screenName The screen name of the user for whom to return results for. * @param cursor Causes the results to be broken into pages of no more than 20 records at a time. * @see GET friends/list | Twitter Developers * @since Twitter4J 3.0.2 */ void getFriendsList(String screenName, long cursor); /** * Returns a cursored collection of user objects for users following the specified user.
* At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. Results are given in groups of 20 users and multiple "pages" of results can be navigated through using the next_cursor value in subsequent requests. See Using cursors to navigate collections for more information. *
This method calls https://api.twitter.com/1.1/followers/list.json * * @param userId The ID of the user for whom to return results for. * @param cursor Causes the results to be broken into pages of no more than 20 records at a time. * @see GET followers/list | Twitter Developers * @since Twitter4J 3.0.2 */ void getFollowersList(long userId, long cursor); /** * Returns a cursored collection of user objects for users following the specified user.
* At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. Results are given in groups of 20 users and multiple "pages" of results can be navigated through using the next_cursor value in subsequent requests. See Using cursors to navigate collections for more information. *
This method calls https://api.twitter.com/1.1/followers/list.json * * @param screenName The screen name of the user for whom to return results for. * @param cursor Causes the results to be broken into pages of no more than 20 records at a time. * @see GET followers/list | Twitter Developers * @since Twitter4J 3.0.2 */ void getFollowersList(String screenName, long cursor); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy