Package com.twitter.clientlib.api
Class UsersApi
- java.lang.Object
-
- com.twitter.clientlib.api.ApiCommon
-
- com.twitter.clientlib.api.UsersApi
-
public class UsersApi extends ApiCommon
-
-
Field Summary
-
Fields inherited from class com.twitter.clientlib.api.ApiCommon
localVarApiClient
-
-
Constructor Summary
Constructors Constructor Description UsersApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleUserLookupResponsefindMyUser(Integer retries, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)Calls the API using a retry mechanism to handle rate limits errors.SingleUserLookupResponsefindMyUser(Set<String> expansions, Set<String> tweetFields, Set<String> userFields)User lookup me This endpoint returns information about the requesting user.okhttp3.CallfindMyUserAsync(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<SingleUserLookupResponse> _callback)User lookup me (asynchronously) This endpoint returns information about the requesting user.okhttp3.CallfindMyUserCall(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback)Build call for findMyUserApiResponse<SingleUserLookupResponse>findMyUserWithHttpInfo(Set<String> expansions, Set<String> tweetFields, Set<String> userFields)User lookup me This endpoint returns information about the requesting user.SingleUserLookupResponsefindUserById(Integer retries, String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)Calls the API using a retry mechanism to handle rate limits errors.SingleUserLookupResponsefindUserById(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)User lookup by ID This endpoint returns information about a user.okhttp3.CallfindUserByIdAsync(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<SingleUserLookupResponse> _callback)User lookup by ID (asynchronously) This endpoint returns information about a user.okhttp3.CallfindUserByIdCall(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback)Build call for findUserByIdApiResponse<SingleUserLookupResponse>findUserByIdWithHttpInfo(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)User lookup by ID This endpoint returns information about a user.SingleUserLookupResponsefindUserByUsername(Integer retries, String username, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)Calls the API using a retry mechanism to handle rate limits errors.SingleUserLookupResponsefindUserByUsername(String username, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)User lookup by username This endpoint returns information about a user.okhttp3.CallfindUserByUsernameAsync(String username, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<SingleUserLookupResponse> _callback)User lookup by username (asynchronously) This endpoint returns information about a user.okhttp3.CallfindUserByUsernameCall(String username, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback)Build call for findUserByUsernameApiResponse<SingleUserLookupResponse>findUserByUsernameWithHttpInfo(String username, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)User lookup by username This endpoint returns information about a user.MultiUserLookupResponsefindUsersById(Integer retries, List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)Calls the API using a retry mechanism to handle rate limits errors.MultiUserLookupResponsefindUsersById(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)User lookup by IDs This endpoint returns information about users.okhttp3.CallfindUsersByIdAsync(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<MultiUserLookupResponse> _callback)User lookup by IDs (asynchronously) This endpoint returns information about users.okhttp3.CallfindUsersByIdCall(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback)Build call for findUsersByIdApiResponse<MultiUserLookupResponse>findUsersByIdWithHttpInfo(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)User lookup by IDs This endpoint returns information about users.MultiUserLookupResponsefindUsersByUsername(Integer retries, List<String> usernames, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)Calls the API using a retry mechanism to handle rate limits errors.MultiUserLookupResponsefindUsersByUsername(List<String> usernames, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)User lookup by usernames This endpoint returns information about users.okhttp3.CallfindUsersByUsernameAsync(List<String> usernames, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<MultiUserLookupResponse> _callback)User lookup by usernames (asynchronously) This endpoint returns information about users.okhttp3.CallfindUsersByUsernameCall(List<String> usernames, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback)Build call for findUsersByUsernameApiResponse<MultiUserLookupResponse>findUsersByUsernameWithHttpInfo(List<String> usernames, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)User lookup by usernames This endpoint returns information about users.ListLookupMultipleUsersLookupResponselistGetFollowers(Integer retries, String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)Calls the API using a retry mechanism to handle rate limits errors.ListLookupMultipleUsersLookupResponselistGetFollowers(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)Returns user objects that follow a List by the provided List ID Returns a list of users that follow a List by the provided List IDokhttp3.CalllistGetFollowersAsync(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<ListLookupMultipleUsersLookupResponse> _callback)Returns user objects that follow a List by the provided List ID (asynchronously) Returns a list of users that follow a List by the provided List IDokhttp3.CalllistGetFollowersCall(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback)Build call for listGetFollowersApiResponse<ListLookupMultipleUsersLookupResponse>listGetFollowersWithHttpInfo(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)Returns user objects that follow a List by the provided List ID Returns a list of users that follow a List by the provided List IDListLookupMultipleUsersLookupResponselistGetMembers(Integer retries, String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)Calls the API using a retry mechanism to handle rate limits errors.ListLookupMultipleUsersLookupResponselistGetMembers(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)Returns user objects that are members of a List by the provided List ID Returns a list of users that are members of a List by the provided List IDokhttp3.CalllistGetMembersAsync(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<ListLookupMultipleUsersLookupResponse> _callback)Returns user objects that are members of a List by the provided List ID (asynchronously) Returns a list of users that are members of a List by the provided List IDokhttp3.CalllistGetMembersCall(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback)Build call for listGetMembersApiResponse<ListLookupMultipleUsersLookupResponse>listGetMembersWithHttpInfo(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields)Returns user objects that are members of a List by the provided List ID Returns a list of users that are members of a List by the provided List IDGenericMultipleUsersLookupResponsetweetsIdLikingUsers(Integer retries, String id, Integer maxResults, String paginationToken)Calls the API using a retry mechanism to handle rate limits errors.GenericMultipleUsersLookupResponsetweetsIdLikingUsers(String id, Integer maxResults, String paginationToken)Returns user objects that have liked the provided Tweet ID Returns a list of users that have liked the provided Tweet IDokhttp3.CalltweetsIdLikingUsersAsync(String id, Integer maxResults, String paginationToken, ApiCallback<GenericMultipleUsersLookupResponse> _callback)Returns user objects that have liked the provided Tweet ID (asynchronously) Returns a list of users that have liked the provided Tweet IDokhttp3.CalltweetsIdLikingUsersCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback)Build call for tweetsIdLikingUsersApiResponse<GenericMultipleUsersLookupResponse>tweetsIdLikingUsersWithHttpInfo(String id, Integer maxResults, String paginationToken)Returns user objects that have liked the provided Tweet ID Returns a list of users that have liked the provided Tweet IDGenericMultipleUsersLookupResponsetweetsIdRetweetingUsers(Integer retries, String id, Integer maxResults, String paginationToken)Calls the API using a retry mechanism to handle rate limits errors.GenericMultipleUsersLookupResponsetweetsIdRetweetingUsers(String id, Integer maxResults, String paginationToken)Returns user objects that have retweeted the provided Tweet ID Returns a list of users that have retweeted the provided Tweet IDokhttp3.CalltweetsIdRetweetingUsersAsync(String id, Integer maxResults, String paginationToken, ApiCallback<GenericMultipleUsersLookupResponse> _callback)Returns user objects that have retweeted the provided Tweet ID (asynchronously) Returns a list of users that have retweeted the provided Tweet IDokhttp3.CalltweetsIdRetweetingUsersCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback)Build call for tweetsIdRetweetingUsersApiResponse<GenericMultipleUsersLookupResponse>tweetsIdRetweetingUsersWithHttpInfo(String id, Integer maxResults, String paginationToken)Returns user objects that have retweeted the provided Tweet ID Returns a list of users that have retweeted the provided Tweet IDUsersBlockingMutationResponseusersIdBlock(UsersIdBlockRequest usersIdBlockRequest, String id)Block User by User ID Causes the user (in the path) to block the target user.UsersBlockingMutationResponseusersIdBlock(Integer retries, UsersIdBlockRequest usersIdBlockRequest, String id)Calls the API using a retry mechanism to handle rate limits errors.okhttp3.CallusersIdBlockAsync(UsersIdBlockRequest usersIdBlockRequest, String id, ApiCallback<UsersBlockingMutationResponse> _callback)Block User by User ID (asynchronously) Causes the user (in the path) to block the target user.okhttp3.CallusersIdBlockCall(UsersIdBlockRequest usersIdBlockRequest, String id, ApiCallback _callback)Build call for usersIdBlockGenericMultipleUsersLookupResponseusersIdBlocking(Integer retries, String id, Integer maxResults, String paginationToken)Calls the API using a retry mechanism to handle rate limits errors.GenericMultipleUsersLookupResponseusersIdBlocking(String id, Integer maxResults, String paginationToken)Returns user objects that are blocked by provided user ID Returns a list of users that are blocked by the provided user IDokhttp3.CallusersIdBlockingAsync(String id, Integer maxResults, String paginationToken, ApiCallback<GenericMultipleUsersLookupResponse> _callback)Returns user objects that are blocked by provided user ID (asynchronously) Returns a list of users that are blocked by the provided user IDokhttp3.CallusersIdBlockingCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback)Build call for usersIdBlockingApiResponse<GenericMultipleUsersLookupResponse>usersIdBlockingWithHttpInfo(String id, Integer maxResults, String paginationToken)Returns user objects that are blocked by provided user ID Returns a list of users that are blocked by the provided user IDApiResponse<UsersBlockingMutationResponse>usersIdBlockWithHttpInfo(UsersIdBlockRequest usersIdBlockRequest, String id)Block User by User ID Causes the user (in the path) to block the target user.UsersFollowingCreateResponseusersIdFollow(UsersIdFollowRequest usersIdFollowRequest, String id)Follow User Causes the user(in the path) to follow, or “request to follow” for protected users, the target user.UsersFollowingCreateResponseusersIdFollow(Integer retries, UsersIdFollowRequest usersIdFollowRequest, String id)Calls the API using a retry mechanism to handle rate limits errors.okhttp3.CallusersIdFollowAsync(UsersIdFollowRequest usersIdFollowRequest, String id, ApiCallback<UsersFollowingCreateResponse> _callback)Follow User (asynchronously) Causes the user(in the path) to follow, or “request to follow” for protected users, the target user.okhttp3.CallusersIdFollowCall(UsersIdFollowRequest usersIdFollowRequest, String id, ApiCallback _callback)Build call for usersIdFollowGenericMultipleUsersLookupResponseusersIdFollowers(Integer retries, String id, Integer maxResults, String paginationToken)Calls the API using a retry mechanism to handle rate limits errors.GenericMultipleUsersLookupResponseusersIdFollowers(String id, Integer maxResults, String paginationToken)Returns user objects that follow the provided user ID Returns a list of users that follow the provided user IDokhttp3.CallusersIdFollowersAsync(String id, Integer maxResults, String paginationToken, ApiCallback<GenericMultipleUsersLookupResponse> _callback)Returns user objects that follow the provided user ID (asynchronously) Returns a list of users that follow the provided user IDokhttp3.CallusersIdFollowersCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback)Build call for usersIdFollowersApiResponse<GenericMultipleUsersLookupResponse>usersIdFollowersWithHttpInfo(String id, Integer maxResults, String paginationToken)Returns user objects that follow the provided user ID Returns a list of users that follow the provided user IDUsersFollowingLookupResponseusersIdFollowing(Integer retries, String id, Integer maxResults, String paginationToken)Calls the API using a retry mechanism to handle rate limits errors.UsersFollowingLookupResponseusersIdFollowing(String id, Integer maxResults, String paginationToken)Following by User ID Returns a list of users that are being followed by the provided user IDokhttp3.CallusersIdFollowingAsync(String id, Integer maxResults, String paginationToken, ApiCallback<UsersFollowingLookupResponse> _callback)Following by User ID (asynchronously) Returns a list of users that are being followed by the provided user IDokhttp3.CallusersIdFollowingCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback)Build call for usersIdFollowingApiResponse<UsersFollowingLookupResponse>usersIdFollowingWithHttpInfo(String id, Integer maxResults, String paginationToken)Following by User ID Returns a list of users that are being followed by the provided user IDApiResponse<UsersFollowingCreateResponse>usersIdFollowWithHttpInfo(UsersIdFollowRequest usersIdFollowRequest, String id)Follow User Causes the user(in the path) to follow, or “request to follow” for protected users, the target user.UsersMutingMutationResponseusersIdMute(UsersIdMuteRequest usersIdMuteRequest, String id)Mute User by User ID Causes the user (in the path) to mute the target user.UsersMutingMutationResponseusersIdMute(Integer retries, UsersIdMuteRequest usersIdMuteRequest, String id)Calls the API using a retry mechanism to handle rate limits errors.okhttp3.CallusersIdMuteAsync(UsersIdMuteRequest usersIdMuteRequest, String id, ApiCallback<UsersMutingMutationResponse> _callback)Mute User by User ID (asynchronously) Causes the user (in the path) to mute the target user.okhttp3.CallusersIdMuteCall(UsersIdMuteRequest usersIdMuteRequest, String id, ApiCallback _callback)Build call for usersIdMuteApiResponse<UsersMutingMutationResponse>usersIdMuteWithHttpInfo(UsersIdMuteRequest usersIdMuteRequest, String id)Mute User by User ID Causes the user (in the path) to mute the target user.GenericMultipleUsersLookupResponseusersIdMuting(Integer retries, String id, Integer maxResults, String paginationToken)Calls the API using a retry mechanism to handle rate limits errors.GenericMultipleUsersLookupResponseusersIdMuting(String id, Integer maxResults, String paginationToken)Returns user objects that are muted by the provided user ID Returns a list of users that are muted by the provided user IDokhttp3.CallusersIdMutingAsync(String id, Integer maxResults, String paginationToken, ApiCallback<GenericMultipleUsersLookupResponse> _callback)Returns user objects that are muted by the provided user ID (asynchronously) Returns a list of users that are muted by the provided user IDokhttp3.CallusersIdMutingCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback)Build call for usersIdMutingApiResponse<GenericMultipleUsersLookupResponse>usersIdMutingWithHttpInfo(String id, Integer maxResults, String paginationToken)Returns user objects that are muted by the provided user ID Returns a list of users that are muted by the provided user IDUsersBlockingMutationResponseusersIdUnblock(Integer retries, String sourceUserId, String targetUserId)Calls the API using a retry mechanism to handle rate limits errors.UsersBlockingMutationResponseusersIdUnblock(String sourceUserId, String targetUserId)Unblock User by User ID Causes the source user to unblock the target user.okhttp3.CallusersIdUnblockAsync(String sourceUserId, String targetUserId, ApiCallback<UsersBlockingMutationResponse> _callback)Unblock User by User ID (asynchronously) Causes the source user to unblock the target user.okhttp3.CallusersIdUnblockCall(String sourceUserId, String targetUserId, ApiCallback _callback)Build call for usersIdUnblockApiResponse<UsersBlockingMutationResponse>usersIdUnblockWithHttpInfo(String sourceUserId, String targetUserId)Unblock User by User ID Causes the source user to unblock the target user.UsersFollowingDeleteResponseusersIdUnfollow(Integer retries, String sourceUserId, String targetUserId)Calls the API using a retry mechanism to handle rate limits errors.UsersFollowingDeleteResponseusersIdUnfollow(String sourceUserId, String targetUserId)Unfollow User Causes the source user to unfollow the target user.okhttp3.CallusersIdUnfollowAsync(String sourceUserId, String targetUserId, ApiCallback<UsersFollowingDeleteResponse> _callback)Unfollow User (asynchronously) Causes the source user to unfollow the target user.okhttp3.CallusersIdUnfollowCall(String sourceUserId, String targetUserId, ApiCallback _callback)Build call for usersIdUnfollowApiResponse<UsersFollowingDeleteResponse>usersIdUnfollowWithHttpInfo(String sourceUserId, String targetUserId)Unfollow User Causes the source user to unfollow the target user.UsersMutingMutationResponseusersIdUnmute(Integer retries, String sourceUserId, String targetUserId)Calls the API using a retry mechanism to handle rate limits errors.UsersMutingMutationResponseusersIdUnmute(String sourceUserId, String targetUserId)Unmute User by User ID Causes the source user to unmute the target user.okhttp3.CallusersIdUnmuteAsync(String sourceUserId, String targetUserId, ApiCallback<UsersMutingMutationResponse> _callback)Unmute User by User ID (asynchronously) Causes the source user to unmute the target user.okhttp3.CallusersIdUnmuteCall(String sourceUserId, String targetUserId, ApiCallback _callback)Build call for usersIdUnmuteApiResponse<UsersMutingMutationResponse>usersIdUnmuteWithHttpInfo(String sourceUserId, String targetUserId)Unmute User by User ID Causes the source user to unmute the target user.-
Methods inherited from class com.twitter.clientlib.api.ApiCommon
handleRateLimit, isOAUth2AutoRefreshToken, reduceAuthNames, refreshToken, setClient
-
-
-
-
Method Detail
-
findMyUserCall
public okhttp3.Call findMyUserCall(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback) throws ApiException
Build call for findMyUser- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findMyUser
public SingleUserLookupResponse findMyUser(Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
User lookup me This endpoint returns information about the requesting user.- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- SingleUserLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findMyUser
public SingleUserLookupResponse findMyUser(Integer retries, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
findMyUserWithHttpInfo
public ApiResponse<SingleUserLookupResponse> findMyUserWithHttpInfo(Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
User lookup me This endpoint returns information about the requesting user.- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- ApiResponse<SingleUserLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findMyUserAsync
public okhttp3.Call findMyUserAsync(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<SingleUserLookupResponse> _callback) throws ApiException
User lookup me (asynchronously) This endpoint returns information about the requesting user.- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUserByIdCall
public okhttp3.Call findUserByIdCall(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback) throws ApiException
Build call for findUserById- Parameters:
id- Required. A User ID. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUserById
public SingleUserLookupResponse findUserById(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
User lookup by ID This endpoint returns information about a user. Specify user by ID.- Parameters:
id- Required. A User ID. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- SingleUserLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUserById
public SingleUserLookupResponse findUserById(Integer retries, String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
findUserByIdWithHttpInfo
public ApiResponse<SingleUserLookupResponse> findUserByIdWithHttpInfo(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
User lookup by ID This endpoint returns information about a user. Specify user by ID.- Parameters:
id- Required. A User ID. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- ApiResponse<SingleUserLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUserByIdAsync
public okhttp3.Call findUserByIdAsync(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<SingleUserLookupResponse> _callback) throws ApiException
User lookup by ID (asynchronously) This endpoint returns information about a user. Specify user by ID.- Parameters:
id- Required. A User ID. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUserByUsernameCall
public okhttp3.Call findUserByUsernameCall(String username, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback) throws ApiException
Build call for findUserByUsername- Parameters:
username- Required. A username. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUserByUsername
public SingleUserLookupResponse findUserByUsername(String username, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
User lookup by username This endpoint returns information about a user. Specify user by username.- Parameters:
username- Required. A username. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- SingleUserLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUserByUsername
public SingleUserLookupResponse findUserByUsername(Integer retries, String username, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
findUserByUsernameWithHttpInfo
public ApiResponse<SingleUserLookupResponse> findUserByUsernameWithHttpInfo(String username, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
User lookup by username This endpoint returns information about a user. Specify user by username.- Parameters:
username- Required. A username. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- ApiResponse<SingleUserLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUserByUsernameAsync
public okhttp3.Call findUserByUsernameAsync(String username, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<SingleUserLookupResponse> _callback) throws ApiException
User lookup by username (asynchronously) This endpoint returns information about a user. Specify user by username.- Parameters:
username- Required. A username. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUsersByIdCall
public okhttp3.Call findUsersByIdCall(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback) throws ApiException
Build call for findUsersById- Parameters:
ids- Required. A list of User IDs, comma-separated. You can specify up to 100 IDs. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUsersById
public MultiUserLookupResponse findUsersById(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
User lookup by IDs This endpoint returns information about users. Specify users by their ID.- Parameters:
ids- Required. A list of User IDs, comma-separated. You can specify up to 100 IDs. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- MultiUserLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUsersById
public MultiUserLookupResponse findUsersById(Integer retries, List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
findUsersByIdWithHttpInfo
public ApiResponse<MultiUserLookupResponse> findUsersByIdWithHttpInfo(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
User lookup by IDs This endpoint returns information about users. Specify users by their ID.- Parameters:
ids- Required. A list of User IDs, comma-separated. You can specify up to 100 IDs. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- ApiResponse<MultiUserLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUsersByIdAsync
public okhttp3.Call findUsersByIdAsync(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<MultiUserLookupResponse> _callback) throws ApiException
User lookup by IDs (asynchronously) This endpoint returns information about users. Specify users by their ID.- Parameters:
ids- Required. A list of User IDs, comma-separated. You can specify up to 100 IDs. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUsersByUsernameCall
public okhttp3.Call findUsersByUsernameCall(List<String> usernames, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback) throws ApiException
Build call for findUsersByUsername- Parameters:
usernames- Required . A list of usernames, comma-separated. You can specify up to 100 usernames. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUsersByUsername
public MultiUserLookupResponse findUsersByUsername(List<String> usernames, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
User lookup by usernames This endpoint returns information about users. Specify users by their username.- Parameters:
usernames- Required . A list of usernames, comma-separated. You can specify up to 100 usernames. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- MultiUserLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUsersByUsername
public MultiUserLookupResponse findUsersByUsername(Integer retries, List<String> usernames, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
findUsersByUsernameWithHttpInfo
public ApiResponse<MultiUserLookupResponse> findUsersByUsernameWithHttpInfo(List<String> usernames, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
User lookup by usernames This endpoint returns information about users. Specify users by their username.- Parameters:
usernames- Required . A list of usernames, comma-separated. You can specify up to 100 usernames. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- ApiResponse<MultiUserLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findUsersByUsernameAsync
public okhttp3.Call findUsersByUsernameAsync(List<String> usernames, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<MultiUserLookupResponse> _callback) throws ApiException
User lookup by usernames (asynchronously) This endpoint returns information about users. Specify users by their username.- Parameters:
usernames- Required . A list of usernames, comma-separated. You can specify up to 100 usernames. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
listGetFollowersCall
public okhttp3.Call listGetFollowersCall(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback) throws ApiException
Build call for listGetFollowers- Parameters:
id- The ID of the List for which to return followers (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get a specified 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
listGetFollowers
public ListLookupMultipleUsersLookupResponse listGetFollowers(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
Returns user objects that follow a List by the provided List ID Returns a list of users that follow a List by the provided List ID- Parameters:
id- The ID of the List for which to return followers (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get a specified 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- ListLookupMultipleUsersLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
listGetFollowers
public ListLookupMultipleUsersLookupResponse listGetFollowers(Integer retries, String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
listGetFollowersWithHttpInfo
public ApiResponse<ListLookupMultipleUsersLookupResponse> listGetFollowersWithHttpInfo(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
Returns user objects that follow a List by the provided List ID Returns a list of users that follow a List by the provided List ID- Parameters:
id- The ID of the List for which to return followers (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get a specified 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- ApiResponse<ListLookupMultipleUsersLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
listGetFollowersAsync
public okhttp3.Call listGetFollowersAsync(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<ListLookupMultipleUsersLookupResponse> _callback) throws ApiException
Returns user objects that follow a List by the provided List ID (asynchronously) Returns a list of users that follow a List by the provided List ID- Parameters:
id- The ID of the List for which to return followers (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get a specified 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
listGetMembersCall
public okhttp3.Call listGetMembersCall(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback _callback) throws ApiException
Build call for listGetMembers- Parameters:
id- The ID of the List for which to return members (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get a specified 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
listGetMembers
public ListLookupMultipleUsersLookupResponse listGetMembers(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
Returns user objects that are members of a List by the provided List ID Returns a list of users that are members of a List by the provided List ID- Parameters:
id- The ID of the List for which to return members (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get a specified 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- ListLookupMultipleUsersLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
listGetMembers
public ListLookupMultipleUsersLookupResponse listGetMembers(Integer retries, String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
listGetMembersWithHttpInfo
public ApiResponse<ListLookupMultipleUsersLookupResponse> listGetMembersWithHttpInfo(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields) throws ApiException
Returns user objects that are members of a List by the provided List ID Returns a list of users that are members of a List by the provided List ID- Parameters:
id- The ID of the List for which to return members (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get a specified 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)- Returns:
- ApiResponse<ListLookupMultipleUsersLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
listGetMembersAsync
public okhttp3.Call listGetMembersAsync(String id, Integer maxResults, Long paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, ApiCallback<ListLookupMultipleUsersLookupResponse> _callback) throws ApiException
Returns user objects that are members of a List by the provided List ID (asynchronously) Returns a list of users that are members of a List by the provided List ID- Parameters:
id- The ID of the List for which to return members (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get a specified 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
tweetsIdLikingUsersCall
public okhttp3.Call tweetsIdLikingUsersCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback) throws ApiException
Build call for tweetsIdLikingUsers- Parameters:
id- The ID of the Tweet for which to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
tweetsIdLikingUsers
public GenericMultipleUsersLookupResponse tweetsIdLikingUsers(String id, Integer maxResults, String paginationToken) throws ApiException
Returns user objects that have liked the provided Tweet ID Returns a list of users that have liked the provided Tweet ID- Parameters:
id- The ID of the Tweet for which to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)- Returns:
- GenericMultipleUsersLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
tweetsIdLikingUsers
public GenericMultipleUsersLookupResponse tweetsIdLikingUsers(Integer retries, String id, Integer maxResults, String paginationToken) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
tweetsIdLikingUsersWithHttpInfo
public ApiResponse<GenericMultipleUsersLookupResponse> tweetsIdLikingUsersWithHttpInfo(String id, Integer maxResults, String paginationToken) throws ApiException
Returns user objects that have liked the provided Tweet ID Returns a list of users that have liked the provided Tweet ID- Parameters:
id- The ID of the Tweet for which to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)- Returns:
- ApiResponse<GenericMultipleUsersLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
tweetsIdLikingUsersAsync
public okhttp3.Call tweetsIdLikingUsersAsync(String id, Integer maxResults, String paginationToken, ApiCallback<GenericMultipleUsersLookupResponse> _callback) throws ApiException
Returns user objects that have liked the provided Tweet ID (asynchronously) Returns a list of users that have liked the provided Tweet ID- Parameters:
id- The ID of the Tweet for which to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
tweetsIdRetweetingUsersCall
public okhttp3.Call tweetsIdRetweetingUsersCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback) throws ApiException
Build call for tweetsIdRetweetingUsers- Parameters:
id- The ID of the Tweet for which to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
tweetsIdRetweetingUsers
public GenericMultipleUsersLookupResponse tweetsIdRetweetingUsers(String id, Integer maxResults, String paginationToken) throws ApiException
Returns user objects that have retweeted the provided Tweet ID Returns a list of users that have retweeted the provided Tweet ID- Parameters:
id- The ID of the Tweet for which to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)- Returns:
- GenericMultipleUsersLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
tweetsIdRetweetingUsers
public GenericMultipleUsersLookupResponse tweetsIdRetweetingUsers(Integer retries, String id, Integer maxResults, String paginationToken) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
tweetsIdRetweetingUsersWithHttpInfo
public ApiResponse<GenericMultipleUsersLookupResponse> tweetsIdRetweetingUsersWithHttpInfo(String id, Integer maxResults, String paginationToken) throws ApiException
Returns user objects that have retweeted the provided Tweet ID Returns a list of users that have retweeted the provided Tweet ID- Parameters:
id- The ID of the Tweet for which to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)- Returns:
- ApiResponse<GenericMultipleUsersLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
tweetsIdRetweetingUsersAsync
public okhttp3.Call tweetsIdRetweetingUsersAsync(String id, Integer maxResults, String paginationToken, ApiCallback<GenericMultipleUsersLookupResponse> _callback) throws ApiException
Returns user objects that have retweeted the provided Tweet ID (asynchronously) Returns a list of users that have retweeted the provided Tweet ID- Parameters:
id- The ID of the Tweet for which to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdBlockCall
public okhttp3.Call usersIdBlockCall(UsersIdBlockRequest usersIdBlockRequest, String id, ApiCallback _callback) throws ApiException
Build call for usersIdBlock- Parameters:
usersIdBlockRequest- (optional)id- The ID of the user that is requesting to block the target user (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdBlock
public UsersBlockingMutationResponse usersIdBlock(UsersIdBlockRequest usersIdBlockRequest, String id) throws ApiException
Block User by User ID Causes the user (in the path) to block the target user. The user (in the path) must match the user context authorizing the request- Parameters:
usersIdBlockRequest- (optional)id- The ID of the user that is requesting to block the target user (required)- Returns:
- UsersBlockingMutationResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdBlock
public UsersBlockingMutationResponse usersIdBlock(Integer retries, UsersIdBlockRequest usersIdBlockRequest, String id) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
usersIdBlockWithHttpInfo
public ApiResponse<UsersBlockingMutationResponse> usersIdBlockWithHttpInfo(UsersIdBlockRequest usersIdBlockRequest, String id) throws ApiException
Block User by User ID Causes the user (in the path) to block the target user. The user (in the path) must match the user context authorizing the request- Parameters:
usersIdBlockRequest- (optional)id- The ID of the user that is requesting to block the target user (required)- Returns:
- ApiResponse<UsersBlockingMutationResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdBlockAsync
public okhttp3.Call usersIdBlockAsync(UsersIdBlockRequest usersIdBlockRequest, String id, ApiCallback<UsersBlockingMutationResponse> _callback) throws ApiException
Block User by User ID (asynchronously) Causes the user (in the path) to block the target user. The user (in the path) must match the user context authorizing the request- Parameters:
usersIdBlockRequest- (optional)id- The ID of the user that is requesting to block the target user (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdBlockingCall
public okhttp3.Call usersIdBlockingCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback) throws ApiException
Build call for usersIdBlocking- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdBlocking
public GenericMultipleUsersLookupResponse usersIdBlocking(String id, Integer maxResults, String paginationToken) throws ApiException
Returns user objects that are blocked by provided user ID Returns a list of users that are blocked by the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)- Returns:
- GenericMultipleUsersLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdBlocking
public GenericMultipleUsersLookupResponse usersIdBlocking(Integer retries, String id, Integer maxResults, String paginationToken) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
usersIdBlockingWithHttpInfo
public ApiResponse<GenericMultipleUsersLookupResponse> usersIdBlockingWithHttpInfo(String id, Integer maxResults, String paginationToken) throws ApiException
Returns user objects that are blocked by provided user ID Returns a list of users that are blocked by the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)- Returns:
- ApiResponse<GenericMultipleUsersLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdBlockingAsync
public okhttp3.Call usersIdBlockingAsync(String id, Integer maxResults, String paginationToken, ApiCallback<GenericMultipleUsersLookupResponse> _callback) throws ApiException
Returns user objects that are blocked by provided user ID (asynchronously) Returns a list of users that are blocked by the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollowCall
public okhttp3.Call usersIdFollowCall(UsersIdFollowRequest usersIdFollowRequest, String id, ApiCallback _callback) throws ApiException
Build call for usersIdFollow- Parameters:
usersIdFollowRequest- (optional)id- The ID of the user that is requesting to follow the target user (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollow
public UsersFollowingCreateResponse usersIdFollow(UsersIdFollowRequest usersIdFollowRequest, String id) throws ApiException
Follow User Causes the user(in the path) to follow, or “request to follow” for protected users, the target user. The user(in the path) must match the user context authorizing the request- Parameters:
usersIdFollowRequest- (optional)id- The ID of the user that is requesting to follow the target user (required)- Returns:
- UsersFollowingCreateResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollow
public UsersFollowingCreateResponse usersIdFollow(Integer retries, UsersIdFollowRequest usersIdFollowRequest, String id) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
usersIdFollowWithHttpInfo
public ApiResponse<UsersFollowingCreateResponse> usersIdFollowWithHttpInfo(UsersIdFollowRequest usersIdFollowRequest, String id) throws ApiException
Follow User Causes the user(in the path) to follow, or “request to follow” for protected users, the target user. The user(in the path) must match the user context authorizing the request- Parameters:
usersIdFollowRequest- (optional)id- The ID of the user that is requesting to follow the target user (required)- Returns:
- ApiResponse<UsersFollowingCreateResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollowAsync
public okhttp3.Call usersIdFollowAsync(UsersIdFollowRequest usersIdFollowRequest, String id, ApiCallback<UsersFollowingCreateResponse> _callback) throws ApiException
Follow User (asynchronously) Causes the user(in the path) to follow, or “request to follow” for protected users, the target user. The user(in the path) must match the user context authorizing the request- Parameters:
usersIdFollowRequest- (optional)id- The ID of the user that is requesting to follow the target user (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollowersCall
public okhttp3.Call usersIdFollowersCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback) throws ApiException
Build call for usersIdFollowers- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollowers
public GenericMultipleUsersLookupResponse usersIdFollowers(String id, Integer maxResults, String paginationToken) throws ApiException
Returns user objects that follow the provided user ID Returns a list of users that follow the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)- Returns:
- GenericMultipleUsersLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollowers
public GenericMultipleUsersLookupResponse usersIdFollowers(Integer retries, String id, Integer maxResults, String paginationToken) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
usersIdFollowersWithHttpInfo
public ApiResponse<GenericMultipleUsersLookupResponse> usersIdFollowersWithHttpInfo(String id, Integer maxResults, String paginationToken) throws ApiException
Returns user objects that follow the provided user ID Returns a list of users that follow the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)- Returns:
- ApiResponse<GenericMultipleUsersLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollowersAsync
public okhttp3.Call usersIdFollowersAsync(String id, Integer maxResults, String paginationToken, ApiCallback<GenericMultipleUsersLookupResponse> _callback) throws ApiException
Returns user objects that follow the provided user ID (asynchronously) Returns a list of users that follow the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollowingCall
public okhttp3.Call usersIdFollowingCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback) throws ApiException
Build call for usersIdFollowing- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollowing
public UsersFollowingLookupResponse usersIdFollowing(String id, Integer maxResults, String paginationToken) throws ApiException
Following by User ID Returns a list of users that are being followed by the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)- Returns:
- UsersFollowingLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollowing
public UsersFollowingLookupResponse usersIdFollowing(Integer retries, String id, Integer maxResults, String paginationToken) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
usersIdFollowingWithHttpInfo
public ApiResponse<UsersFollowingLookupResponse> usersIdFollowingWithHttpInfo(String id, Integer maxResults, String paginationToken) throws ApiException
Following by User ID Returns a list of users that are being followed by the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)- Returns:
- ApiResponse<UsersFollowingLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdFollowingAsync
public okhttp3.Call usersIdFollowingAsync(String id, Integer maxResults, String paginationToken, ApiCallback<UsersFollowingLookupResponse> _callback) throws ApiException
Following by User ID (asynchronously) Returns a list of users that are being followed by the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional)paginationToken- This value is populated by passing the 'next_token' or 'previous_token' returned in a request to paginate through results. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMuteCall
public okhttp3.Call usersIdMuteCall(UsersIdMuteRequest usersIdMuteRequest, String id, ApiCallback _callback) throws ApiException
Build call for usersIdMute- Parameters:
usersIdMuteRequest- (optional)id- The ID of the user that is requesting to mute the target user (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMute
public UsersMutingMutationResponse usersIdMute(UsersIdMuteRequest usersIdMuteRequest, String id) throws ApiException
Mute User by User ID Causes the user (in the path) to mute the target user. The user (in the path) must match the user context authorizing the request- Parameters:
usersIdMuteRequest- (optional)id- The ID of the user that is requesting to mute the target user (required)- Returns:
- UsersMutingMutationResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMute
public UsersMutingMutationResponse usersIdMute(Integer retries, UsersIdMuteRequest usersIdMuteRequest, String id) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
usersIdMuteWithHttpInfo
public ApiResponse<UsersMutingMutationResponse> usersIdMuteWithHttpInfo(UsersIdMuteRequest usersIdMuteRequest, String id) throws ApiException
Mute User by User ID Causes the user (in the path) to mute the target user. The user (in the path) must match the user context authorizing the request- Parameters:
usersIdMuteRequest- (optional)id- The ID of the user that is requesting to mute the target user (required)- Returns:
- ApiResponse<UsersMutingMutationResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMuteAsync
public okhttp3.Call usersIdMuteAsync(UsersIdMuteRequest usersIdMuteRequest, String id, ApiCallback<UsersMutingMutationResponse> _callback) throws ApiException
Mute User by User ID (asynchronously) Causes the user (in the path) to mute the target user. The user (in the path) must match the user context authorizing the request- Parameters:
usersIdMuteRequest- (optional)id- The ID of the user that is requesting to mute the target user (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMutingCall
public okhttp3.Call usersIdMutingCall(String id, Integer maxResults, String paginationToken, ApiCallback _callback) throws ApiException
Build call for usersIdMuting- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMuting
public GenericMultipleUsersLookupResponse usersIdMuting(String id, Integer maxResults, String paginationToken) throws ApiException
Returns user objects that are muted by the provided user ID Returns a list of users that are muted by the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)- Returns:
- GenericMultipleUsersLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMuting
public GenericMultipleUsersLookupResponse usersIdMuting(Integer retries, String id, Integer maxResults, String paginationToken) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
usersIdMutingWithHttpInfo
public ApiResponse<GenericMultipleUsersLookupResponse> usersIdMutingWithHttpInfo(String id, Integer maxResults, String paginationToken) throws ApiException
Returns user objects that are muted by the provided user ID Returns a list of users that are muted by the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)- Returns:
- ApiResponse<GenericMultipleUsersLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMutingAsync
public okhttp3.Call usersIdMutingAsync(String id, Integer maxResults, String paginationToken, ApiCallback<GenericMultipleUsersLookupResponse> _callback) throws ApiException
Returns user objects that are muted by the provided user ID (asynchronously) Returns a list of users that are muted by the provided user ID- Parameters:
id- The ID of the user for whom to return results (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnblockCall
public okhttp3.Call usersIdUnblockCall(String sourceUserId, String targetUserId, ApiCallback _callback) throws ApiException
Build call for usersIdUnblock- Parameters:
sourceUserId- The ID of the user that is requesting to unblock the target user (required)targetUserId- The ID of the user that the source user is requesting to unblock (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnblock
public UsersBlockingMutationResponse usersIdUnblock(String sourceUserId, String targetUserId) throws ApiException
Unblock User by User ID Causes the source user to unblock the target user. The source user must match the user context authorizing the request- Parameters:
sourceUserId- The ID of the user that is requesting to unblock the target user (required)targetUserId- The ID of the user that the source user is requesting to unblock (required)- Returns:
- UsersBlockingMutationResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnblock
public UsersBlockingMutationResponse usersIdUnblock(Integer retries, String sourceUserId, String targetUserId) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
usersIdUnblockWithHttpInfo
public ApiResponse<UsersBlockingMutationResponse> usersIdUnblockWithHttpInfo(String sourceUserId, String targetUserId) throws ApiException
Unblock User by User ID Causes the source user to unblock the target user. The source user must match the user context authorizing the request- Parameters:
sourceUserId- The ID of the user that is requesting to unblock the target user (required)targetUserId- The ID of the user that the source user is requesting to unblock (required)- Returns:
- ApiResponse<UsersBlockingMutationResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnblockAsync
public okhttp3.Call usersIdUnblockAsync(String sourceUserId, String targetUserId, ApiCallback<UsersBlockingMutationResponse> _callback) throws ApiException
Unblock User by User ID (asynchronously) Causes the source user to unblock the target user. The source user must match the user context authorizing the request- Parameters:
sourceUserId- The ID of the user that is requesting to unblock the target user (required)targetUserId- The ID of the user that the source user is requesting to unblock (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnfollowCall
public okhttp3.Call usersIdUnfollowCall(String sourceUserId, String targetUserId, ApiCallback _callback) throws ApiException
Build call for usersIdUnfollow- Parameters:
sourceUserId- The ID of the user that is requesting to unfollow the target user (required)targetUserId- The ID of the user that the source user is requesting to unfollow (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnfollow
public UsersFollowingDeleteResponse usersIdUnfollow(String sourceUserId, String targetUserId) throws ApiException
Unfollow User Causes the source user to unfollow the target user. The source user must match the user context authorizing the request- Parameters:
sourceUserId- The ID of the user that is requesting to unfollow the target user (required)targetUserId- The ID of the user that the source user is requesting to unfollow (required)- Returns:
- UsersFollowingDeleteResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnfollow
public UsersFollowingDeleteResponse usersIdUnfollow(Integer retries, String sourceUserId, String targetUserId) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
usersIdUnfollowWithHttpInfo
public ApiResponse<UsersFollowingDeleteResponse> usersIdUnfollowWithHttpInfo(String sourceUserId, String targetUserId) throws ApiException
Unfollow User Causes the source user to unfollow the target user. The source user must match the user context authorizing the request- Parameters:
sourceUserId- The ID of the user that is requesting to unfollow the target user (required)targetUserId- The ID of the user that the source user is requesting to unfollow (required)- Returns:
- ApiResponse<UsersFollowingDeleteResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnfollowAsync
public okhttp3.Call usersIdUnfollowAsync(String sourceUserId, String targetUserId, ApiCallback<UsersFollowingDeleteResponse> _callback) throws ApiException
Unfollow User (asynchronously) Causes the source user to unfollow the target user. The source user must match the user context authorizing the request- Parameters:
sourceUserId- The ID of the user that is requesting to unfollow the target user (required)targetUserId- The ID of the user that the source user is requesting to unfollow (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnmuteCall
public okhttp3.Call usersIdUnmuteCall(String sourceUserId, String targetUserId, ApiCallback _callback) throws ApiException
Build call for usersIdUnmute- Parameters:
sourceUserId- The ID of the user that is requesting to unmute the target user (required)targetUserId- The ID of the user that the source user is requesting to unmute (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnmute
public UsersMutingMutationResponse usersIdUnmute(String sourceUserId, String targetUserId) throws ApiException
Unmute User by User ID Causes the source user to unmute the target user. The source user must match the user context authorizing the request- Parameters:
sourceUserId- The ID of the user that is requesting to unmute the target user (required)targetUserId- The ID of the user that the source user is requesting to unmute (required)- Returns:
- UsersMutingMutationResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnmute
public UsersMutingMutationResponse usersIdUnmute(Integer retries, String sourceUserId, String targetUserId) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
usersIdUnmuteWithHttpInfo
public ApiResponse<UsersMutingMutationResponse> usersIdUnmuteWithHttpInfo(String sourceUserId, String targetUserId) throws ApiException
Unmute User by User ID Causes the source user to unmute the target user. The source user must match the user context authorizing the request- Parameters:
sourceUserId- The ID of the user that is requesting to unmute the target user (required)targetUserId- The ID of the user that the source user is requesting to unmute (required)- Returns:
- ApiResponse<UsersMutingMutationResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnmuteAsync
public okhttp3.Call usersIdUnmuteAsync(String sourceUserId, String targetUserId, ApiCallback<UsersMutingMutationResponse> _callback) throws ApiException
Unmute User by User ID (asynchronously) Causes the source user to unmute the target user. The source user must match the user context authorizing the request- Parameters:
sourceUserId- The ID of the user that is requesting to unmute the target user (required)targetUserId- The ID of the user that the source user is requesting to unmute (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
-