Class UserApi

java.lang.Object
cm.xd.genapi.ynab.api.UserApi

public class UserApi extends Object
  • Constructor Details

    • UserApi

      public UserApi()
    • UserApi

      public UserApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • getUserCall

      public okhttp3.Call getUserCall(ApiCallback _callback) throws ApiException
      Build call for getUser
      Parameters:
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 The user info -
    • getUser

      public UserResponse getUser() throws ApiException
      Get user Returns authenticated user information
      Returns:
      UserResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 The user info -
    • getUserWithHttpInfo

      public ApiResponse<UserResponse> getUserWithHttpInfo() throws ApiException
      Get user Returns authenticated user information
      Returns:
      ApiResponse<UserResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 The user info -
    • getUserAsync

      public okhttp3.Call getUserAsync(ApiCallback<UserResponse> _callback) throws ApiException
      Get user (asynchronously) Returns authenticated user information
      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
      Response Details
      Status Code Description Response Headers
      200 The user info -