Class: BudgeaClient::ConnectionsApi

Inherits:
Object
  • Object
show all
Defined in:
lib/budgea_client/api/connections_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ ConnectionsApi

Returns a new instance of ConnectionsApi.



19
20
21
# File 'lib/budgea_client/api/connections_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/budgea_client/api/connections_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#banks_get(opts = {}) ⇒ InlineResponse2008

Get list of connectors

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



27
28
29
30
# File 'lib/budgea_client/api/connections_api.rb', line 27

def banks_get(opts = {})
  data, _status_code, _headers = banks_get_with_http_info(opts)
  data
end

#banks_get_with_http_info(opts = {}) ⇒ Array<(InlineResponse2008, Fixnum, Hash)>

Get list of connectors

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(InlineResponse2008, Fixnum, Hash)>)

    InlineResponse2008 data, response status code and response headers



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/budgea_client/api/connections_api.rb', line 37

def banks_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.banks_get ...'
  end
  # resource path
  local_var_path = '/banks'

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse2008')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#banks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#banks_id_connector_connections_get(id_connector, opts = {}) ⇒ InlineResponse2009

Get a subset of id_connection with the largest diversity of account By default, it selects a set of 3 connections.

Parameters:

  • id_connector
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :range (Integer)

    the length of the connection subset

  • :type (Integer)

    to target a specific account type which will be

  • :occurrences (Integer)

    require at least N accounts of the targeted

  • :expand (String)

Returns:



82
83
84
85
# File 'lib/budgea_client/api/connections_api.rb', line 82

def banks_id_connector_connections_get(id_connector, opts = {})
  data, _status_code, _headers = banks_id_connector_connections_get_with_http_info(id_connector, opts)
  data
end

#banks_id_connector_connections_get_with_http_info(id_connector, opts = {}) ⇒ Array<(InlineResponse2009, Fixnum, Hash)>

Get a subset of id_connection with the largest diversity of account By default, it selects a set of 3 connections.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_connector
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :range (Integer)

    the length of the connection subset

  • :type (Integer)

    to target a specific account type which will be

  • :occurrences (Integer)

    require at least N accounts of the targeted

  • :expand (String)

Returns:

  • (Array<(InlineResponse2009, Fixnum, Hash)>)

    InlineResponse2009 data, response status code and response headers



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# File 'lib/budgea_client/api/connections_api.rb', line 96

def banks_id_connector_connections_get_with_http_info(id_connector, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.banks_id_connector_connections_get ...'
  end
  # verify the required parameter 'id_connector' is set
  if @api_client.config.client_side_validation && id_connector.nil?
    fail ArgumentError, "Missing the required parameter 'id_connector' when calling ConnectionsApi.banks_id_connector_connections_get"
  end
  # resource path
  local_var_path = '/banks/{id_connector}/connections'.sub('{' + 'id_connector' + '}', id_connector.to_s)

  # query parameters
  query_params = {}
  query_params[:'range'] = opts[:'range'] if !opts[:'range'].nil?
  query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
  query_params[:'occurrences'] = opts[:'occurrences'] if !opts[:'occurrences'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse2009')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#banks_id_connector_connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#banks_id_connector_sources_get(id_connector, opts = {}) ⇒ InlineResponse20011

Get list of connector sources

Parameters:

  • id_connector
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



145
146
147
148
# File 'lib/budgea_client/api/connections_api.rb', line 145

def banks_id_connector_sources_get(id_connector, opts = {})
  data, _status_code, _headers = banks_id_connector_sources_get_with_http_info(id_connector, opts)
  data
end

#banks_id_connector_sources_get_with_http_info(id_connector, opts = {}) ⇒ Array<(InlineResponse20011, Fixnum, Hash)>

Get list of connector sources

Parameters:

  • id_connector
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(InlineResponse20011, Fixnum, Hash)>)

    InlineResponse20011 data, response status code and response headers



156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# File 'lib/budgea_client/api/connections_api.rb', line 156

def banks_id_connector_sources_get_with_http_info(id_connector, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.banks_id_connector_sources_get ...'
  end
  # verify the required parameter 'id_connector' is set
  if @api_client.config.client_side_validation && id_connector.nil?
    fail ArgumentError, "Missing the required parameter 'id_connector' when calling ConnectionsApi.banks_id_connector_sources_get"
  end
  # resource path
  local_var_path = '/banks/{id_connector}/sources'.sub('{' + 'id_connector' + '}', id_connector.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20011')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#banks_id_connector_sources_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#connections_get(opts = {}) ⇒ InlineResponse2009

Get connections without a user

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



201
202
203
204
# File 'lib/budgea_client/api/connections_api.rb', line 201

def connections_get(opts = {})
  data, _status_code, _headers = connections_get_with_http_info(opts)
  data
end

#connections_get_with_http_info(opts = {}) ⇒ Array<(InlineResponse2009, Fixnum, Hash)>

Get connections without a user

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(InlineResponse2009, Fixnum, Hash)>)

    InlineResponse2009 data, response status code and response headers



211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# File 'lib/budgea_client/api/connections_api.rb', line 211

def connections_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.connections_get ...'
  end
  # resource path
  local_var_path = '/connections'

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse2009')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#connections_id_connection_logs_get(id_connection, opts = {}) ⇒ InlineResponse20015

Get connection logs Get logs about connections.

Parameters:

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit number of results

  • :offset (Integer)

    offset of first result

  • :min_date (Date)

    minimal date

  • :max_date (Date)

    maximum date

  • :state (Integer)

    state of user

  • :period (String)

    period to group logs

  • :id_user (Integer)

    ID of a user

  • :id_connection2 (Integer)

    ID of a connection

  • :id_connector (Integer)

    ID of a connector

  • :charged (BOOLEAN)

    consider only logs for charged connectors

  • :id_source (Integer)

    ID of a source

  • :expand (String)

Returns:



264
265
266
267
# File 'lib/budgea_client/api/connections_api.rb', line 264

def connections_id_connection_logs_get(id_connection, opts = {})
  data, _status_code, _headers = connections_id_connection_logs_get_with_http_info(id_connection, opts)
  data
end

#connections_id_connection_logs_get_with_http_info(id_connection, opts = {}) ⇒ Array<(InlineResponse20015, Fixnum, Hash)>

Get connection logs Get logs about connections.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit number of results

  • :offset (Integer)

    offset of first result

  • :min_date (Date)

    minimal date

  • :max_date (Date)

    maximum date

  • :state (Integer)

    state of user

  • :period (String)

    period to group logs

  • :id_user (Integer)

    ID of a user

  • :id_connection2 (Integer)

    ID of a connection

  • :id_connector (Integer)

    ID of a connector

  • :charged (BOOLEAN)

    consider only logs for charged connectors

  • :id_source (Integer)

    ID of a source

  • :expand (String)

Returns:

  • (Array<(InlineResponse20015, Fixnum, Hash)>)

    InlineResponse20015 data, response status code and response headers



286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
# File 'lib/budgea_client/api/connections_api.rb', line 286

def connections_id_connection_logs_get_with_http_info(id_connection, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.connections_id_connection_logs_get ...'
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.connections_id_connection_logs_get"
  end
  # resource path
  local_var_path = '/connections/{id_connection}/logs'.sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
  query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
  query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'id_user'] = opts[:'id_user'] if !opts[:'id_user'].nil?
  query_params[:'id_connection'] = opts[:'id_connection2'] if !opts[:'id_connection2'].nil?
  query_params[:'id_connector'] = opts[:'id_connector'] if !opts[:'id_connector'].nil?
  query_params[:'charged'] = opts[:'charged'] if !opts[:'charged'].nil?
  query_params[:'id_source'] = opts[:'id_source'] if !opts[:'id_source'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20015')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#connections_id_connection_logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#connections_id_connection_sources_get(id_connection, opts = {}) ⇒ InlineResponse20016

Get connection sources

Parameters:

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



343
344
345
346
# File 'lib/budgea_client/api/connections_api.rb', line 343

def connections_id_connection_sources_get(id_connection, opts = {})
  data, _status_code, _headers = connections_id_connection_sources_get_with_http_info(id_connection, opts)
  data
end

#connections_id_connection_sources_get_with_http_info(id_connection, opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>

Get connection sources

Parameters:

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(InlineResponse20016, Fixnum, Hash)>)

    InlineResponse20016 data, response status code and response headers



354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
# File 'lib/budgea_client/api/connections_api.rb', line 354

def connections_id_connection_sources_get_with_http_info(id_connection, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.connections_id_connection_sources_get ...'
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.connections_id_connection_sources_get"
  end
  # resource path
  local_var_path = '/connections/{id_connection}/sources'.sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20016')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#connections_id_connection_sources_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#connections_id_connection_sources_id_source_delete(id_connection, id_source, opts = {}) ⇒ ConnectionSource

Disable a connection source This will make it so the specified source will not be synchronized anymore.

Parameters:

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



401
402
403
404
# File 'lib/budgea_client/api/connections_api.rb', line 401

def connections_id_connection_sources_id_source_delete(id_connection, id_source, opts = {})
  data, _status_code, _headers = connections_id_connection_sources_id_source_delete_with_http_info(id_connection, id_source, opts)
  data
end

#connections_id_connection_sources_id_source_delete_with_http_info(id_connection, id_source, opts = {}) ⇒ Array<(ConnectionSource, Fixnum, Hash)>

Disable a connection source This will make it so the specified source will not be synchronized anymore.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(ConnectionSource, Fixnum, Hash)>)

    ConnectionSource data, response status code and response headers



413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
# File 'lib/budgea_client/api/connections_api.rb', line 413

def connections_id_connection_sources_id_source_delete_with_http_info(id_connection, id_source, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.connections_id_connection_sources_id_source_delete ...'
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.connections_id_connection_sources_id_source_delete"
  end
  # verify the required parameter 'id_source' is set
  if @api_client.config.client_side_validation && id_source.nil?
    fail ArgumentError, "Missing the required parameter 'id_source' when calling ConnectionsApi.connections_id_connection_sources_id_source_delete"
  end
  # resource path
  local_var_path = '/connections/{id_connection}/sources/{id_source}'.sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_source' + '}', id_source.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ConnectionSource')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#connections_id_connection_sources_id_source_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#connections_id_connection_sources_id_source_post(id_connection, id_source, opts = {}) ⇒ ConnectionSource

Enable connection source This will make it so the specified source will be able to be synchronized.

Parameters:

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



464
465
466
467
# File 'lib/budgea_client/api/connections_api.rb', line 464

def connections_id_connection_sources_id_source_post(id_connection, id_source, opts = {})
  data, _status_code, _headers = connections_id_connection_sources_id_source_post_with_http_info(id_connection, id_source, opts)
  data
end

#connections_id_connection_sources_id_source_post_with_http_info(id_connection, id_source, opts = {}) ⇒ Array<(ConnectionSource, Fixnum, Hash)>

Enable connection source This will make it so the specified source will be able to be synchronized.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(ConnectionSource, Fixnum, Hash)>)

    ConnectionSource data, response status code and response headers



476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
# File 'lib/budgea_client/api/connections_api.rb', line 476

def connections_id_connection_sources_id_source_post_with_http_info(id_connection, id_source, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.connections_id_connection_sources_id_source_post ...'
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.connections_id_connection_sources_id_source_post"
  end
  # verify the required parameter 'id_source' is set
  if @api_client.config.client_side_validation && id_source.nil?
    fail ArgumentError, "Missing the required parameter 'id_source' when calling ConnectionsApi.connections_id_connection_sources_id_source_post"
  end
  # resource path
  local_var_path = '/connections/{id_connection}/sources/{id_source}'.sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_source' + '}', id_source.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ConnectionSource')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#connections_id_connection_sources_id_source_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#connections_id_connection_sources_id_source_put(id_connection, id_source, opts = {}) ⇒ ConnectionSource

Enable connection source This will make it so the specified source will be able to be synchronized.

Parameters:

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



527
528
529
530
# File 'lib/budgea_client/api/connections_api.rb', line 527

def connections_id_connection_sources_id_source_put(id_connection, id_source, opts = {})
  data, _status_code, _headers = connections_id_connection_sources_id_source_put_with_http_info(id_connection, id_source, opts)
  data
end

#connections_id_connection_sources_id_source_put_with_http_info(id_connection, id_source, opts = {}) ⇒ Array<(ConnectionSource, Fixnum, Hash)>

Enable connection source This will make it so the specified source will be able to be synchronized.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(ConnectionSource, Fixnum, Hash)>)

    ConnectionSource data, response status code and response headers



539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
# File 'lib/budgea_client/api/connections_api.rb', line 539

def connections_id_connection_sources_id_source_put_with_http_info(id_connection, id_source, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.connections_id_connection_sources_id_source_put ...'
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.connections_id_connection_sources_id_source_put"
  end
  # verify the required parameter 'id_source' is set
  if @api_client.config.client_side_validation && id_source.nil?
    fail ArgumentError, "Missing the required parameter 'id_source' when calling ConnectionsApi.connections_id_connection_sources_id_source_put"
  end
  # resource path
  local_var_path = '/connections/{id_connection}/sources/{id_source}'.sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_source' + '}', id_source.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ConnectionSource')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#connections_id_connection_sources_id_source_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#connectors_get(opts = {}) ⇒ InlineResponse20017

Get list of connectors

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



588
589
590
591
# File 'lib/budgea_client/api/connections_api.rb', line 588

def connectors_get(opts = {})
  data, _status_code, _headers = connectors_get_with_http_info(opts)
  data
end

#connectors_get_with_http_info(opts = {}) ⇒ Array<(InlineResponse20017, Fixnum, Hash)>

Get list of connectors

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(InlineResponse20017, Fixnum, Hash)>)

    InlineResponse20017 data, response status code and response headers



598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
# File 'lib/budgea_client/api/connections_api.rb', line 598

def connectors_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.connectors_get ...'
  end
  # resource path
  local_var_path = '/connectors'

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20017')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#connectors_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#connectors_id_connector_sources_get(id_connector, opts = {}) ⇒ InlineResponse20011

Get list of connector sources

Parameters:

  • id_connector
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



640
641
642
643
# File 'lib/budgea_client/api/connections_api.rb', line 640

def connectors_id_connector_sources_get(id_connector, opts = {})
  data, _status_code, _headers = connectors_id_connector_sources_get_with_http_info(id_connector, opts)
  data
end

#connectors_id_connector_sources_get_with_http_info(id_connector, opts = {}) ⇒ Array<(InlineResponse20011, Fixnum, Hash)>

Get list of connector sources

Parameters:

  • id_connector
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(InlineResponse20011, Fixnum, Hash)>)

    InlineResponse20011 data, response status code and response headers



651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
# File 'lib/budgea_client/api/connections_api.rb', line 651

def connectors_id_connector_sources_get_with_http_info(id_connector, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.connectors_id_connector_sources_get ...'
  end
  # verify the required parameter 'id_connector' is set
  if @api_client.config.client_side_validation && id_connector.nil?
    fail ArgumentError, "Missing the required parameter 'id_connector' when calling ConnectionsApi.connectors_id_connector_sources_get"
  end
  # resource path
  local_var_path = '/connectors/{id_connector}/sources'.sub('{' + 'id_connector' + '}', id_connector.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20011')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#connectors_id_connector_sources_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#connectors_id_connector_sources_id_source_put(id_connector, id_source, opts = {}) ⇒ ConnectorSource

Edit the provided connector source

Parameters:

  • id_connector
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :auth_mechanism (String)

    the authentication mechanism to use for this connector source

  • :disabled (DateTime)

    to enable or disable connector source

  • :expand (String)

Returns:



700
701
702
703
# File 'lib/budgea_client/api/connections_api.rb', line 700

def connectors_id_connector_sources_id_source_put(id_connector, id_source, opts = {})
  data, _status_code, _headers = connectors_id_connector_sources_id_source_put_with_http_info(id_connector, id_source, opts)
  data
end

#connectors_id_connector_sources_id_source_put_with_http_info(id_connector, id_source, opts = {}) ⇒ Array<(ConnectorSource, Fixnum, Hash)>

Edit the provided connector source

Parameters:

  • id_connector
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :auth_mechanism (String)

    the authentication mechanism to use for this connector source

  • :disabled (DateTime)

    to enable or disable connector source

  • :expand (String)

Returns:

  • (Array<(ConnectorSource, Fixnum, Hash)>)

    ConnectorSource data, response status code and response headers



714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
# File 'lib/budgea_client/api/connections_api.rb', line 714

def connectors_id_connector_sources_id_source_put_with_http_info(id_connector, id_source, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.connectors_id_connector_sources_id_source_put ...'
  end
  # verify the required parameter 'id_connector' is set
  if @api_client.config.client_side_validation && id_connector.nil?
    fail ArgumentError, "Missing the required parameter 'id_connector' when calling ConnectionsApi.connectors_id_connector_sources_id_source_put"
  end
  # verify the required parameter 'id_source' is set
  if @api_client.config.client_side_validation && id_source.nil?
    fail ArgumentError, "Missing the required parameter 'id_source' when calling ConnectionsApi.connectors_id_connector_sources_id_source_put"
  end
  # resource path
  local_var_path = '/connectors/{id_connector}/sources/{id_source}'.sub('{' + 'id_connector' + '}', id_connector.to_s).sub('{' + 'id_source' + '}', id_source.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['auth_mechanism'] = opts[:'auth_mechanism'] if !opts[:'auth_mechanism'].nil?
  form_params['disabled'] = opts[:'disabled'] if !opts[:'disabled'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ConnectorSource')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#connectors_id_connector_sources_id_source_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#connectors_post(name, login, password, opts = {}) ⇒ Connector

Request a new connector Send a request to add a new connector

Parameters:

  • name

    Name of the bank or provider

  • login

    Users login

  • password

    Users password

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :url (String)

    Url of the bank

  • :email (String)

    Email of the user

  • :types (String)

    Type of connector, eg. banks or providers

  • :comment (String)

    Optionnal comment

  • :sendmail (BOOLEAN)

    if set, send an email to user

  • :expand (String)

Returns:



773
774
775
776
# File 'lib/budgea_client/api/connections_api.rb', line 773

def connectors_post(name, , password, opts = {})
  data, _status_code, _headers = connectors_post_with_http_info(name, , password, opts)
  data
end

#connectors_post_with_http_info(name, login, password, opts = {}) ⇒ Array<(Connector, Fixnum, Hash)>

Request a new connector Send a request to add a new connector&lt;br&gt;&lt;br&gt;

Parameters:

  • name

    Name of the bank or provider

  • login

    Users login

  • password

    Users password

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :url (String)

    Url of the bank

  • :email (String)

    Email of the user

  • :types (String)

    Type of connector, eg. banks or providers

  • :comment (String)

    Optionnal comment

  • :sendmail (BOOLEAN)

    if set, send an email to user

  • :expand (String)

Returns:

  • (Array<(Connector, Fixnum, Hash)>)

    Connector data, response status code and response headers



791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
# File 'lib/budgea_client/api/connections_api.rb', line 791

def connectors_post_with_http_info(name, , password, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.connectors_post ...'
  end
  # verify the required parameter 'name' is set
  if @api_client.config.client_side_validation && name.nil?
    fail ArgumentError, "Missing the required parameter 'name' when calling ConnectionsApi.connectors_post"
  end
  # verify the required parameter 'login' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'login' when calling ConnectionsApi.connectors_post"
  end
  # verify the required parameter 'password' is set
  if @api_client.config.client_side_validation && password.nil?
    fail ArgumentError, "Missing the required parameter 'password' when calling ConnectionsApi.connectors_post"
  end
  # resource path
  local_var_path = '/connectors'

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['name'] = name
  form_params['login'] = 
  form_params['password'] = password
  form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
  form_params['email'] = opts[:'email'] if !opts[:'email'].nil?
  form_params['types'] = opts[:'types'] if !opts[:'types'].nil?
  form_params['comment'] = opts[:'comment'] if !opts[:'comment'].nil?
  form_params['sendmail'] = opts[:'sendmail'] if !opts[:'sendmail'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Connector')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#connectors_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#logs_get(opts = {}) ⇒ InlineResponse20015

Get connection logs Get logs about connections.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit number of results

  • :offset (Integer)

    offset of first result

  • :min_date (Date)

    minimal date

  • :max_date (Date)

    maximum date

  • :state (Integer)

    state of user

  • :period (String)

    period to group logs

  • :id_user (Integer)

    ID of a user

  • :id_connection (Integer)

    ID of a connection

  • :id_connector (Integer)

    ID of a connector

  • :charged (BOOLEAN)

    consider only logs for charged connectors

  • :id_source (Integer)

    ID of a source

  • :expand (String)

Returns:



863
864
865
866
# File 'lib/budgea_client/api/connections_api.rb', line 863

def logs_get(opts = {})
  data, _status_code, _headers = logs_get_with_http_info(opts)
  data
end

#logs_get_with_http_info(opts = {}) ⇒ Array<(InlineResponse20015, Fixnum, Hash)>

Get connection logs Get logs about connections.&lt;br&gt;&lt;br&gt;

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit number of results

  • :offset (Integer)

    offset of first result

  • :min_date (Date)

    minimal date

  • :max_date (Date)

    maximum date

  • :state (Integer)

    state of user

  • :period (String)

    period to group logs

  • :id_user (Integer)

    ID of a user

  • :id_connection (Integer)

    ID of a connection

  • :id_connector (Integer)

    ID of a connector

  • :charged (BOOLEAN)

    consider only logs for charged connectors

  • :id_source (Integer)

    ID of a source

  • :expand (String)

Returns:

  • (Array<(InlineResponse20015, Fixnum, Hash)>)

    InlineResponse20015 data, response status code and response headers



884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
# File 'lib/budgea_client/api/connections_api.rb', line 884

def logs_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.logs_get ...'
  end
  # resource path
  local_var_path = '/logs'

  # query parameters
  query_params = {}
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
  query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
  query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'id_user'] = opts[:'id_user'] if !opts[:'id_user'].nil?
  query_params[:'id_connection'] = opts[:'id_connection'] if !opts[:'id_connection'].nil?
  query_params[:'id_connector'] = opts[:'id_connector'] if !opts[:'id_connector'].nil?
  query_params[:'charged'] = opts[:'charged'] if !opts[:'charged'].nil?
  query_params[:'id_source'] = opts[:'id_source'] if !opts[:'id_source'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20015')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#providers_get(opts = {}) ⇒ InlineResponse20020

Get list of connectors

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



936
937
938
939
# File 'lib/budgea_client/api/connections_api.rb', line 936

def providers_get(opts = {})
  data, _status_code, _headers = providers_get_with_http_info(opts)
  data
end

#providers_get_with_http_info(opts = {}) ⇒ Array<(InlineResponse20020, Fixnum, Hash)>

Get list of connectors

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(InlineResponse20020, Fixnum, Hash)>)

    InlineResponse20020 data, response status code and response headers



946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
# File 'lib/budgea_client/api/connections_api.rb', line 946

def providers_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.providers_get ...'
  end
  # resource path
  local_var_path = '/providers'

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20020')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#providers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#providers_id_connector_connections_get(id_connector, opts = {}) ⇒ InlineResponse2009

Get a random subset of provider’s id_connection By default, it selects a set of 3 connections.

Parameters:

  • id_connector
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :range (Integer)

    the length of the connection subset

  • :expand (String)

Returns:



989
990
991
992
# File 'lib/budgea_client/api/connections_api.rb', line 989

def providers_id_connector_connections_get(id_connector, opts = {})
  data, _status_code, _headers = providers_id_connector_connections_get_with_http_info(id_connector, opts)
  data
end

#providers_id_connector_connections_get_with_http_info(id_connector, opts = {}) ⇒ Array<(InlineResponse2009, Fixnum, Hash)>

Get a random subset of provider&#39;s id_connection By default, it selects a set of 3 connections.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_connector
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :range (Integer)

    the length of the connection subset

  • :expand (String)

Returns:

  • (Array<(InlineResponse2009, Fixnum, Hash)>)

    InlineResponse2009 data, response status code and response headers



1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'lib/budgea_client/api/connections_api.rb', line 1001

def providers_id_connector_connections_get_with_http_info(id_connector, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.providers_id_connector_connections_get ...'
  end
  # verify the required parameter 'id_connector' is set
  if @api_client.config.client_side_validation && id_connector.nil?
    fail ArgumentError, "Missing the required parameter 'id_connector' when calling ConnectionsApi.providers_id_connector_connections_get"
  end
  # resource path
  local_var_path = '/providers/{id_connector}/connections'.sub('{' + 'id_connector' + '}', id_connector.to_s)

  # query parameters
  query_params = {}
  query_params[:'range'] = opts[:'range'] if !opts[:'range'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse2009')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#providers_id_connector_connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#providers_id_connector_sources_get(id_connector, opts = {}) ⇒ InlineResponse20011

Get list of connector sources

Parameters:

  • id_connector
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



1048
1049
1050
1051
# File 'lib/budgea_client/api/connections_api.rb', line 1048

def providers_id_connector_sources_get(id_connector, opts = {})
  data, _status_code, _headers = providers_id_connector_sources_get_with_http_info(id_connector, opts)
  data
end

#providers_id_connector_sources_get_with_http_info(id_connector, opts = {}) ⇒ Array<(InlineResponse20011, Fixnum, Hash)>

Get list of connector sources

Parameters:

  • id_connector
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(InlineResponse20011, Fixnum, Hash)>)

    InlineResponse20011 data, response status code and response headers



1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
# File 'lib/budgea_client/api/connections_api.rb', line 1059

def providers_id_connector_sources_get_with_http_info(id_connector, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.providers_id_connector_sources_get ...'
  end
  # verify the required parameter 'id_connector' is set
  if @api_client.config.client_side_validation && id_connector.nil?
    fail ArgumentError, "Missing the required parameter 'id_connector' when calling ConnectionsApi.providers_id_connector_sources_get"
  end
  # resource path
  local_var_path = '/providers/{id_connector}/sources'.sub('{' + 'id_connector' + '}', id_connector.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20011')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#providers_id_connector_sources_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_delete(id_user, opts = {}) ⇒ Connection

Delete all connections

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



1105
1106
1107
1108
# File 'lib/budgea_client/api/connections_api.rb', line 1105

def users_id_user_connections_delete(id_user, opts = {})
  data, _status_code, _headers = users_id_user_connections_delete_with_http_info(id_user, opts)
  data
end

#users_id_user_connections_delete_with_http_info(id_user, opts = {}) ⇒ Array<(Connection, Fixnum, Hash)>

Delete all connections

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(Connection, Fixnum, Hash)>)

    Connection data, response status code and response headers



1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
# File 'lib/budgea_client/api/connections_api.rb', line 1116

def users_id_user_connections_delete_with_http_info(id_user, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_delete ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_delete"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections'.sub('{' + 'id_user' + '}', id_user.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Connection')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_get(id_user, opts = {}) ⇒ InlineResponse2009

Get connections

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



1162
1163
1164
1165
# File 'lib/budgea_client/api/connections_api.rb', line 1162

def users_id_user_connections_get(id_user, opts = {})
  data, _status_code, _headers = users_id_user_connections_get_with_http_info(id_user, opts)
  data
end

#users_id_user_connections_get_with_http_info(id_user, opts = {}) ⇒ Array<(InlineResponse2009, Fixnum, Hash)>

Get connections

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(InlineResponse2009, Fixnum, Hash)>)

    InlineResponse2009 data, response status code and response headers



1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
# File 'lib/budgea_client/api/connections_api.rb', line 1173

def users_id_user_connections_get_with_http_info(id_user, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections'.sub('{' + 'id_user' + '}', id_user.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse2009')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_id_connection_delete(id_user, id_connection, opts = {}) ⇒ Connection

Delete a connection. This endpoint deletes a connection and all related accounts and transactions.

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



1220
1221
1222
1223
# File 'lib/budgea_client/api/connections_api.rb', line 1220

def users_id_user_connections_id_connection_delete(id_user, id_connection, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_delete_with_http_info(id_user, id_connection, opts)
  data
end

#users_id_user_connections_id_connection_delete_with_http_info(id_user, id_connection, opts = {}) ⇒ Array<(Connection, Fixnum, Hash)>

Delete a connection. This endpoint deletes a connection and all related accounts and transactions.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(Connection, Fixnum, Hash)>)

    Connection data, response status code and response headers



1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
# File 'lib/budgea_client/api/connections_api.rb', line 1232

def users_id_user_connections_id_connection_delete_with_http_info(id_user, id_connection, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_delete ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_delete"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_delete"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Connection')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_id_connection_get(id_user, id_connection, opts = {}) ⇒ Connection

Get connection Get connection by ID

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



1283
1284
1285
1286
# File 'lib/budgea_client/api/connections_api.rb', line 1283

def users_id_user_connections_id_connection_get(id_user, id_connection, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_get_with_http_info(id_user, id_connection, opts)
  data
end

#users_id_user_connections_id_connection_get_with_http_info(id_user, id_connection, opts = {}) ⇒ Array<(Connection, Fixnum, Hash)>

Get connection Get connection by ID

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(Connection, Fixnum, Hash)>)

    Connection data, response status code and response headers



1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
# File 'lib/budgea_client/api/connections_api.rb', line 1295

def users_id_user_connections_id_connection_get_with_http_info(id_user, id_connection, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_get"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Connection')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_id_connection_informations_get(id_user, id_connection, opts = {}) ⇒ InlineResponse2009

Get connection additionnal informations

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



1346
1347
1348
1349
# File 'lib/budgea_client/api/connections_api.rb', line 1346

def users_id_user_connections_id_connection_informations_get(id_user, id_connection, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_informations_get_with_http_info(id_user, id_connection, opts)
  data
end

#users_id_user_connections_id_connection_informations_get_with_http_info(id_user, id_connection, opts = {}) ⇒ Array<(InlineResponse2009, Fixnum, Hash)>

Get connection additionnal informations &lt;br&gt;&lt;br&gt;

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(InlineResponse2009, Fixnum, Hash)>)

    InlineResponse2009 data, response status code and response headers



1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
# File 'lib/budgea_client/api/connections_api.rb', line 1358

def users_id_user_connections_id_connection_informations_get_with_http_info(id_user, id_connection, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_informations_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_informations_get"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_informations_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/informations'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse2009')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_informations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_id_connection_logs_get(id_user, id_connection, opts = {}) ⇒ InlineResponse20015

Get connection logs Get logs about connections.

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit number of results

  • :offset (Integer)

    offset of first result

  • :min_date (Date)

    minimal date

  • :max_date (Date)

    maximum date

  • :state (Integer)

    state of user

  • :period (String)

    period to group logs

  • :id_user2 (Integer)

    ID of a user

  • :id_connection2 (Integer)

    ID of a connection

  • :id_connector (Integer)

    ID of a connector

  • :charged (BOOLEAN)

    consider only logs for charged connectors

  • :id_source (Integer)

    ID of a source

  • :expand (String)

Returns:



1420
1421
1422
1423
# File 'lib/budgea_client/api/connections_api.rb', line 1420

def users_id_user_connections_id_connection_logs_get(id_user, id_connection, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_logs_get_with_http_info(id_user, id_connection, opts)
  data
end

#users_id_user_connections_id_connection_logs_get_with_http_info(id_user, id_connection, opts = {}) ⇒ Array<(InlineResponse20015, Fixnum, Hash)>

Get connection logs Get logs about connections.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit number of results

  • :offset (Integer)

    offset of first result

  • :min_date (Date)

    minimal date

  • :max_date (Date)

    maximum date

  • :state (Integer)

    state of user

  • :period (String)

    period to group logs

  • :id_user2 (Integer)

    ID of a user

  • :id_connection2 (Integer)

    ID of a connection

  • :id_connector (Integer)

    ID of a connector

  • :charged (BOOLEAN)

    consider only logs for charged connectors

  • :id_source (Integer)

    ID of a source

  • :expand (String)

Returns:

  • (Array<(InlineResponse20015, Fixnum, Hash)>)

    InlineResponse20015 data, response status code and response headers



1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
# File 'lib/budgea_client/api/connections_api.rb', line 1443

def users_id_user_connections_id_connection_logs_get_with_http_info(id_user, id_connection, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_logs_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_logs_get"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_logs_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/logs'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
  query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
  query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'id_user'] = opts[:'id_user2'] if !opts[:'id_user2'].nil?
  query_params[:'id_connection'] = opts[:'id_connection2'] if !opts[:'id_connection2'].nil?
  query_params[:'id_connector'] = opts[:'id_connector'] if !opts[:'id_connector'].nil?
  query_params[:'charged'] = opts[:'charged'] if !opts[:'charged'].nil?
  query_params[:'id_source'] = opts[:'id_source'] if !opts[:'id_source'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20015')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_id_connection_post(id_user, id_connection, opts = {}) ⇒ Connection

Update a connection. Give new parameters to change on the configuration of this connection (for example "password").
It tests connection to website, and if it fails, a 400 response is given with the error code "wrongpass" or "websiteUnavailable".
You can also supply meta-parameters on connection, like ‘active’ or ‘expire’.

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)
  • :connection (Object)

Returns:



1506
1507
1508
1509
# File 'lib/budgea_client/api/connections_api.rb', line 1506

def users_id_user_connections_id_connection_post(id_user, id_connection, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_post_with_http_info(id_user, id_connection, opts)
  data
end

#users_id_user_connections_id_connection_post_with_http_info(id_user, id_connection, opts = {}) ⇒ Array<(Connection, Fixnum, Hash)>

Update a connection. Give new parameters to change on the configuration of this connection (for example &quot;password&quot;).&lt;br&gt;&lt;br&gt;It tests connection to website, and if it fails, a 400 response is given with the error code &quot;wrongpass&quot; or &quot;websiteUnavailable&quot;.&lt;br&gt;&lt;br&gt;You can also supply meta-parameters on connection, like &#39;active&#39; or &#39;expire&#39;.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)
  • :connection (Object)

Returns:

  • (Array<(Connection, Fixnum, Hash)>)

    Connection data, response status code and response headers



1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
# File 'lib/budgea_client/api/connections_api.rb', line 1519

def users_id_user_connections_id_connection_post_with_http_info(id_user, id_connection, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'connection'])
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Connection')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_id_connection_put(id_user, id_connection, opts = {}) ⇒ Connection

Force synchronisation of a connection. We suggest to pass parameter expand=accounts to get all new and updated transactions.
Query params: - expand (string): fields to expand - last_update (dateTime): if supplied, get transactions inserted since this date

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



1570
1571
1572
1573
# File 'lib/budgea_client/api/connections_api.rb', line 1570

def users_id_user_connections_id_connection_put(id_user, id_connection, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_put_with_http_info(id_user, id_connection, opts)
  data
end

#users_id_user_connections_id_connection_put_with_http_info(id_user, id_connection, opts = {}) ⇒ Array<(Connection, Fixnum, Hash)>

Force synchronisation of a connection. We suggest to pass parameter expand&#x3D;accounts to get all new and updated transactions.&lt;br&gt;&lt;br&gt;Query params: - expand (string): fields to expand - last_update (dateTime): if supplied, get transactions inserted since this date&lt;br&gt;&lt;br&gt;

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(Connection, Fixnum, Hash)>)

    Connection data, response status code and response headers



1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
# File 'lib/budgea_client/api/connections_api.rb', line 1582

def users_id_user_connections_id_connection_put_with_http_info(id_user, id_connection, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_put ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_put"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_put"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Connection')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_id_connection_sources_get(id_user, id_connection, opts = {}) ⇒ InlineResponse20016

Get connection sources

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



1633
1634
1635
1636
# File 'lib/budgea_client/api/connections_api.rb', line 1633

def users_id_user_connections_id_connection_sources_get(id_user, id_connection, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_sources_get_with_http_info(id_user, id_connection, opts)
  data
end

#users_id_user_connections_id_connection_sources_get_with_http_info(id_user, id_connection, opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>

Get connection sources

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(InlineResponse20016, Fixnum, Hash)>)

    InlineResponse20016 data, response status code and response headers



1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
# File 'lib/budgea_client/api/connections_api.rb', line 1645

def users_id_user_connections_id_connection_sources_get_with_http_info(id_user, id_connection, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_sources_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_sources_get"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_sources_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/sources'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20016')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_sources_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_id_connection_sources_id_source_delete(id_user, id_connection, id_source, opts = {}) ⇒ ConnectionSource

Disable a connection source This will make it so the specified source will not be synchronized anymore.

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



1697
1698
1699
1700
# File 'lib/budgea_client/api/connections_api.rb', line 1697

def users_id_user_connections_id_connection_sources_id_source_delete(id_user, id_connection, id_source, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_sources_id_source_delete_with_http_info(id_user, id_connection, id_source, opts)
  data
end

#users_id_user_connections_id_connection_sources_id_source_delete_with_http_info(id_user, id_connection, id_source, opts = {}) ⇒ Array<(ConnectionSource, Fixnum, Hash)>

Disable a connection source This will make it so the specified source will not be synchronized anymore.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(ConnectionSource, Fixnum, Hash)>)

    ConnectionSource data, response status code and response headers



1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
# File 'lib/budgea_client/api/connections_api.rb', line 1710

def users_id_user_connections_id_connection_sources_id_source_delete_with_http_info(id_user, id_connection, id_source, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_delete ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_delete"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_delete"
  end
  # verify the required parameter 'id_source' is set
  if @api_client.config.client_side_validation && id_source.nil?
    fail ArgumentError, "Missing the required parameter 'id_source' when calling ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_delete"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/sources/{id_source}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_source' + '}', id_source.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ConnectionSource')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_sources_id_source_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_id_connection_sources_id_source_post(id_user, id_connection, id_source, opts = {}) ⇒ ConnectionSource

Enable connection source This will make it so the specified source will be able to be synchronized.

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



1766
1767
1768
1769
# File 'lib/budgea_client/api/connections_api.rb', line 1766

def users_id_user_connections_id_connection_sources_id_source_post(id_user, id_connection, id_source, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_sources_id_source_post_with_http_info(id_user, id_connection, id_source, opts)
  data
end

#users_id_user_connections_id_connection_sources_id_source_post_with_http_info(id_user, id_connection, id_source, opts = {}) ⇒ Array<(ConnectionSource, Fixnum, Hash)>

Enable connection source This will make it so the specified source will be able to be synchronized.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(ConnectionSource, Fixnum, Hash)>)

    ConnectionSource data, response status code and response headers



1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
# File 'lib/budgea_client/api/connections_api.rb', line 1779

def users_id_user_connections_id_connection_sources_id_source_post_with_http_info(id_user, id_connection, id_source, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_post"
  end
  # verify the required parameter 'id_source' is set
  if @api_client.config.client_side_validation && id_source.nil?
    fail ArgumentError, "Missing the required parameter 'id_source' when calling ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/sources/{id_source}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_source' + '}', id_source.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ConnectionSource')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_sources_id_source_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_id_connection_sources_id_source_put(id_user, id_connection, id_source, opts = {}) ⇒ ConnectionSource

Enable connection source This will make it so the specified source will be able to be synchronized.

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:



1835
1836
1837
1838
# File 'lib/budgea_client/api/connections_api.rb', line 1835

def users_id_user_connections_id_connection_sources_id_source_put(id_user, id_connection, id_source, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_sources_id_source_put_with_http_info(id_user, id_connection, id_source, opts)
  data
end

#users_id_user_connections_id_connection_sources_id_source_put_with_http_info(id_user, id_connection, id_source, opts = {}) ⇒ Array<(ConnectionSource, Fixnum, Hash)>

Enable connection source This will make it so the specified source will be able to be synchronized.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • id_connection
  • id_source
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (String)

Returns:

  • (Array<(ConnectionSource, Fixnum, Hash)>)

    ConnectionSource data, response status code and response headers



1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
# File 'lib/budgea_client/api/connections_api.rb', line 1848

def users_id_user_connections_id_connection_sources_id_source_put_with_http_info(id_user, id_connection, id_source, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_put ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_put"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_put"
  end
  # verify the required parameter 'id_source' is set
  if @api_client.config.client_side_validation && id_source.nil?
    fail ArgumentError, "Missing the required parameter 'id_source' when calling ConnectionsApi.users_id_user_connections_id_connection_sources_id_source_put"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/sources/{id_source}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_source' + '}', id_source.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ConnectionSource')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_sources_id_source_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_connections_post(id_user, opts = {}) ⇒ Connection

Add a new connection. Create a new connection to a given bank or provider. You have to give all needed parameters (use /banks/ID/fields or /providers/ID/fields to get them).

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :source (String)

    optional comma-separated list of sources to use for the connection synchronization

  • :expand (String)
  • :connection (Object)

Returns:



1904
1905
1906
1907
# File 'lib/budgea_client/api/connections_api.rb', line 1904

def users_id_user_connections_post(id_user, opts = {})
  data, _status_code, _headers = users_id_user_connections_post_with_http_info(id_user, opts)
  data
end

#users_id_user_connections_post_with_http_info(id_user, opts = {}) ⇒ Array<(Connection, Fixnum, Hash)>

Add a new connection. Create a new connection to a given bank or provider. You have to give all needed parameters (use /banks/ID/fields or /providers/ID/fields to get them).&lt;br&gt;&lt;br&gt;

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :source (String)

    optional comma-separated list of sources to use for the connection synchronization

  • :expand (String)
  • :connection (Object)

Returns:

  • (Array<(Connection, Fixnum, Hash)>)

    Connection data, response status code and response headers



1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
# File 'lib/budgea_client/api/connections_api.rb', line 1917

def users_id_user_connections_post_with_http_info(id_user, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections'.sub('{' + 'id_user' + '}', id_user.to_s)

  # query parameters
  query_params = {}
  query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'connection'])
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Connection')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#users_id_user_logs_get(id_user, opts = {}) ⇒ InlineResponse20015

Get connection logs Get logs about connections.

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit number of results

  • :offset (Integer)

    offset of first result

  • :min_date (Date)

    minimal date

  • :max_date (Date)

    maximum date

  • :state (Integer)

    state of user

  • :period (String)

    period to group logs

  • :id_user2 (Integer)

    ID of a user

  • :id_connection (Integer)

    ID of a connection

  • :id_connector (Integer)

    ID of a connector

  • :charged (BOOLEAN)

    consider only logs for charged connectors

  • :id_source (Integer)

    ID of a source

  • :expand (String)

Returns:



1975
1976
1977
1978
# File 'lib/budgea_client/api/connections_api.rb', line 1975

def users_id_user_logs_get(id_user, opts = {})
  data, _status_code, _headers = users_id_user_logs_get_with_http_info(id_user, opts)
  data
end

#users_id_user_logs_get_with_http_info(id_user, opts = {}) ⇒ Array<(InlineResponse20015, Fixnum, Hash)>

Get connection logs Get logs about connections.&lt;br&gt;&lt;br&gt;

Parameters:

  • id_user

    Hint: you can use &#39;me&#39; or &#39;all&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit number of results

  • :offset (Integer)

    offset of first result

  • :min_date (Date)

    minimal date

  • :max_date (Date)

    maximum date

  • :state (Integer)

    state of user

  • :period (String)

    period to group logs

  • :id_user2 (Integer)

    ID of a user

  • :id_connection (Integer)

    ID of a connection

  • :id_connector (Integer)

    ID of a connector

  • :charged (BOOLEAN)

    consider only logs for charged connectors

  • :id_source (Integer)

    ID of a source

  • :expand (String)

Returns:

  • (Array<(InlineResponse20015, Fixnum, Hash)>)

    InlineResponse20015 data, response status code and response headers



1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
# File 'lib/budgea_client/api/connections_api.rb', line 1997

def users_id_user_logs_get_with_http_info(id_user, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_logs_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_logs_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/logs'.sub('{' + 'id_user' + '}', id_user.to_s)

  # query parameters
  query_params = {}
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
  query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
  query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'id_user'] = opts[:'id_user2'] if !opts[:'id_user2'].nil?
  query_params[:'id_connection'] = opts[:'id_connection'] if !opts[:'id_connection'].nil?
  query_params[:'id_connector'] = opts[:'id_connector'] if !opts[:'id_connector'].nil?
  query_params[:'charged'] = opts[:'charged'] if !opts[:'charged'].nil?
  query_params[:'id_source'] = opts[:'id_source'] if !opts[:'id_source'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20015')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end