Package com.amilesend.tvdb.client.api
Class LoginApi
java.lang.Object
com.amilesend.tvdb.client.api.LoginApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate an auth token.okhttp3.Call
loginPostAsync
(LoginBody body, ApiCallback<InlineResponse200> callback) create an auth token.okhttp3.Call
loginPostCall
(LoginBody body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) Build call for loginPostcreate an auth token.void
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
LoginApi
public LoginApi() -
LoginApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
loginPostCall
public okhttp3.Call loginPostCall(LoginBody body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException Build call for loginPost- Parameters:
body
- (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
loginPost
create an auth token. The token has one month validation length.- Parameters:
body
- (required)- Returns:
- InlineResponse200
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
loginPostWithHttpInfo
create an auth token. The token has one month validation length.- Parameters:
body
- (required)- Returns:
- ApiResponse<InlineResponse200>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
loginPostAsync
public okhttp3.Call loginPostAsync(LoginBody body, ApiCallback<InlineResponse200> callback) throws ApiException create an auth token. The token has one month validation length. (asynchronously)- Parameters:
body
- (required)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
-