Package com.twitter.clientlib.api
Class UsersApi.APIusersIdFollowersRequest
- java.lang.Object
-
- com.twitter.clientlib.api.UsersApi.APIusersIdFollowersRequest
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.CallbuildCall(ApiCallback _callback)Build call for usersIdFollowersGet2UsersIdFollowersResponseexecute()Execute usersIdFollowers requestGet2UsersIdFollowersResponseexecute(Integer retries)Calls the API using a retry mechanism to handle rate limits errors.okhttp3.CallexecuteAsync(ApiCallback<Get2UsersIdFollowersResponse> _callback)Execute usersIdFollowers request (asynchronously)ApiResponse<Get2UsersIdFollowersResponse>executeWithHttpInfo()Execute usersIdFollowers request with HTTP info returnedUsersApi.APIusersIdFollowersRequestexpansions(Set<String> expansions)Set expansionsUsersApi.APIusersIdFollowersRequestmaxResults(Integer maxResults)Set maxResultsUsersApi.APIusersIdFollowersRequestpaginationToken(String paginationToken)Set paginationTokenUsersApi.APIusersIdFollowersRequesttweetFields(Set<String> tweetFields)Set tweetFieldsUsersApi.APIusersIdFollowersRequestuserFields(Set<String> userFields)Set userFields
-
-
-
Method Detail
-
maxResults
public UsersApi.APIusersIdFollowersRequest maxResults(Integer maxResults)
Set maxResults- Parameters:
maxResults- The maximum number of results. (optional)- Returns:
- APIusersIdFollowersRequest
-
paginationToken
public UsersApi.APIusersIdFollowersRequest paginationToken(String paginationToken)
Set paginationToken- Parameters:
paginationToken- This parameter is used to get a specified 'page' of results. (optional)- Returns:
- APIusersIdFollowersRequest
-
userFields
public UsersApi.APIusersIdFollowersRequest userFields(Set<String> userFields)
Set userFields- Parameters:
userFields- A comma separated list of User fields to display. (optional)- Returns:
- APIusersIdFollowersRequest
-
expansions
public UsersApi.APIusersIdFollowersRequest expansions(Set<String> expansions)
Set expansions- Parameters:
expansions- A comma separated list of fields to expand. (optional)- Returns:
- APIusersIdFollowersRequest
-
tweetFields
public UsersApi.APIusersIdFollowersRequest tweetFields(Set<String> tweetFields)
Set tweetFields- Parameters:
tweetFields- A comma separated list of Tweet fields to display. (optional)- Returns:
- APIusersIdFollowersRequest
-
buildCall
public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
Build call for usersIdFollowers- Parameters:
_callback- ApiCallback API callback- 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 has succeeded. - 0 The request has failed. -
-
execute
public Get2UsersIdFollowersResponse execute() throws ApiException
Execute usersIdFollowers request- Returns:
- Get2UsersIdFollowersResponse
- 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 has succeeded. - 0 The request has failed. -
-
execute
public Get2UsersIdFollowersResponse execute(Integer retries) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
executeWithHttpInfo
public ApiResponse<Get2UsersIdFollowersResponse> executeWithHttpInfo() throws ApiException
Execute usersIdFollowers request with HTTP info returned- Returns:
- ApiResponse<Get2UsersIdFollowersResponse>
- 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 has succeeded. - 0 The request has failed. -
-
executeAsync
public okhttp3.Call executeAsync(ApiCallback<Get2UsersIdFollowersResponse> _callback) throws ApiException
Execute usersIdFollowers request (asynchronously)- Parameters:
_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 has succeeded. - 0 The request has failed. -
-
-