docs/AuthenticationApi.md in budgea_client-5.3.8 vs docs/AuthenticationApi.md in budgea_client-5.4.0

- old
+ new

@@ -8,10 +8,11 @@ [**auth_init_post**](AuthenticationApi.md#auth_init_post) | **POST** /auth/init | Create a new anonymous user [**auth_jwt_post**](AuthenticationApi.md#auth_jwt_post) | **POST** /auth/jwt | Generate a user jwt token [**auth_token_access_post**](AuthenticationApi.md#auth_token_access_post) | **POST** /auth/token/access | Transform a temporary code to a access_token [**auth_token_code_get**](AuthenticationApi.md#auth_token_code_get) | **GET** /auth/token/code | Generate a user temporary token [**auth_token_delete**](AuthenticationApi.md#auth_token_delete) | **DELETE** /auth/token | Remove user access +[**auth_token_post**](AuthenticationApi.md#auth_token_post) | **POST** /auth/token | Login to API with credentials [**certificate_type_get**](AuthenticationApi.md#certificate_type_get) | **GET** /certificate/{type} | Get the latest certificate of a type [**hash_delete**](AuthenticationApi.md#hash_delete) | **DELETE** /hash | Delete the user's connections [**users_id_user_delete**](AuthenticationApi.md#users_id_user_delete) | **DELETE** /users/{id_user} | Delete the user [**users_id_user_get**](AuthenticationApi.md#users_id_user_get) | **GET** /users/{id_user} | Get a user [**users_id_user_token_post**](AuthenticationApi.md#users_id_user_token_post) | **POST** /users/{id_user}/token | Create a token @@ -342,9 +343,70 @@ This endpoint does not need any parameter. ### Return type nil (empty response body) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + + + +# **auth_token_post** +> InlineResponse2005 auth_token_post(opts) + +Login to API with credentials + +Request a new token by giving the client_id and client_secret + +### Example +```ruby +# load the gem +require 'budgea_client' +# setup authorization +BudgeaClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['Authorization'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['Authorization'] = 'Bearer' +end + +api_instance = BudgeaClient::AuthenticationApi.new + +opts = { + client_id: 'client_id_example', # String | + client_secret: 'client_secret_example', # String | + grant_type: 'grant_type_example', # String | grant type + scope: 'scope_example' # String | scope requested for the token +} + +begin + #Login to API with credentials + result = api_instance.auth_token_post(opts) + p result +rescue BudgeaClient::ApiError => e + puts "Exception when calling AuthenticationApi->auth_token_post: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **client_id** | **String**| | [optional] + **client_secret** | **String**| | [optional] + **grant_type** | **String**| grant type | [optional] + **scope** | **String**| scope requested for the token | [optional] + +### Return type + +[**InlineResponse2005**](InlineResponse2005.md) ### Authorization [api_key](../README.md#api_key)