Package com.twitter.clientlib.api
Class ListsApi.APIuserFollowedListsRequest
- java.lang.Object
-
- com.twitter.clientlib.api.ListsApi.APIuserFollowedListsRequest
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.CallbuildCall(ApiCallback _callback)Build call for userFollowedListsGet2UsersIdFollowedListsResponseexecute()Execute userFollowedLists requestGet2UsersIdFollowedListsResponseexecute(Integer retries)Calls the API using a retry mechanism to handle rate limits errors.okhttp3.CallexecuteAsync(ApiCallback<Get2UsersIdFollowedListsResponse> _callback)Execute userFollowedLists request (asynchronously)ApiResponse<Get2UsersIdFollowedListsResponse>executeWithHttpInfo()Execute userFollowedLists request with HTTP info returnedListsApi.APIuserFollowedListsRequestexpansions(Set<String> expansions)Set expansionsListsApi.APIuserFollowedListsRequestlistFields(Set<String> listFields)Set listFieldsListsApi.APIuserFollowedListsRequestmaxResults(Integer maxResults)Set maxResultsListsApi.APIuserFollowedListsRequestpaginationToken(String paginationToken)Set paginationTokenListsApi.APIuserFollowedListsRequestuserFields(Set<String> userFields)Set userFields
-
-
-
Method Detail
-
maxResults
public ListsApi.APIuserFollowedListsRequest maxResults(Integer maxResults)
Set maxResults- Parameters:
maxResults- The maximum number of results. (optional, default to 100)- Returns:
- APIuserFollowedListsRequest
-
paginationToken
public ListsApi.APIuserFollowedListsRequest paginationToken(String paginationToken)
Set paginationToken- Parameters:
paginationToken- This parameter is used to get a specified 'page' of results. (optional)- Returns:
- APIuserFollowedListsRequest
-
listFields
public ListsApi.APIuserFollowedListsRequest listFields(Set<String> listFields)
Set listFields- Parameters:
listFields- A comma separated list of List fields to display. (optional)- Returns:
- APIuserFollowedListsRequest
-
expansions
public ListsApi.APIuserFollowedListsRequest expansions(Set<String> expansions)
Set expansions- Parameters:
expansions- A comma separated list of fields to expand. (optional)- Returns:
- APIuserFollowedListsRequest
-
userFields
public ListsApi.APIuserFollowedListsRequest userFields(Set<String> userFields)
Set userFields- Parameters:
userFields- A comma separated list of User fields to display. (optional)- Returns:
- APIuserFollowedListsRequest
-
buildCall
public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
Build call for userFollowedLists- 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 Get2UsersIdFollowedListsResponse execute() throws ApiException
Execute userFollowedLists request- Returns:
- Get2UsersIdFollowedListsResponse
- 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 Get2UsersIdFollowedListsResponse execute(Integer retries) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
executeWithHttpInfo
public ApiResponse<Get2UsersIdFollowedListsResponse> executeWithHttpInfo() throws ApiException
Execute userFollowedLists request with HTTP info returned- Returns:
- ApiResponse<Get2UsersIdFollowedListsResponse>
- 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<Get2UsersIdFollowedListsResponse> _callback) throws ApiException
Execute userFollowedLists 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. -
-
-