Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.39 KB

UserApi.md

File metadata and controls

60 lines (42 loc) · 1.39 KB

UserApi

All URIs are relative to https://api.youneedabudget.com/v1

Method HTTP request Description
getUser GET /user User info

getUser

UserResponse getUser()

User info

Returns authenticated user information.

Example

// Import classes:
//import ynab.client.invoker.ApiClient;
//import ynab.client.invoker.ApiException;
//import ynab.client.invoker.Configuration;
//import ynab.client.invoker.auth.*;
//import ynab.client.api.UserApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearer
ApiKeyAuth bearer = (ApiKeyAuth) defaultClient.getAuthentication("bearer");
bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.setApiKeyPrefix("Token");

UserApi apiInstance = new UserApi();
try {
    UserResponse result = apiInstance.getUser();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#getUser");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

UserResponse

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json