Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.42 KB

UserApi.md

File metadata and controls

59 lines (40 loc) · 1.42 KB

ynab.UserApi

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

Method HTTP request Description
get_user GET /user User info

get_user

UserResponse get_user()

User info

Returns authenticated user information.

Example

from __future__ import print_function
import time
import ynab
from ynab.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearer
configuration = ynab.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = ynab.UserApi(ynab.ApiClient(configuration))

try:
    # User info
    api_response = api_instance.get_user()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->get_user: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

UserResponse

Authorization

bearer

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]