Class LoginApi

java.lang.Object
com.amilesend.tvdb.client.api.LoginApi

public class LoginApi extends Object
  • Constructor Details

    • LoginApi

      public LoginApi()
    • LoginApi

      public LoginApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • loginPostCall

      public okhttp3.Call loginPostCall(LoginBody body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for loginPost
      Parameters:
      body - (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • loginPost

      public InlineResponse200 loginPost(LoginBody body) throws ApiException
      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

      public ApiResponse<InlineResponse200> loginPostWithHttpInfo(LoginBody body) throws ApiException
      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