Package com.twitter.clientlib.api
Class TweetsApi.APIcreateTweetRequest
- java.lang.Object
-
- com.twitter.clientlib.api.TweetsApi.APIcreateTweetRequest
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.Call
buildCall(ApiCallback _callback)
Build call for createTweetTweetCreateResponse
execute()
Execute createTweet requestTweetCreateResponse
execute(Integer retries)
Calls the API using a retry mechanism to handle rate limits errors.okhttp3.Call
executeAsync(ApiCallback<TweetCreateResponse> _callback)
Execute createTweet request (asynchronously)ApiResponse<TweetCreateResponse>
executeWithHttpInfo()
Execute createTweet request with HTTP info returned
-
-
-
Method Detail
-
buildCall
public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
Build call for createTweet- 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 201 The request has succeeded. - 0 The request has failed. -
-
execute
public TweetCreateResponse execute() throws ApiException
Execute createTweet request- Returns:
- TweetCreateResponse
- 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 201 The request has succeeded. - 0 The request has failed. -
-
execute
public TweetCreateResponse execute(Integer retries) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
executeWithHttpInfo
public ApiResponse<TweetCreateResponse> executeWithHttpInfo() throws ApiException
Execute createTweet request with HTTP info returned- Returns:
- ApiResponse<TweetCreateResponse>
- 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 201 The request has succeeded. - 0 The request has failed. -
-
executeAsync
public okhttp3.Call executeAsync(ApiCallback<TweetCreateResponse> _callback) throws ApiException
Execute createTweet 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 201 The request has succeeded. - 0 The request has failed. -
-
-