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