budgea_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,695 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "uri"
|
4
|
+
|
5
|
+
module BudgeaClient
|
6
|
+
class UsersManagementApi
|
7
|
+
attr_accessor :api_client
|
8
|
+
|
9
|
+
def initialize(api_client = ApiClient.default)
|
10
|
+
@api_client = api_client
|
11
|
+
end
|
12
|
+
|
13
|
+
# Delete the user's connections
|
14
|
+
# deletes all connections of the user given his hash<br><br>
|
15
|
+
# @param [Hash] opts the optional parameters
|
16
|
+
# @return [nil]
|
17
|
+
def hash_delete(opts = {})
|
18
|
+
hash_delete_with_http_info(opts)
|
19
|
+
return nil
|
20
|
+
end
|
21
|
+
|
22
|
+
# Delete the user's connections
|
23
|
+
# deletes all connections of the user given his hash<br><br>
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
26
|
+
def hash_delete_with_http_info(opts = {})
|
27
|
+
if @api_client.config.debugging
|
28
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.hash_delete ..."
|
29
|
+
end
|
30
|
+
# resource path
|
31
|
+
local_var_path = "/hash"
|
32
|
+
|
33
|
+
# query parameters
|
34
|
+
query_params = {}
|
35
|
+
|
36
|
+
# header parameters
|
37
|
+
header_params = {}
|
38
|
+
# HTTP header 'Accept' (if needed)
|
39
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
40
|
+
# HTTP header 'Content-Type'
|
41
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
42
|
+
|
43
|
+
# form parameters
|
44
|
+
form_params = {}
|
45
|
+
|
46
|
+
# http body (model)
|
47
|
+
post_body = nil
|
48
|
+
auth_names = []
|
49
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
50
|
+
:header_params => header_params,
|
51
|
+
:query_params => query_params,
|
52
|
+
:form_params => form_params,
|
53
|
+
:body => post_body,
|
54
|
+
:auth_names => auth_names)
|
55
|
+
if @api_client.config.debugging
|
56
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#hash_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
57
|
+
end
|
58
|
+
return data, status_code, headers
|
59
|
+
end
|
60
|
+
|
61
|
+
# Get users
|
62
|
+
#
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @option opts [String] :search searches a user by mail (if it contains no '@', '@biapi.pro' will be added at the end)
|
65
|
+
# @option opts [String] :expand
|
66
|
+
# @return [InlineResponse20017]
|
67
|
+
def users_get(opts = {})
|
68
|
+
data, _status_code, _headers = users_get_with_http_info(opts)
|
69
|
+
return data
|
70
|
+
end
|
71
|
+
|
72
|
+
# Get users
|
73
|
+
#
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [String] :search searches a user by mail (if it contains no '@', '@biapi.pro' will be added at the end)
|
76
|
+
# @option opts [String] :expand
|
77
|
+
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
78
|
+
def users_get_with_http_info(opts = {})
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.users_get ..."
|
81
|
+
end
|
82
|
+
# resource path
|
83
|
+
local_var_path = "/users"
|
84
|
+
|
85
|
+
# query parameters
|
86
|
+
query_params = {}
|
87
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
88
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
89
|
+
|
90
|
+
# header parameters
|
91
|
+
header_params = {}
|
92
|
+
# HTTP header 'Accept' (if needed)
|
93
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
94
|
+
# HTTP header 'Content-Type'
|
95
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
96
|
+
|
97
|
+
# form parameters
|
98
|
+
form_params = {}
|
99
|
+
|
100
|
+
# http body (model)
|
101
|
+
post_body = nil
|
102
|
+
auth_names = []
|
103
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
104
|
+
:header_params => header_params,
|
105
|
+
:query_params => query_params,
|
106
|
+
:form_params => form_params,
|
107
|
+
:body => post_body,
|
108
|
+
:auth_names => auth_names,
|
109
|
+
:return_type => 'InlineResponse20017')
|
110
|
+
if @api_client.config.debugging
|
111
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#users_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
112
|
+
end
|
113
|
+
return data, status_code, headers
|
114
|
+
end
|
115
|
+
|
116
|
+
# Delete the given user configurations. deletions on keys prefixed by 'biapi.' (except callback_url) are ignored
|
117
|
+
# - keys (string): list of coma separated keys to be deleted.<br><br>
|
118
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
119
|
+
# @param [Hash] opts the optional parameters
|
120
|
+
# @return [nil]
|
121
|
+
def users_id_user_config_delete(id_user, opts = {})
|
122
|
+
users_id_user_config_delete_with_http_info(id_user, opts)
|
123
|
+
return nil
|
124
|
+
end
|
125
|
+
|
126
|
+
# Delete the given user configurations. deletions on keys prefixed by 'biapi.' (except callback_url) are ignored
|
127
|
+
# - keys (string): list of coma separated keys to be deleted.<br><br>
|
128
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
129
|
+
# @param [Hash] opts the optional parameters
|
130
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
131
|
+
def users_id_user_config_delete_with_http_info(id_user, opts = {})
|
132
|
+
if @api_client.config.debugging
|
133
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.users_id_user_config_delete ..."
|
134
|
+
end
|
135
|
+
# verify the required parameter 'id_user' is set
|
136
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
137
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling UsersManagementApi.users_id_user_config_delete"
|
138
|
+
end
|
139
|
+
# resource path
|
140
|
+
local_var_path = "/users/{id_user}/config".sub('{' + 'id_user' + '}', id_user.to_s)
|
141
|
+
|
142
|
+
# query parameters
|
143
|
+
query_params = {}
|
144
|
+
|
145
|
+
# header parameters
|
146
|
+
header_params = {}
|
147
|
+
# HTTP header 'Accept' (if needed)
|
148
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
149
|
+
# HTTP header 'Content-Type'
|
150
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
151
|
+
|
152
|
+
# form parameters
|
153
|
+
form_params = {}
|
154
|
+
|
155
|
+
# http body (model)
|
156
|
+
post_body = nil
|
157
|
+
auth_names = []
|
158
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
159
|
+
:header_params => header_params,
|
160
|
+
:query_params => query_params,
|
161
|
+
:form_params => form_params,
|
162
|
+
:body => post_body,
|
163
|
+
:auth_names => auth_names)
|
164
|
+
if @api_client.config.debugging
|
165
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#users_id_user_config_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
166
|
+
end
|
167
|
+
return data, status_code, headers
|
168
|
+
end
|
169
|
+
|
170
|
+
# Get configuration of a user.
|
171
|
+
# <br><br>
|
172
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
173
|
+
# @param [Hash] opts the optional parameters
|
174
|
+
# @return [Object]
|
175
|
+
def users_id_user_config_get(id_user, opts = {})
|
176
|
+
data, _status_code, _headers = users_id_user_config_get_with_http_info(id_user, opts)
|
177
|
+
return data
|
178
|
+
end
|
179
|
+
|
180
|
+
# Get configuration of a user.
|
181
|
+
# <br><br>
|
182
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
183
|
+
# @param [Hash] opts the optional parameters
|
184
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
185
|
+
def users_id_user_config_get_with_http_info(id_user, opts = {})
|
186
|
+
if @api_client.config.debugging
|
187
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.users_id_user_config_get ..."
|
188
|
+
end
|
189
|
+
# verify the required parameter 'id_user' is set
|
190
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
191
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling UsersManagementApi.users_id_user_config_get"
|
192
|
+
end
|
193
|
+
# resource path
|
194
|
+
local_var_path = "/users/{id_user}/config".sub('{' + 'id_user' + '}', id_user.to_s)
|
195
|
+
|
196
|
+
# query parameters
|
197
|
+
query_params = {}
|
198
|
+
|
199
|
+
# header parameters
|
200
|
+
header_params = {}
|
201
|
+
# HTTP header 'Accept' (if needed)
|
202
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
203
|
+
# HTTP header 'Content-Type'
|
204
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
205
|
+
|
206
|
+
# form parameters
|
207
|
+
form_params = {}
|
208
|
+
|
209
|
+
# http body (model)
|
210
|
+
post_body = nil
|
211
|
+
auth_names = []
|
212
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
213
|
+
:header_params => header_params,
|
214
|
+
:query_params => query_params,
|
215
|
+
:form_params => form_params,
|
216
|
+
:body => post_body,
|
217
|
+
:auth_names => auth_names,
|
218
|
+
:return_type => 'Object')
|
219
|
+
if @api_client.config.debugging
|
220
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#users_id_user_config_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
221
|
+
end
|
222
|
+
return data, status_code, headers
|
223
|
+
end
|
224
|
+
|
225
|
+
# Change configuration of a user. modifications on keys prefixed by 'biapi.' (except callback_url) are ignored
|
226
|
+
#
|
227
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
228
|
+
# @param [Hash] opts the optional parameters
|
229
|
+
# @return [nil]
|
230
|
+
def users_id_user_config_post(id_user, opts = {})
|
231
|
+
users_id_user_config_post_with_http_info(id_user, opts)
|
232
|
+
return nil
|
233
|
+
end
|
234
|
+
|
235
|
+
# Change configuration of a user. modifications on keys prefixed by 'biapi.' (except callback_url) are ignored
|
236
|
+
#
|
237
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
238
|
+
# @param [Hash] opts the optional parameters
|
239
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
240
|
+
def users_id_user_config_post_with_http_info(id_user, opts = {})
|
241
|
+
if @api_client.config.debugging
|
242
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.users_id_user_config_post ..."
|
243
|
+
end
|
244
|
+
# verify the required parameter 'id_user' is set
|
245
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
246
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling UsersManagementApi.users_id_user_config_post"
|
247
|
+
end
|
248
|
+
# resource path
|
249
|
+
local_var_path = "/users/{id_user}/config".sub('{' + 'id_user' + '}', id_user.to_s)
|
250
|
+
|
251
|
+
# query parameters
|
252
|
+
query_params = {}
|
253
|
+
|
254
|
+
# header parameters
|
255
|
+
header_params = {}
|
256
|
+
# HTTP header 'Accept' (if needed)
|
257
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
258
|
+
# HTTP header 'Content-Type'
|
259
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
260
|
+
|
261
|
+
# form parameters
|
262
|
+
form_params = {}
|
263
|
+
|
264
|
+
# http body (model)
|
265
|
+
post_body = nil
|
266
|
+
auth_names = []
|
267
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
268
|
+
:header_params => header_params,
|
269
|
+
:query_params => query_params,
|
270
|
+
:form_params => form_params,
|
271
|
+
:body => post_body,
|
272
|
+
:auth_names => auth_names)
|
273
|
+
if @api_client.config.debugging
|
274
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#users_id_user_config_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
275
|
+
end
|
276
|
+
return data, status_code, headers
|
277
|
+
end
|
278
|
+
|
279
|
+
# Delete the user
|
280
|
+
# This endpoint deletes the user.<br><br>
|
281
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
282
|
+
# @param [Hash] opts the optional parameters
|
283
|
+
# @option opts [String] :expand
|
284
|
+
# @return [User]
|
285
|
+
def users_id_user_delete(id_user, opts = {})
|
286
|
+
data, _status_code, _headers = users_id_user_delete_with_http_info(id_user, opts)
|
287
|
+
return data
|
288
|
+
end
|
289
|
+
|
290
|
+
# Delete the user
|
291
|
+
# This endpoint deletes the user.<br><br>
|
292
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
293
|
+
# @param [Hash] opts the optional parameters
|
294
|
+
# @option opts [String] :expand
|
295
|
+
# @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
|
296
|
+
def users_id_user_delete_with_http_info(id_user, opts = {})
|
297
|
+
if @api_client.config.debugging
|
298
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.users_id_user_delete ..."
|
299
|
+
end
|
300
|
+
# verify the required parameter 'id_user' is set
|
301
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
302
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling UsersManagementApi.users_id_user_delete"
|
303
|
+
end
|
304
|
+
# resource path
|
305
|
+
local_var_path = "/users/{id_user}".sub('{' + 'id_user' + '}', id_user.to_s)
|
306
|
+
|
307
|
+
# query parameters
|
308
|
+
query_params = {}
|
309
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
310
|
+
|
311
|
+
# header parameters
|
312
|
+
header_params = {}
|
313
|
+
# HTTP header 'Accept' (if needed)
|
314
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
315
|
+
# HTTP header 'Content-Type'
|
316
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
317
|
+
|
318
|
+
# form parameters
|
319
|
+
form_params = {}
|
320
|
+
|
321
|
+
# http body (model)
|
322
|
+
post_body = nil
|
323
|
+
auth_names = []
|
324
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
325
|
+
:header_params => header_params,
|
326
|
+
:query_params => query_params,
|
327
|
+
:form_params => form_params,
|
328
|
+
:body => post_body,
|
329
|
+
:auth_names => auth_names,
|
330
|
+
:return_type => 'User')
|
331
|
+
if @api_client.config.debugging
|
332
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#users_id_user_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
333
|
+
end
|
334
|
+
return data, status_code, headers
|
335
|
+
end
|
336
|
+
|
337
|
+
# Get a user
|
338
|
+
#
|
339
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
340
|
+
# @param [Hash] opts the optional parameters
|
341
|
+
# @option opts [String] :expand
|
342
|
+
# @return [User]
|
343
|
+
def users_id_user_get(id_user, opts = {})
|
344
|
+
data, _status_code, _headers = users_id_user_get_with_http_info(id_user, opts)
|
345
|
+
return data
|
346
|
+
end
|
347
|
+
|
348
|
+
# Get a user
|
349
|
+
#
|
350
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
351
|
+
# @param [Hash] opts the optional parameters
|
352
|
+
# @option opts [String] :expand
|
353
|
+
# @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
|
354
|
+
def users_id_user_get_with_http_info(id_user, opts = {})
|
355
|
+
if @api_client.config.debugging
|
356
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.users_id_user_get ..."
|
357
|
+
end
|
358
|
+
# verify the required parameter 'id_user' is set
|
359
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
360
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling UsersManagementApi.users_id_user_get"
|
361
|
+
end
|
362
|
+
# resource path
|
363
|
+
local_var_path = "/users/{id_user}".sub('{' + 'id_user' + '}', id_user.to_s)
|
364
|
+
|
365
|
+
# query parameters
|
366
|
+
query_params = {}
|
367
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
368
|
+
|
369
|
+
# header parameters
|
370
|
+
header_params = {}
|
371
|
+
# HTTP header 'Accept' (if needed)
|
372
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
373
|
+
# HTTP header 'Content-Type'
|
374
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
375
|
+
|
376
|
+
# form parameters
|
377
|
+
form_params = {}
|
378
|
+
|
379
|
+
# http body (model)
|
380
|
+
post_body = nil
|
381
|
+
auth_names = []
|
382
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
383
|
+
:header_params => header_params,
|
384
|
+
:query_params => query_params,
|
385
|
+
:form_params => form_params,
|
386
|
+
:body => post_body,
|
387
|
+
:auth_names => auth_names,
|
388
|
+
:return_type => 'User')
|
389
|
+
if @api_client.config.debugging
|
390
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#users_id_user_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
391
|
+
end
|
392
|
+
return data, status_code, headers
|
393
|
+
end
|
394
|
+
|
395
|
+
# Get profiles
|
396
|
+
#
|
397
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
398
|
+
# @param [Hash] opts the optional parameters
|
399
|
+
# @option opts [String] :expand
|
400
|
+
# @return [InlineResponse20032]
|
401
|
+
def users_id_user_profiles_get(id_user, opts = {})
|
402
|
+
data, _status_code, _headers = users_id_user_profiles_get_with_http_info(id_user, opts)
|
403
|
+
return data
|
404
|
+
end
|
405
|
+
|
406
|
+
# Get profiles
|
407
|
+
#
|
408
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
409
|
+
# @param [Hash] opts the optional parameters
|
410
|
+
# @option opts [String] :expand
|
411
|
+
# @return [Array<(InlineResponse20032, Fixnum, Hash)>] InlineResponse20032 data, response status code and response headers
|
412
|
+
def users_id_user_profiles_get_with_http_info(id_user, opts = {})
|
413
|
+
if @api_client.config.debugging
|
414
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.users_id_user_profiles_get ..."
|
415
|
+
end
|
416
|
+
# verify the required parameter 'id_user' is set
|
417
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
418
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling UsersManagementApi.users_id_user_profiles_get"
|
419
|
+
end
|
420
|
+
# resource path
|
421
|
+
local_var_path = "/users/{id_user}/profiles".sub('{' + 'id_user' + '}', id_user.to_s)
|
422
|
+
|
423
|
+
# query parameters
|
424
|
+
query_params = {}
|
425
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
426
|
+
|
427
|
+
# header parameters
|
428
|
+
header_params = {}
|
429
|
+
# HTTP header 'Accept' (if needed)
|
430
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
431
|
+
# HTTP header 'Content-Type'
|
432
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
433
|
+
|
434
|
+
# form parameters
|
435
|
+
form_params = {}
|
436
|
+
|
437
|
+
# http body (model)
|
438
|
+
post_body = nil
|
439
|
+
auth_names = []
|
440
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
441
|
+
:header_params => header_params,
|
442
|
+
:query_params => query_params,
|
443
|
+
:form_params => form_params,
|
444
|
+
:body => post_body,
|
445
|
+
:auth_names => auth_names,
|
446
|
+
:return_type => 'InlineResponse20032')
|
447
|
+
if @api_client.config.debugging
|
448
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#users_id_user_profiles_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
449
|
+
end
|
450
|
+
return data, status_code, headers
|
451
|
+
end
|
452
|
+
|
453
|
+
# Get a profile
|
454
|
+
#
|
455
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
456
|
+
# @param id_profile
|
457
|
+
# @param [Hash] opts the optional parameters
|
458
|
+
# @option opts [String] :expand
|
459
|
+
# @return [Profile]
|
460
|
+
def users_id_user_profiles_id_profile_get(id_user, id_profile, opts = {})
|
461
|
+
data, _status_code, _headers = users_id_user_profiles_id_profile_get_with_http_info(id_user, id_profile, opts)
|
462
|
+
return data
|
463
|
+
end
|
464
|
+
|
465
|
+
# Get a profile
|
466
|
+
#
|
467
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
468
|
+
# @param id_profile
|
469
|
+
# @param [Hash] opts the optional parameters
|
470
|
+
# @option opts [String] :expand
|
471
|
+
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
472
|
+
def users_id_user_profiles_id_profile_get_with_http_info(id_user, id_profile, opts = {})
|
473
|
+
if @api_client.config.debugging
|
474
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.users_id_user_profiles_id_profile_get ..."
|
475
|
+
end
|
476
|
+
# verify the required parameter 'id_user' is set
|
477
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
478
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling UsersManagementApi.users_id_user_profiles_id_profile_get"
|
479
|
+
end
|
480
|
+
# verify the required parameter 'id_profile' is set
|
481
|
+
if @api_client.config.client_side_validation && id_profile.nil?
|
482
|
+
fail ArgumentError, "Missing the required parameter 'id_profile' when calling UsersManagementApi.users_id_user_profiles_id_profile_get"
|
483
|
+
end
|
484
|
+
# resource path
|
485
|
+
local_var_path = "/users/{id_user}/profiles/{id_profile}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_profile' + '}', id_profile.to_s)
|
486
|
+
|
487
|
+
# query parameters
|
488
|
+
query_params = {}
|
489
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
490
|
+
|
491
|
+
# header parameters
|
492
|
+
header_params = {}
|
493
|
+
# HTTP header 'Accept' (if needed)
|
494
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
495
|
+
# HTTP header 'Content-Type'
|
496
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
497
|
+
|
498
|
+
# form parameters
|
499
|
+
form_params = {}
|
500
|
+
|
501
|
+
# http body (model)
|
502
|
+
post_body = nil
|
503
|
+
auth_names = []
|
504
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
505
|
+
:header_params => header_params,
|
506
|
+
:query_params => query_params,
|
507
|
+
:form_params => form_params,
|
508
|
+
:body => post_body,
|
509
|
+
:auth_names => auth_names,
|
510
|
+
:return_type => 'Profile')
|
511
|
+
if @api_client.config.debugging
|
512
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#users_id_user_profiles_id_profile_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
513
|
+
end
|
514
|
+
return data, status_code, headers
|
515
|
+
end
|
516
|
+
|
517
|
+
# Get the main profile
|
518
|
+
#
|
519
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
520
|
+
# @param [Hash] opts the optional parameters
|
521
|
+
# @option opts [String] :expand
|
522
|
+
# @return [Profile]
|
523
|
+
def users_id_user_profiles_main_get(id_user, opts = {})
|
524
|
+
data, _status_code, _headers = users_id_user_profiles_main_get_with_http_info(id_user, opts)
|
525
|
+
return data
|
526
|
+
end
|
527
|
+
|
528
|
+
# Get the main profile
|
529
|
+
#
|
530
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
531
|
+
# @param [Hash] opts the optional parameters
|
532
|
+
# @option opts [String] :expand
|
533
|
+
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
534
|
+
def users_id_user_profiles_main_get_with_http_info(id_user, opts = {})
|
535
|
+
if @api_client.config.debugging
|
536
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.users_id_user_profiles_main_get ..."
|
537
|
+
end
|
538
|
+
# verify the required parameter 'id_user' is set
|
539
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
540
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling UsersManagementApi.users_id_user_profiles_main_get"
|
541
|
+
end
|
542
|
+
# resource path
|
543
|
+
local_var_path = "/users/{id_user}/profiles/main".sub('{' + 'id_user' + '}', id_user.to_s)
|
544
|
+
|
545
|
+
# query parameters
|
546
|
+
query_params = {}
|
547
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
548
|
+
|
549
|
+
# header parameters
|
550
|
+
header_params = {}
|
551
|
+
# HTTP header 'Accept' (if needed)
|
552
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
553
|
+
# HTTP header 'Content-Type'
|
554
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
555
|
+
|
556
|
+
# form parameters
|
557
|
+
form_params = {}
|
558
|
+
|
559
|
+
# http body (model)
|
560
|
+
post_body = nil
|
561
|
+
auth_names = []
|
562
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
563
|
+
:header_params => header_params,
|
564
|
+
:query_params => query_params,
|
565
|
+
:form_params => form_params,
|
566
|
+
:body => post_body,
|
567
|
+
:auth_names => auth_names,
|
568
|
+
:return_type => 'Profile')
|
569
|
+
if @api_client.config.debugging
|
570
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#users_id_user_profiles_main_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
571
|
+
end
|
572
|
+
return data, status_code, headers
|
573
|
+
end
|
574
|
+
|
575
|
+
# Get my profile
|
576
|
+
#
|
577
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
578
|
+
# @param [Hash] opts the optional parameters
|
579
|
+
# @option opts [String] :expand
|
580
|
+
# @return [Profile]
|
581
|
+
def users_id_user_profiles_me_get(id_user, opts = {})
|
582
|
+
data, _status_code, _headers = users_id_user_profiles_me_get_with_http_info(id_user, opts)
|
583
|
+
return data
|
584
|
+
end
|
585
|
+
|
586
|
+
# Get my profile
|
587
|
+
#
|
588
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
589
|
+
# @param [Hash] opts the optional parameters
|
590
|
+
# @option opts [String] :expand
|
591
|
+
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
592
|
+
def users_id_user_profiles_me_get_with_http_info(id_user, opts = {})
|
593
|
+
if @api_client.config.debugging
|
594
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.users_id_user_profiles_me_get ..."
|
595
|
+
end
|
596
|
+
# verify the required parameter 'id_user' is set
|
597
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
598
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling UsersManagementApi.users_id_user_profiles_me_get"
|
599
|
+
end
|
600
|
+
# resource path
|
601
|
+
local_var_path = "/users/{id_user}/profiles/me".sub('{' + 'id_user' + '}', id_user.to_s)
|
602
|
+
|
603
|
+
# query parameters
|
604
|
+
query_params = {}
|
605
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
606
|
+
|
607
|
+
# header parameters
|
608
|
+
header_params = {}
|
609
|
+
# HTTP header 'Accept' (if needed)
|
610
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
611
|
+
# HTTP header 'Content-Type'
|
612
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
613
|
+
|
614
|
+
# form parameters
|
615
|
+
form_params = {}
|
616
|
+
|
617
|
+
# http body (model)
|
618
|
+
post_body = nil
|
619
|
+
auth_names = []
|
620
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
621
|
+
:header_params => header_params,
|
622
|
+
:query_params => query_params,
|
623
|
+
:form_params => form_params,
|
624
|
+
:body => post_body,
|
625
|
+
:auth_names => auth_names,
|
626
|
+
:return_type => 'Profile')
|
627
|
+
if @api_client.config.debugging
|
628
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#users_id_user_profiles_me_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
629
|
+
end
|
630
|
+
return data, status_code, headers
|
631
|
+
end
|
632
|
+
|
633
|
+
# Create a token
|
634
|
+
# Create an access_token for this user and get it.<br><br>
|
635
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
636
|
+
# @param application application name
|
637
|
+
# @param [Hash] opts the optional parameters
|
638
|
+
# @return [Object]
|
639
|
+
def users_id_user_token_post(id_user, application, opts = {})
|
640
|
+
data, _status_code, _headers = users_id_user_token_post_with_http_info(id_user, application, opts)
|
641
|
+
return data
|
642
|
+
end
|
643
|
+
|
644
|
+
# Create a token
|
645
|
+
# Create an access_token for this user and get it.<br><br>
|
646
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
647
|
+
# @param application application name
|
648
|
+
# @param [Hash] opts the optional parameters
|
649
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
650
|
+
def users_id_user_token_post_with_http_info(id_user, application, opts = {})
|
651
|
+
if @api_client.config.debugging
|
652
|
+
@api_client.config.logger.debug "Calling API: UsersManagementApi.users_id_user_token_post ..."
|
653
|
+
end
|
654
|
+
# verify the required parameter 'id_user' is set
|
655
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
656
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling UsersManagementApi.users_id_user_token_post"
|
657
|
+
end
|
658
|
+
# verify the required parameter 'application' is set
|
659
|
+
if @api_client.config.client_side_validation && application.nil?
|
660
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling UsersManagementApi.users_id_user_token_post"
|
661
|
+
end
|
662
|
+
# resource path
|
663
|
+
local_var_path = "/users/{id_user}/token".sub('{' + 'id_user' + '}', id_user.to_s)
|
664
|
+
|
665
|
+
# query parameters
|
666
|
+
query_params = {}
|
667
|
+
|
668
|
+
# header parameters
|
669
|
+
header_params = {}
|
670
|
+
# HTTP header 'Accept' (if needed)
|
671
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
672
|
+
# HTTP header 'Content-Type'
|
673
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
674
|
+
|
675
|
+
# form parameters
|
676
|
+
form_params = {}
|
677
|
+
form_params["application"] = application
|
678
|
+
|
679
|
+
# http body (model)
|
680
|
+
post_body = nil
|
681
|
+
auth_names = []
|
682
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
683
|
+
:header_params => header_params,
|
684
|
+
:query_params => query_params,
|
685
|
+
:form_params => form_params,
|
686
|
+
:body => post_body,
|
687
|
+
:auth_names => auth_names,
|
688
|
+
:return_type => 'Object')
|
689
|
+
if @api_client.config.debugging
|
690
|
+
@api_client.config.logger.debug "API called: UsersManagementApi#users_id_user_token_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
691
|
+
end
|
692
|
+
return data, status_code, headers
|
693
|
+
end
|
694
|
+
end
|
695
|
+
end
|