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