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