budgea_client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +89 -0
- data/README.md +619 -0
- data/Rakefile +13 -0
- data/budgea_client.gemspec +35 -0
- data/docs/Access.md +12 -0
- data/docs/Account.md +25 -0
- data/docs/AccountLog.md +15 -0
- data/docs/AccountType.md +15 -0
- data/docs/AdministrationApi.md +944 -0
- data/docs/Alert.md +15 -0
- data/docs/AuthenticationApi.md +398 -0
- data/docs/Bank.md +18 -0
- data/docs/BankCategory.md +9 -0
- data/docs/BanksApi.md +6558 -0
- data/docs/Category.md +17 -0
- data/docs/Client.md +18 -0
- data/docs/Connection.md +16 -0
- data/docs/ConnectionContact.md +17 -0
- data/docs/ConnectionLog.md +21 -0
- data/docs/ConnectionsApi.md +934 -0
- data/docs/ConnectorLogo.md +11 -0
- data/docs/Currency.md +10 -0
- data/docs/Device.md +14 -0
- data/docs/Document.md +29 -0
- data/docs/DocumentType.md +10 -0
- data/docs/DocumentsApi.md +5228 -0
- data/docs/Field.md +15 -0
- data/docs/File.md +11 -0
- data/docs/Group.md +15 -0
- data/docs/HashTable.md +11 -0
- data/docs/InlineResponse200.md +8 -0
- data/docs/InlineResponse2001.md +9 -0
- data/docs/InlineResponse20010.md +8 -0
- data/docs/InlineResponse20011.md +8 -0
- data/docs/InlineResponse20012.md +8 -0
- data/docs/InlineResponse20013.md +8 -0
- data/docs/InlineResponse20014.md +8 -0
- data/docs/InlineResponse20015.md +8 -0
- data/docs/InlineResponse20016.md +8 -0
- data/docs/InlineResponse20017.md +8 -0
- data/docs/InlineResponse20018.md +8 -0
- data/docs/InlineResponse20019.md +8 -0
- data/docs/InlineResponse2002.md +10 -0
- data/docs/InlineResponse20020.md +8 -0
- data/docs/InlineResponse20021.md +8 -0
- data/docs/InlineResponse20022.md +8 -0
- data/docs/InlineResponse20023.md +8 -0
- data/docs/InlineResponse20024.md +8 -0
- data/docs/InlineResponse20025.md +8 -0
- data/docs/InlineResponse20026.md +8 -0
- data/docs/InlineResponse20027.md +8 -0
- data/docs/InlineResponse20028.md +8 -0
- data/docs/InlineResponse20029.md +8 -0
- data/docs/InlineResponse2003.md +10 -0
- data/docs/InlineResponse20030.md +8 -0
- data/docs/InlineResponse20031.md +8 -0
- data/docs/InlineResponse20032.md +8 -0
- data/docs/InlineResponse20033.md +8 -0
- data/docs/InlineResponse2004.md +12 -0
- data/docs/InlineResponse2005.md +9 -0
- data/docs/InlineResponse2006.md +10 -0
- data/docs/InlineResponse2007.md +8 -0
- data/docs/InlineResponse2008.md +8 -0
- data/docs/InlineResponse2009.md +8 -0
- data/docs/Investment.md +32 -0
- data/docs/InvestmentValue.md +13 -0
- data/docs/Invite.md +13 -0
- data/docs/LockedUser.md +10 -0
- data/docs/OCRApi.md +117 -0
- data/docs/OIDCApi.md +167 -0
- data/docs/OidcWhitelist.md +9 -0
- data/docs/PFMApi.md +2204 -0
- data/docs/Pocket.md +17 -0
- data/docs/Profile.md +15 -0
- data/docs/Project.md +16 -0
- data/docs/ProjectType.md +10 -0
- data/docs/ProvidersApi.md +7014 -0
- data/docs/Recipient.md +22 -0
- data/docs/RecipientsApi.md +244 -0
- data/docs/Security.md +12 -0
- data/docs/Subscription.md +18 -0
- data/docs/TermsApi.md +218 -0
- data/docs/TermsOfService.md +12 -0
- data/docs/Transaction.md +33 -0
- data/docs/TransactionInformation.md +11 -0
- data/docs/TransactionsCluster.md +16 -0
- data/docs/Transfer.md +23 -0
- data/docs/TransfersApi.md +2404 -0
- data/docs/User.md +10 -0
- data/docs/UserAlert.md +21 -0
- data/docs/UsersManagementApi.md +608 -0
- data/docs/WealthApi.md +828 -0
- data/docs/Webhook.md +15 -0
- data/git_push.sh +55 -0
- data/lib/budgea_client.rb +118 -0
- data/lib/budgea_client/api/administration_api.rb +1059 -0
- data/lib/budgea_client/api/authentication_api.rb +467 -0
- data/lib/budgea_client/api/banks_api.rb +7837 -0
- data/lib/budgea_client/api/connections_api.rb +1088 -0
- data/lib/budgea_client/api/documents_api.rb +6637 -0
- data/lib/budgea_client/api/ocr_api.rb +141 -0
- data/lib/budgea_client/api/oidc_api.rb +195 -0
- data/lib/budgea_client/api/pfm_api.rb +2630 -0
- data/lib/budgea_client/api/providers_api.rb +8694 -0
- data/lib/budgea_client/api/recipients_api.rb +293 -0
- data/lib/budgea_client/api/terms_api.rb +245 -0
- data/lib/budgea_client/api/transfers_api.rb +2941 -0
- data/lib/budgea_client/api/users_management_api.rb +695 -0
- data/lib/budgea_client/api/wealth_api.rb +994 -0
- data/lib/budgea_client/api_client.rb +378 -0
- data/lib/budgea_client/api_error.rb +28 -0
- data/lib/budgea_client/configuration.rb +192 -0
- data/lib/budgea_client/models/access.rb +224 -0
- data/lib/budgea_client/models/account.rb +383 -0
- data/lib/budgea_client/models/account_log.rb +266 -0
- data/lib/budgea_client/models/account_type.rb +281 -0
- data/lib/budgea_client/models/alert.rb +273 -0
- data/lib/budgea_client/models/bank.rb +308 -0
- data/lib/budgea_client/models/bank_category.rb +201 -0
- data/lib/budgea_client/models/category.rb +299 -0
- data/lib/budgea_client/models/client.rb +305 -0
- data/lib/budgea_client/models/connection.rb +276 -0
- data/lib/budgea_client/models/connection_contact.rb +274 -0
- data/lib/budgea_client/models/connection_log.rb +324 -0
- data/lib/budgea_client/models/connector_logo.rb +223 -0
- data/lib/budgea_client/models/currency.rb +216 -0
- data/lib/budgea_client/models/device.rb +269 -0
- data/lib/budgea_client/models/document.rb +398 -0
- data/lib/budgea_client/models/document_type.rb +213 -0
- data/lib/budgea_client/models/field.rb +273 -0
- data/lib/budgea_client/models/file.rb +225 -0
- data/lib/budgea_client/models/group.rb +246 -0
- data/lib/budgea_client/models/hash_table.rb +227 -0
- data/lib/budgea_client/models/inline_response_200.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_1.rb +199 -0
- data/lib/budgea_client/models/inline_response_200_10.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_11.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_12.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_13.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_14.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_15.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_16.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_17.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_18.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_19.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_2.rb +209 -0
- data/lib/budgea_client/models/inline_response_200_20.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_21.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_22.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_23.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_24.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_25.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_26.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_27.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_28.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_29.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_3.rb +214 -0
- data/lib/budgea_client/models/inline_response_200_30.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_31.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_32.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_33.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_4.rb +239 -0
- data/lib/budgea_client/models/inline_response_200_5.rb +199 -0
- data/lib/budgea_client/models/inline_response_200_6.rb +214 -0
- data/lib/budgea_client/models/inline_response_200_7.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_8.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_9.rb +185 -0
- data/lib/budgea_client/models/investment.rb +449 -0
- data/lib/budgea_client/models/investment_value.rb +249 -0
- data/lib/budgea_client/models/invite.rb +233 -0
- data/lib/budgea_client/models/locked_user.rb +206 -0
- data/lib/budgea_client/models/oidc_whitelist.rb +198 -0
- data/lib/budgea_client/models/pocket.rb +298 -0
- data/lib/budgea_client/models/profile.rb +308 -0
- data/lib/budgea_client/models/project.rb +301 -0
- data/lib/budgea_client/models/project_type.rb +206 -0
- data/lib/budgea_client/models/recipient.rb +343 -0
- data/lib/budgea_client/models/security.rb +229 -0
- data/lib/budgea_client/models/subscription.rb +299 -0
- data/lib/budgea_client/models/terms_of_service.rb +229 -0
- data/lib/budgea_client/models/transaction.rb +507 -0
- data/lib/budgea_client/models/transaction_information.rb +224 -0
- data/lib/budgea_client/models/transactions_cluster.rb +277 -0
- data/lib/budgea_client/models/transfer.rb +354 -0
- data/lib/budgea_client/models/user.rb +244 -0
- data/lib/budgea_client/models/user_alert.rb +333 -0
- data/lib/budgea_client/models/webhook.rb +264 -0
- data/lib/budgea_client/version.rb +5 -0
- data/pkg/budgea_client-1.0.0.gem +0 -0
- data/spec/api/administration_api_spec.rb +271 -0
- data/spec/api/authentication_api_spec.rb +126 -0
- data/spec/api/banks_api_spec.rb +1787 -0
- data/spec/api/connections_api_spec.rb +279 -0
- data/spec/api/documents_api_spec.rb +1557 -0
- data/spec/api/ocr_api_spec.rb +54 -0
- data/spec/api/oidc_api_spec.rb +65 -0
- data/spec/api/pfm_api_spec.rb +613 -0
- data/spec/api/providers_api_spec.rb +2029 -0
- data/spec/api/recipients_api_spec.rb +89 -0
- data/spec/api/terms_api_spec.rb +79 -0
- data/spec/api/transfers_api_spec.rb +661 -0
- data/spec/api/users_management_api_spec.rb +177 -0
- data/spec/api/wealth_api_spec.rb +246 -0
- data/spec/api_client_spec.rb +216 -0
- data/spec/configuration_spec.rb +32 -0
- data/spec/models/access_spec.rb +56 -0
- data/spec/models/account_log_spec.rb +74 -0
- data/spec/models/account_spec.rb +134 -0
- data/spec/models/account_type_spec.rb +74 -0
- data/spec/models/alert_spec.rb +74 -0
- data/spec/models/bank_category_spec.rb +38 -0
- data/spec/models/bank_spec.rb +92 -0
- data/spec/models/category_spec.rb +86 -0
- data/spec/models/client_spec.rb +92 -0
- data/spec/models/connection_contact_spec.rb +86 -0
- data/spec/models/connection_log_spec.rb +110 -0
- data/spec/models/connection_spec.rb +80 -0
- data/spec/models/connector_logo_spec.rb +50 -0
- data/spec/models/currency_spec.rb +44 -0
- data/spec/models/device_spec.rb +68 -0
- data/spec/models/document_spec.rb +158 -0
- data/spec/models/document_type_spec.rb +44 -0
- data/spec/models/field_spec.rb +74 -0
- data/spec/models/file_spec.rb +50 -0
- data/spec/models/group_spec.rb +74 -0
- data/spec/models/hash_table_spec.rb +50 -0
- data/spec/models/inline_response_200_10_spec.rb +32 -0
- data/spec/models/inline_response_200_11_spec.rb +32 -0
- data/spec/models/inline_response_200_12_spec.rb +32 -0
- data/spec/models/inline_response_200_13_spec.rb +32 -0
- data/spec/models/inline_response_200_14_spec.rb +32 -0
- data/spec/models/inline_response_200_15_spec.rb +32 -0
- data/spec/models/inline_response_200_16_spec.rb +32 -0
- data/spec/models/inline_response_200_17_spec.rb +32 -0
- data/spec/models/inline_response_200_18_spec.rb +32 -0
- data/spec/models/inline_response_200_19_spec.rb +32 -0
- data/spec/models/inline_response_200_1_spec.rb +38 -0
- data/spec/models/inline_response_200_20_spec.rb +32 -0
- data/spec/models/inline_response_200_21_spec.rb +32 -0
- data/spec/models/inline_response_200_22_spec.rb +32 -0
- data/spec/models/inline_response_200_23_spec.rb +32 -0
- data/spec/models/inline_response_200_24_spec.rb +32 -0
- data/spec/models/inline_response_200_25_spec.rb +32 -0
- data/spec/models/inline_response_200_26_spec.rb +32 -0
- data/spec/models/inline_response_200_27_spec.rb +32 -0
- data/spec/models/inline_response_200_28_spec.rb +32 -0
- data/spec/models/inline_response_200_29_spec.rb +32 -0
- data/spec/models/inline_response_200_2_spec.rb +44 -0
- data/spec/models/inline_response_200_30_spec.rb +32 -0
- data/spec/models/inline_response_200_31_spec.rb +32 -0
- data/spec/models/inline_response_200_32_spec.rb +32 -0
- data/spec/models/inline_response_200_33_spec.rb +32 -0
- data/spec/models/inline_response_200_3_spec.rb +44 -0
- data/spec/models/inline_response_200_4_spec.rb +56 -0
- data/spec/models/inline_response_200_5_spec.rb +38 -0
- data/spec/models/inline_response_200_6_spec.rb +44 -0
- data/spec/models/inline_response_200_7_spec.rb +32 -0
- data/spec/models/inline_response_200_8_spec.rb +32 -0
- data/spec/models/inline_response_200_9_spec.rb +32 -0
- data/spec/models/inline_response_200_spec.rb +32 -0
- data/spec/models/investment_spec.rb +176 -0
- data/spec/models/investment_value_spec.rb +62 -0
- data/spec/models/invite_spec.rb +62 -0
- data/spec/models/locked_user_spec.rb +44 -0
- data/spec/models/oidc_whitelist_spec.rb +38 -0
- data/spec/models/pocket_spec.rb +86 -0
- data/spec/models/profile_spec.rb +78 -0
- data/spec/models/project_spec.rb +80 -0
- data/spec/models/project_type_spec.rb +44 -0
- data/spec/models/recipient_spec.rb +116 -0
- data/spec/models/security_spec.rb +56 -0
- data/spec/models/subscription_spec.rb +92 -0
- data/spec/models/terms_of_service_spec.rb +56 -0
- data/spec/models/transaction_information_spec.rb +50 -0
- data/spec/models/transaction_spec.rb +182 -0
- data/spec/models/transactions_cluster_spec.rb +80 -0
- data/spec/models/transfer_spec.rb +122 -0
- data/spec/models/user_alert_spec.rb +110 -0
- data/spec/models/user_spec.rb +48 -0
- data/spec/models/webhook_spec.rb +74 -0
- data/spec/spec_helper.rb +51 -0
- metadata +599 -0
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "uri"
|
|
4
|
+
|
|
5
|
+
module BudgeaClient
|
|
6
|
+
class AuthenticationApi
|
|
7
|
+
attr_accessor :api_client
|
|
8
|
+
|
|
9
|
+
def initialize(api_client = ApiClient.default)
|
|
10
|
+
@api_client = api_client
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# Create a new anonymous user
|
|
14
|
+
# This endpoint creates a new temporary token related to a new anonymous user.<br><br>It will expire 30 minutes after.<br><br>Note: if you supply client_id and client_secret, or if you call this endpoint with the manage_token, the token will be permanent.<br><br>
|
|
15
|
+
# @param [Hash] opts the optional parameters
|
|
16
|
+
# @option opts [String] :client_id ID of the client
|
|
17
|
+
# @option opts [String] :client_secret secret of the client
|
|
18
|
+
# @return [InlineResponse2002]
|
|
19
|
+
def auth_init_post(opts = {})
|
|
20
|
+
data, _status_code, _headers = auth_init_post_with_http_info(opts)
|
|
21
|
+
return data
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Create a new anonymous user
|
|
25
|
+
# This endpoint creates a new temporary token related to a new anonymous user.<br><br>It will expire 30 minutes after.<br><br>Note: if you supply client_id and client_secret, or if you call this endpoint with the manage_token, the token will be permanent.<br><br>
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @option opts [String] :client_id ID of the client
|
|
28
|
+
# @option opts [String] :client_secret secret of the client
|
|
29
|
+
# @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
|
|
30
|
+
def auth_init_post_with_http_info(opts = {})
|
|
31
|
+
if @api_client.config.debugging
|
|
32
|
+
@api_client.config.logger.debug "Calling API: AuthenticationApi.auth_init_post ..."
|
|
33
|
+
end
|
|
34
|
+
# resource path
|
|
35
|
+
local_var_path = "/auth/init"
|
|
36
|
+
|
|
37
|
+
# query parameters
|
|
38
|
+
query_params = {}
|
|
39
|
+
|
|
40
|
+
# header parameters
|
|
41
|
+
header_params = {}
|
|
42
|
+
# HTTP header 'Accept' (if needed)
|
|
43
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
44
|
+
# HTTP header 'Content-Type'
|
|
45
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
46
|
+
|
|
47
|
+
# form parameters
|
|
48
|
+
form_params = {}
|
|
49
|
+
form_params["client_id"] = opts[:'client_id'] if !opts[:'client_id'].nil?
|
|
50
|
+
form_params["client_secret"] = opts[:'client_secret'] if !opts[:'client_secret'].nil?
|
|
51
|
+
|
|
52
|
+
# http body (model)
|
|
53
|
+
post_body = nil
|
|
54
|
+
auth_names = []
|
|
55
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
56
|
+
:header_params => header_params,
|
|
57
|
+
:query_params => query_params,
|
|
58
|
+
:form_params => form_params,
|
|
59
|
+
:body => post_body,
|
|
60
|
+
:auth_names => auth_names,
|
|
61
|
+
:return_type => 'InlineResponse2002')
|
|
62
|
+
if @api_client.config.debugging
|
|
63
|
+
@api_client.config.logger.debug "API called: AuthenticationApi#auth_init_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
64
|
+
end
|
|
65
|
+
return data, status_code, headers
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Transform a temporary code to a access_token
|
|
69
|
+
# In order to register a new user with the OAuth 2 process, the client has to call this endpoint to request a granted access_token with the received temporary code.<br><br>
|
|
70
|
+
# @param client_id ID of the client
|
|
71
|
+
# @param client_secret secret of the client
|
|
72
|
+
# @param code user's temporary code
|
|
73
|
+
# @param [Hash] opts the optional parameters
|
|
74
|
+
# @option opts [String] :grant_type default is \"authorization_code\"
|
|
75
|
+
# @option opts [String] :redirect_uri redirect uri used by user
|
|
76
|
+
# @return [InlineResponse2005]
|
|
77
|
+
def auth_token_access_post(client_id, client_secret, code, opts = {})
|
|
78
|
+
data, _status_code, _headers = auth_token_access_post_with_http_info(client_id, client_secret, code, opts)
|
|
79
|
+
return data
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Transform a temporary code to a access_token
|
|
83
|
+
# In order to register a new user with the OAuth 2 process, the client has to call this endpoint to request a granted access_token with the received temporary code.<br><br>
|
|
84
|
+
# @param client_id ID of the client
|
|
85
|
+
# @param client_secret secret of the client
|
|
86
|
+
# @param code user's temporary code
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @option opts [String] :grant_type default is \"authorization_code\"
|
|
89
|
+
# @option opts [String] :redirect_uri redirect uri used by user
|
|
90
|
+
# @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
|
|
91
|
+
def auth_token_access_post_with_http_info(client_id, client_secret, code, opts = {})
|
|
92
|
+
if @api_client.config.debugging
|
|
93
|
+
@api_client.config.logger.debug "Calling API: AuthenticationApi.auth_token_access_post ..."
|
|
94
|
+
end
|
|
95
|
+
# verify the required parameter 'client_id' is set
|
|
96
|
+
if @api_client.config.client_side_validation && client_id.nil?
|
|
97
|
+
fail ArgumentError, "Missing the required parameter 'client_id' when calling AuthenticationApi.auth_token_access_post"
|
|
98
|
+
end
|
|
99
|
+
# verify the required parameter 'client_secret' is set
|
|
100
|
+
if @api_client.config.client_side_validation && client_secret.nil?
|
|
101
|
+
fail ArgumentError, "Missing the required parameter 'client_secret' when calling AuthenticationApi.auth_token_access_post"
|
|
102
|
+
end
|
|
103
|
+
# verify the required parameter 'code' is set
|
|
104
|
+
if @api_client.config.client_side_validation && code.nil?
|
|
105
|
+
fail ArgumentError, "Missing the required parameter 'code' when calling AuthenticationApi.auth_token_access_post"
|
|
106
|
+
end
|
|
107
|
+
# resource path
|
|
108
|
+
local_var_path = "/auth/token/access"
|
|
109
|
+
|
|
110
|
+
# query parameters
|
|
111
|
+
query_params = {}
|
|
112
|
+
|
|
113
|
+
# header parameters
|
|
114
|
+
header_params = {}
|
|
115
|
+
# HTTP header 'Accept' (if needed)
|
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
117
|
+
# HTTP header 'Content-Type'
|
|
118
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
119
|
+
|
|
120
|
+
# form parameters
|
|
121
|
+
form_params = {}
|
|
122
|
+
form_params["client_id"] = client_id
|
|
123
|
+
form_params["client_secret"] = client_secret
|
|
124
|
+
form_params["code"] = code
|
|
125
|
+
form_params["grant_type"] = opts[:'grant_type'] if !opts[:'grant_type'].nil?
|
|
126
|
+
form_params["redirect_uri"] = opts[:'redirect_uri'] if !opts[:'redirect_uri'].nil?
|
|
127
|
+
|
|
128
|
+
# http body (model)
|
|
129
|
+
post_body = nil
|
|
130
|
+
auth_names = []
|
|
131
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
132
|
+
:header_params => header_params,
|
|
133
|
+
:query_params => query_params,
|
|
134
|
+
:form_params => form_params,
|
|
135
|
+
:body => post_body,
|
|
136
|
+
:auth_names => auth_names,
|
|
137
|
+
:return_type => 'InlineResponse2005')
|
|
138
|
+
if @api_client.config.debugging
|
|
139
|
+
@api_client.config.logger.debug "API called: AuthenticationApi#auth_token_access_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
140
|
+
end
|
|
141
|
+
return data, status_code, headers
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Generate a user temporary token
|
|
145
|
+
# This endpoint generates a new temporary token for the user.<br><br>In case the access_token is used by a trusted device, and you want to let another one (for example a web browser) access to user resources, use this service to create a token which will expire in 30 minutes.<br><br>
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @return [InlineResponse2006]
|
|
148
|
+
def auth_token_code_get(opts = {})
|
|
149
|
+
data, _status_code, _headers = auth_token_code_get_with_http_info(opts)
|
|
150
|
+
return data
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Generate a user temporary token
|
|
154
|
+
# This endpoint generates a new temporary token for the user.<br><br>In case the access_token is used by a trusted device, and you want to let another one (for example a web browser) access to user resources, use this service to create a token which will expire in 30 minutes.<br><br>
|
|
155
|
+
# @param [Hash] opts the optional parameters
|
|
156
|
+
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
|
157
|
+
def auth_token_code_get_with_http_info(opts = {})
|
|
158
|
+
if @api_client.config.debugging
|
|
159
|
+
@api_client.config.logger.debug "Calling API: AuthenticationApi.auth_token_code_get ..."
|
|
160
|
+
end
|
|
161
|
+
# resource path
|
|
162
|
+
local_var_path = "/auth/token/code"
|
|
163
|
+
|
|
164
|
+
# query parameters
|
|
165
|
+
query_params = {}
|
|
166
|
+
|
|
167
|
+
# header parameters
|
|
168
|
+
header_params = {}
|
|
169
|
+
# HTTP header 'Accept' (if needed)
|
|
170
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
171
|
+
# HTTP header 'Content-Type'
|
|
172
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
173
|
+
|
|
174
|
+
# form parameters
|
|
175
|
+
form_params = {}
|
|
176
|
+
|
|
177
|
+
# http body (model)
|
|
178
|
+
post_body = nil
|
|
179
|
+
auth_names = []
|
|
180
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
181
|
+
:header_params => header_params,
|
|
182
|
+
:query_params => query_params,
|
|
183
|
+
:form_params => form_params,
|
|
184
|
+
:body => post_body,
|
|
185
|
+
:auth_names => auth_names,
|
|
186
|
+
:return_type => 'InlineResponse2006')
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: AuthenticationApi#auth_token_code_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Remove user access
|
|
194
|
+
# This endpoint removes the token in use.<br><br>
|
|
195
|
+
# @param [Hash] opts the optional parameters
|
|
196
|
+
# @return [nil]
|
|
197
|
+
def auth_token_delete(opts = {})
|
|
198
|
+
auth_token_delete_with_http_info(opts)
|
|
199
|
+
return nil
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Remove user access
|
|
203
|
+
# This endpoint removes the token in use.<br><br>
|
|
204
|
+
# @param [Hash] opts the optional parameters
|
|
205
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
206
|
+
def auth_token_delete_with_http_info(opts = {})
|
|
207
|
+
if @api_client.config.debugging
|
|
208
|
+
@api_client.config.logger.debug "Calling API: AuthenticationApi.auth_token_delete ..."
|
|
209
|
+
end
|
|
210
|
+
# resource path
|
|
211
|
+
local_var_path = "/auth/token"
|
|
212
|
+
|
|
213
|
+
# query parameters
|
|
214
|
+
query_params = {}
|
|
215
|
+
|
|
216
|
+
# header parameters
|
|
217
|
+
header_params = {}
|
|
218
|
+
# HTTP header 'Accept' (if needed)
|
|
219
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
220
|
+
# HTTP header 'Content-Type'
|
|
221
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
222
|
+
|
|
223
|
+
# form parameters
|
|
224
|
+
form_params = {}
|
|
225
|
+
|
|
226
|
+
# http body (model)
|
|
227
|
+
post_body = nil
|
|
228
|
+
auth_names = []
|
|
229
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
230
|
+
:header_params => header_params,
|
|
231
|
+
:query_params => query_params,
|
|
232
|
+
:form_params => form_params,
|
|
233
|
+
:body => post_body,
|
|
234
|
+
:auth_names => auth_names)
|
|
235
|
+
if @api_client.config.debugging
|
|
236
|
+
@api_client.config.logger.debug "API called: AuthenticationApi#auth_token_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
237
|
+
end
|
|
238
|
+
return data, status_code, headers
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Delete the user's connections
|
|
242
|
+
# deletes all connections of the user given his hash<br><br>
|
|
243
|
+
# @param [Hash] opts the optional parameters
|
|
244
|
+
# @return [nil]
|
|
245
|
+
def hash_delete(opts = {})
|
|
246
|
+
hash_delete_with_http_info(opts)
|
|
247
|
+
return nil
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Delete the user's connections
|
|
251
|
+
# deletes all connections of the user given his hash<br><br>
|
|
252
|
+
# @param [Hash] opts the optional parameters
|
|
253
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
254
|
+
def hash_delete_with_http_info(opts = {})
|
|
255
|
+
if @api_client.config.debugging
|
|
256
|
+
@api_client.config.logger.debug "Calling API: AuthenticationApi.hash_delete ..."
|
|
257
|
+
end
|
|
258
|
+
# resource path
|
|
259
|
+
local_var_path = "/hash"
|
|
260
|
+
|
|
261
|
+
# query parameters
|
|
262
|
+
query_params = {}
|
|
263
|
+
|
|
264
|
+
# header parameters
|
|
265
|
+
header_params = {}
|
|
266
|
+
# HTTP header 'Accept' (if needed)
|
|
267
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
268
|
+
# HTTP header 'Content-Type'
|
|
269
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
270
|
+
|
|
271
|
+
# form parameters
|
|
272
|
+
form_params = {}
|
|
273
|
+
|
|
274
|
+
# http body (model)
|
|
275
|
+
post_body = nil
|
|
276
|
+
auth_names = []
|
|
277
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
278
|
+
:header_params => header_params,
|
|
279
|
+
:query_params => query_params,
|
|
280
|
+
:form_params => form_params,
|
|
281
|
+
:body => post_body,
|
|
282
|
+
:auth_names => auth_names)
|
|
283
|
+
if @api_client.config.debugging
|
|
284
|
+
@api_client.config.logger.debug "API called: AuthenticationApi#hash_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
285
|
+
end
|
|
286
|
+
return data, status_code, headers
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# Delete the user
|
|
290
|
+
# This endpoint deletes the user.<br><br>
|
|
291
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
292
|
+
# @param [Hash] opts the optional parameters
|
|
293
|
+
# @option opts [String] :expand
|
|
294
|
+
# @return [User]
|
|
295
|
+
def users_id_user_delete(id_user, opts = {})
|
|
296
|
+
data, _status_code, _headers = users_id_user_delete_with_http_info(id_user, opts)
|
|
297
|
+
return data
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Delete the user
|
|
301
|
+
# This endpoint deletes the user.<br><br>
|
|
302
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
303
|
+
# @param [Hash] opts the optional parameters
|
|
304
|
+
# @option opts [String] :expand
|
|
305
|
+
# @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
|
|
306
|
+
def users_id_user_delete_with_http_info(id_user, opts = {})
|
|
307
|
+
if @api_client.config.debugging
|
|
308
|
+
@api_client.config.logger.debug "Calling API: AuthenticationApi.users_id_user_delete ..."
|
|
309
|
+
end
|
|
310
|
+
# verify the required parameter 'id_user' is set
|
|
311
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
312
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling AuthenticationApi.users_id_user_delete"
|
|
313
|
+
end
|
|
314
|
+
# resource path
|
|
315
|
+
local_var_path = "/users/{id_user}".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
316
|
+
|
|
317
|
+
# query parameters
|
|
318
|
+
query_params = {}
|
|
319
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
320
|
+
|
|
321
|
+
# header parameters
|
|
322
|
+
header_params = {}
|
|
323
|
+
# HTTP header 'Accept' (if needed)
|
|
324
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
325
|
+
# HTTP header 'Content-Type'
|
|
326
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
327
|
+
|
|
328
|
+
# form parameters
|
|
329
|
+
form_params = {}
|
|
330
|
+
|
|
331
|
+
# http body (model)
|
|
332
|
+
post_body = nil
|
|
333
|
+
auth_names = []
|
|
334
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
335
|
+
:header_params => header_params,
|
|
336
|
+
:query_params => query_params,
|
|
337
|
+
:form_params => form_params,
|
|
338
|
+
:body => post_body,
|
|
339
|
+
:auth_names => auth_names,
|
|
340
|
+
:return_type => 'User')
|
|
341
|
+
if @api_client.config.debugging
|
|
342
|
+
@api_client.config.logger.debug "API called: AuthenticationApi#users_id_user_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
343
|
+
end
|
|
344
|
+
return data, status_code, headers
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# Get a user
|
|
348
|
+
#
|
|
349
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
350
|
+
# @param [Hash] opts the optional parameters
|
|
351
|
+
# @option opts [String] :expand
|
|
352
|
+
# @return [User]
|
|
353
|
+
def users_id_user_get(id_user, opts = {})
|
|
354
|
+
data, _status_code, _headers = users_id_user_get_with_http_info(id_user, opts)
|
|
355
|
+
return data
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Get a user
|
|
359
|
+
#
|
|
360
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
361
|
+
# @param [Hash] opts the optional parameters
|
|
362
|
+
# @option opts [String] :expand
|
|
363
|
+
# @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
|
|
364
|
+
def users_id_user_get_with_http_info(id_user, opts = {})
|
|
365
|
+
if @api_client.config.debugging
|
|
366
|
+
@api_client.config.logger.debug "Calling API: AuthenticationApi.users_id_user_get ..."
|
|
367
|
+
end
|
|
368
|
+
# verify the required parameter 'id_user' is set
|
|
369
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
370
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling AuthenticationApi.users_id_user_get"
|
|
371
|
+
end
|
|
372
|
+
# resource path
|
|
373
|
+
local_var_path = "/users/{id_user}".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
374
|
+
|
|
375
|
+
# query parameters
|
|
376
|
+
query_params = {}
|
|
377
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
378
|
+
|
|
379
|
+
# header parameters
|
|
380
|
+
header_params = {}
|
|
381
|
+
# HTTP header 'Accept' (if needed)
|
|
382
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
383
|
+
# HTTP header 'Content-Type'
|
|
384
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
385
|
+
|
|
386
|
+
# form parameters
|
|
387
|
+
form_params = {}
|
|
388
|
+
|
|
389
|
+
# http body (model)
|
|
390
|
+
post_body = nil
|
|
391
|
+
auth_names = []
|
|
392
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
393
|
+
:header_params => header_params,
|
|
394
|
+
:query_params => query_params,
|
|
395
|
+
:form_params => form_params,
|
|
396
|
+
:body => post_body,
|
|
397
|
+
:auth_names => auth_names,
|
|
398
|
+
:return_type => 'User')
|
|
399
|
+
if @api_client.config.debugging
|
|
400
|
+
@api_client.config.logger.debug "API called: AuthenticationApi#users_id_user_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
401
|
+
end
|
|
402
|
+
return data, status_code, headers
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Create a token
|
|
406
|
+
# Create an access_token for this user and get it.<br><br>
|
|
407
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
408
|
+
# @param application application name
|
|
409
|
+
# @param [Hash] opts the optional parameters
|
|
410
|
+
# @return [Object]
|
|
411
|
+
def users_id_user_token_post(id_user, application, opts = {})
|
|
412
|
+
data, _status_code, _headers = users_id_user_token_post_with_http_info(id_user, application, opts)
|
|
413
|
+
return data
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# Create a token
|
|
417
|
+
# Create an access_token for this user and get it.<br><br>
|
|
418
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
419
|
+
# @param application application name
|
|
420
|
+
# @param [Hash] opts the optional parameters
|
|
421
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
|
422
|
+
def users_id_user_token_post_with_http_info(id_user, application, opts = {})
|
|
423
|
+
if @api_client.config.debugging
|
|
424
|
+
@api_client.config.logger.debug "Calling API: AuthenticationApi.users_id_user_token_post ..."
|
|
425
|
+
end
|
|
426
|
+
# verify the required parameter 'id_user' is set
|
|
427
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
428
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling AuthenticationApi.users_id_user_token_post"
|
|
429
|
+
end
|
|
430
|
+
# verify the required parameter 'application' is set
|
|
431
|
+
if @api_client.config.client_side_validation && application.nil?
|
|
432
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling AuthenticationApi.users_id_user_token_post"
|
|
433
|
+
end
|
|
434
|
+
# resource path
|
|
435
|
+
local_var_path = "/users/{id_user}/token".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
436
|
+
|
|
437
|
+
# query parameters
|
|
438
|
+
query_params = {}
|
|
439
|
+
|
|
440
|
+
# header parameters
|
|
441
|
+
header_params = {}
|
|
442
|
+
# HTTP header 'Accept' (if needed)
|
|
443
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
444
|
+
# HTTP header 'Content-Type'
|
|
445
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
446
|
+
|
|
447
|
+
# form parameters
|
|
448
|
+
form_params = {}
|
|
449
|
+
form_params["application"] = application
|
|
450
|
+
|
|
451
|
+
# http body (model)
|
|
452
|
+
post_body = nil
|
|
453
|
+
auth_names = []
|
|
454
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
455
|
+
:header_params => header_params,
|
|
456
|
+
:query_params => query_params,
|
|
457
|
+
:form_params => form_params,
|
|
458
|
+
:body => post_body,
|
|
459
|
+
:auth_names => auth_names,
|
|
460
|
+
:return_type => 'Object')
|
|
461
|
+
if @api_client.config.debugging
|
|
462
|
+
@api_client.config.logger.debug "API called: AuthenticationApi#users_id_user_token_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
463
|
+
end
|
|
464
|
+
return data, status_code, headers
|
|
465
|
+
end
|
|
466
|
+
end
|
|
467
|
+
end
|