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