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