Package com.twitter.clientlib.api
Class GeneralApi.APIgetOpenApiSpecRequest
- java.lang.Object
-
- com.twitter.clientlib.api.GeneralApi.APIgetOpenApiSpecRequest
-
- Enclosing class:
- GeneralApi
public class GeneralApi.APIgetOpenApiSpecRequest extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.CallbuildCall(ApiCallback _callback)Build call for getOpenApiSpecObjectexecute()Execute getOpenApiSpec requestObjectexecute(Integer retries)Calls the API using a retry mechanism to handle rate limits errors.okhttp3.CallexecuteAsync(ApiCallback<Object> _callback)Execute getOpenApiSpec request (asynchronously)ApiResponse<Object>executeWithHttpInfo()Execute getOpenApiSpec request with HTTP info returned
-
-
-
Method Detail
-
buildCall
public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
Build call for getOpenApiSpec- 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 was successful -
-
execute
public Object execute() throws ApiException
Execute getOpenApiSpec request- Returns:
- Object
- 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 was successful -
-
execute
public Object execute(Integer retries) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
executeWithHttpInfo
public ApiResponse<Object> executeWithHttpInfo() throws ApiException
Execute getOpenApiSpec request with HTTP info returned- Returns:
- ApiResponse<Object>
- 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 was successful -
-
executeAsync
public okhttp3.Call executeAsync(ApiCallback<Object> _callback) throws ApiException
Execute getOpenApiSpec 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 was successful -
-
-