Class: Requestsproxy::RequestsproxyApi

Inherits:
Object
  • Object
show all
Defined in:
lib/requestsproxy-rest/api/requestsproxy_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ RequestsproxyApi

Returns a new instance of RequestsproxyApi.



19
20
21
# File 'lib/requestsproxy-rest/api/requestsproxy_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/requestsproxy-rest/api/requestsproxy_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#account_star_rating(account_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Returns:



25
26
27
28
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 25

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

#account_star_rating_with_http_info(account_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    RequestsproxyResponse data, response status code and response headers



33
34
35
36
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
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 33

def (, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RequestsproxyApi.account_star_rating ...'
  end
  # verify the required parameter 'account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.account_star_rating"
  end
  # resource path
  local_var_path = '/v2/{account_id}/star_rating/account'.sub('{' + 'account_id' + '}', .to_s)

  # query parameters
  query_params = {}

  # 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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#account_star_rating\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#auth_info(account_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Returns:



75
76
77
78
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 75

def auth_info(, opts = {})
  data, _status_code, _headers = auth_info_with_http_info(, opts)
  data
end

#auth_info_with_http_info(account_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    RequestsproxyResponse data, response status code and response headers



83
84
85
86
87
88
89
90
91
92
93
94
95
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
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 83

def auth_info_with_http_info(, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RequestsproxyApi.auth_info ...'
  end
  # verify the required parameter 'account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.auth_info"
  end
  # resource path
  local_var_path = '/v2/{account_id}/info'.sub('{' + 'account_id' + '}', .to_s)

  # query parameters
  query_params = {}

  # 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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#auth_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_webhook(account_id, body, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Returns:



126
127
128
129
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 126

def create_webhook(, body, opts = {})
  data, _status_code, _headers = create_webhook_with_http_info(, body, opts)
  data
end

#create_webhook_with_http_info(account_id, body, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    RequestsproxyResponse data, response status code and response headers



135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 135

def create_webhook_with_http_info(, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RequestsproxyApi.create_webhook ...'
  end
  # verify the required parameter 'account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.create_webhook"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling RequestsproxyApi.create_webhook"
  end
  # resource path
  local_var_path = '/v2/{account_id}/webhooks'.sub('{' + 'account_id' + '}', .to_s)

  # query parameters
  query_params = {}

  # 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(body)
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#create_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_webhook(account_id, id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :access_token (String)

Returns:



183
184
185
186
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 183

def delete_webhook(, id, opts = {})
  data, _status_code, _headers = delete_webhook_with_http_info(, id, opts)
  data
end

#delete_webhook_with_http_info(account_id, id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :access_token (String)

Returns:

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

    RequestsproxyResponse data, response status code and response headers



193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
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
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 193

def delete_webhook_with_http_info(, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RequestsproxyApi.delete_webhook ...'
  end
  # verify the required parameter 'account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.delete_webhook"
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling RequestsproxyApi.delete_webhook"
  end
  # resource path
  local_var_path = '/v2/{account_id}/webhooks/{id}'.sub('{' + 'account_id' + '}', .to_s).sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}
  query_params[:'access_token'] = opts[:'access_token'] if !opts[:'access_token'].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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#delete_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#features(account_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Returns:



240
241
242
243
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 240

def features(, opts = {})
  data, _status_code, _headers = features_with_http_info(, opts)
  data
end

#features_with_http_info(account_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    RequestsproxyResponse data, response status code and response headers



248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 248

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

  # query parameters
  query_params = {}

  # 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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#features\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#orders(account_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :first_id (String)
  • :count (String)
  • :page (String)

Returns:



293
294
295
296
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 293

def orders(, opts = {})
  data, _status_code, _headers = orders_with_http_info(, opts)
  data
end

#orders_with_http_info(account_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :first_id (String)
  • :count (String)
  • :page (String)

Returns:

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

    RequestsproxyResponse data, response status code and response headers



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
337
338
339
340
341
342
343
344
345
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 304

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

  # query parameters
  query_params = {}
  query_params[:'first_id'] = opts[:'first_id'] if !opts[:'first_id'].nil?
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#product(account_id, external_product_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Returns:



350
351
352
353
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 350

def product(, external_product_id, opts = {})
  data, _status_code, _headers = product_with_http_info(, external_product_id, opts)
  data
end

#product_star_rating(account_id, external_product_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Returns:



406
407
408
409
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 406

def product_star_rating(, external_product_id, opts = {})
  data, _status_code, _headers = product_star_rating_with_http_info(, external_product_id, opts)
  data
end

#product_star_rating_with_http_info(account_id, external_product_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    RequestsproxyResponse data, response status code and response headers



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
457
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 415

def product_star_rating_with_http_info(, external_product_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RequestsproxyApi.product_star_rating ...'
  end
  # verify the required parameter 'account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.product_star_rating"
  end
  # verify the required parameter 'external_product_id' is set
  if @api_client.config.client_side_validation && external_product_id.nil?
    fail ArgumentError, "Missing the required parameter 'external_product_id' when calling RequestsproxyApi.product_star_rating"
  end
  # resource path
  local_var_path = '/v2/{account_id}/star_rating/products/{external_product_id}'.sub('{' + 'account_id' + '}', .to_s).sub('{' + 'external_product_id' + '}', external_product_id.to_s)

  # query parameters
  query_params = {}

  # 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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#product_star_rating\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#product_with_http_info(account_id, external_product_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    RequestsproxyResponse data, response status code and response headers



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
394
395
396
397
398
399
400
401
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 359

def product_with_http_info(, external_product_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RequestsproxyApi.product ...'
  end
  # verify the required parameter 'account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.product"
  end
  # verify the required parameter 'external_product_id' is set
  if @api_client.config.client_side_validation && external_product_id.nil?
    fail ArgumentError, "Missing the required parameter 'external_product_id' when calling RequestsproxyApi.product"
  end
  # resource path
  local_var_path = '/v2/{account_id}/products/{external_product_id}'.sub('{' + 'account_id' + '}', .to_s).sub('{' + 'external_product_id' + '}', external_product_id.to_s)

  # query parameters
  query_params = {}

  # 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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#products(account_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :page (String)
  • :count (String)

Returns:



463
464
465
466
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 463

def products(, opts = {})
  data, _status_code, _headers = products_with_http_info(, opts)
  data
end

#products_star_rating(account_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Returns:



517
518
519
520
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 517

def products_star_rating(, opts = {})
  data, _status_code, _headers = products_star_rating_with_http_info(, opts)
  data
end

#products_star_rating_with_http_info(account_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    RequestsproxyResponse data, response status code and response headers



525
526
527
528
529
530
531
532
533
534
535
536
537
538
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
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 525

def products_star_rating_with_http_info(, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RequestsproxyApi.products_star_rating ...'
  end
  # verify the required parameter 'account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.products_star_rating"
  end
  # resource path
  local_var_path = '/v2/{account_id}/star_rating/products'.sub('{' + 'account_id' + '}', .to_s)

  # query parameters
  query_params = {}

  # 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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#products_star_rating\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#products_with_http_info(account_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :page (String)
  • :count (String)

Returns:

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

    RequestsproxyResponse data, response status code and response headers



473
474
475
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
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 473

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

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#products\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

Parameters:

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

    the optional parameters

Returns:



567
568
569
570
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 567

def promoted_products(, opts = {})
  data, _status_code, _headers = promoted_products_with_http_info(, opts)
  data
end

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    RequestsproxyResponse data, response status code and response headers



575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 575

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

  # query parameters
  query_params = {}

  # 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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#promoted_products\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#review(account_id, review_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :include_nested (BOOLEAN)

Returns:



619
620
621
622
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 619

def review(, review_id, opts = {})
  data, _status_code, _headers = review_with_http_info(, review_id, opts)
  data
end

#review_with_http_info(account_id, review_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :include_nested (BOOLEAN)

Returns:

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

    RequestsproxyResponse data, response status code and response headers



629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 629

def review_with_http_info(, review_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RequestsproxyApi.review ...'
  end
  # verify the required parameter 'account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.review"
  end
  # verify the required parameter 'review_id' is set
  if @api_client.config.client_side_validation && review_id.nil?
    fail ArgumentError, "Missing the required parameter 'review_id' when calling RequestsproxyApi.review"
  end
  # resource path
  local_var_path = '/v2/{account_id}/reviews/{review_id}'.sub('{' + 'account_id' + '}', .to_s).sub('{' + 'review_id' + '}', review_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'include_nested'] = opts[:'include_nested'] if !opts[:'include_nested'].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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#reviews(account_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :first_id (String)
  • :count (String)
  • :page (String)
  • :include_site_reviews (String)
  • :sort (String)
  • :direction (String)
  • :star (String)
  • :include_nested (BOOLEAN)

Returns:



684
685
686
687
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 684

def reviews(, opts = {})
  data, _status_code, _headers = reviews_with_http_info(, opts)
  data
end

#reviews_by_product(account_id, external_product_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :first_id (String)
  • :count (String)
  • :page (String)
  • :include_site_reviews (String)
  • :sort (String)
  • :direction (String)
  • :star (String)
  • :include_nested (BOOLEAN)

Returns:



759
760
761
762
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 759

def reviews_by_product(, external_product_id, opts = {})
  data, _status_code, _headers = reviews_by_product_with_http_info(, external_product_id, opts)
  data
end

#reviews_by_product_with_http_info(account_id, external_product_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :first_id (String)
  • :count (String)
  • :page (String)
  • :include_site_reviews (String)
  • :sort (String)
  • :direction (String)
  • :star (String)
  • :include_nested (BOOLEAN)

Returns:

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

    RequestsproxyResponse data, response status code and response headers



776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
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
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 776

def reviews_by_product_with_http_info(, external_product_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RequestsproxyApi.reviews_by_product ...'
  end
  # verify the required parameter 'account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.reviews_by_product"
  end
  # verify the required parameter 'external_product_id' is set
  if @api_client.config.client_side_validation && external_product_id.nil?
    fail ArgumentError, "Missing the required parameter 'external_product_id' when calling RequestsproxyApi.reviews_by_product"
  end
  # resource path
  local_var_path = '/v2/{account_id}/products/{external_product_id}/reviews'.sub('{' + 'account_id' + '}', .to_s).sub('{' + 'external_product_id' + '}', external_product_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'first_id'] = opts[:'first_id'] if !opts[:'first_id'].nil?
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'include_site_reviews'] = opts[:'include_site_reviews'] if !opts[:'include_site_reviews'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
  query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
  query_params[:'star'] = opts[:'star'] if !opts[:'star'].nil?
  query_params[:'include_nested'] = opts[:'include_nested'] if !opts[:'include_nested'].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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#reviews_by_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#reviews_with_http_info(account_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :first_id (String)
  • :count (String)
  • :page (String)
  • :include_site_reviews (String)
  • :sort (String)
  • :direction (String)
  • :star (String)
  • :include_nested (BOOLEAN)

Returns:

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

    RequestsproxyResponse data, response status code and response headers



700
701
702
703
704
705
706
707
708
709
710
711
712
713
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
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 700

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

  # query parameters
  query_params = {}
  query_params[:'first_id'] = opts[:'first_id'] if !opts[:'first_id'].nil?
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'include_site_reviews'] = opts[:'include_site_reviews'] if !opts[:'include_site_reviews'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
  query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
  query_params[:'star'] = opts[:'star'] if !opts[:'star'].nil?
  query_params[:'include_nested'] = opts[:'include_nested'] if !opts[:'include_nested'].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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#reviews\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#top_reviews(account_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :external_product_id (String)

Returns:



831
832
833
834
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 831

def top_reviews(, opts = {})
  data, _status_code, _headers = top_reviews_with_http_info(, opts)
  data
end

#top_reviews_with_http_info(account_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :external_product_id (String)

Returns:

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

    RequestsproxyResponse data, response status code and response headers



840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 840

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

  # query parameters
  query_params = {}
  query_params[:'external_product_id'] = opts[:'external_product_id'] if !opts[:'external_product_id'].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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#top_reviews\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_webhook(account_id, id, body, opts = {}) ⇒ RequestsproxyResponse

Parameters:

  • account_id
  • id
  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



885
886
887
888
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 885

def update_webhook(, id, body, opts = {})
  data, _status_code, _headers = update_webhook_with_http_info(, id, body, opts)
  data
end

#update_webhook_with_http_info(account_id, id, body, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

  • account_id
  • id
  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

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

    RequestsproxyResponse data, response status code and response headers



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
931
932
933
934
935
936
937
938
939
940
941
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 895

def update_webhook_with_http_info(, id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RequestsproxyApi.update_webhook ...'
  end
  # verify the required parameter 'account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.update_webhook"
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling RequestsproxyApi.update_webhook"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling RequestsproxyApi.update_webhook"
  end
  # resource path
  local_var_path = '/v2/{account_id}/webhooks/{id}'.sub('{' + 'account_id' + '}', .to_s).sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # 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(body)
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#update_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#user(account_id, user_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Returns:



946
947
948
949
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 946

def user(, user_id, opts = {})
  data, _status_code, _headers = user_with_http_info(, user_id, opts)
  data
end

#user_with_http_info(account_id, user_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    RequestsproxyResponse data, response status code and response headers



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
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 955

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

  # query parameters
  query_params = {}

  # 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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#webhook(account_id, id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :access_token (String)

Returns:



1003
1004
1005
1006
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 1003

def webhook(, id, opts = {})
  data, _status_code, _headers = webhook_with_http_info(, id, opts)
  data
end

#webhook_events(account_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Returns:



1060
1061
1062
1063
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 1060

def webhook_events(, opts = {})
  data, _status_code, _headers = webhook_events_with_http_info(, opts)
  data
end

#webhook_events_with_http_info(account_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    RequestsproxyResponse data, response status code and response headers



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
1099
1100
1101
1102
1103
1104
1105
1106
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 1068

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

  # query parameters
  query_params = {}

  # 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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#webhook_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#webhook_with_http_info(account_id, id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :access_token (String)

Returns:

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

    RequestsproxyResponse data, response status code and response headers



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
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 1013

def webhook_with_http_info(, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: RequestsproxyApi.webhook ...'
  end
  # verify the required parameter 'account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.webhook"
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling RequestsproxyApi.webhook"
  end
  # resource path
  local_var_path = '/v2/{account_id}/webhooks/{id}'.sub('{' + 'account_id' + '}', .to_s).sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}
  query_params[:'access_token'] = opts[:'access_token'] if !opts[:'access_token'].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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#webhooks(account_id, opts = {}) ⇒ RequestsproxyResponse

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :access_token (String)

Returns:



1111
1112
1113
1114
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 1111

def webhooks(, opts = {})
  data, _status_code, _headers = webhooks_with_http_info(, opts)
  data
end

#webhooks_with_http_info(account_id, opts = {}) ⇒ Array<(RequestsproxyResponse, Fixnum, Hash)>

Returns RequestsproxyResponse data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :access_token (String)

Returns:

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

    RequestsproxyResponse data, response status code and response headers



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
1156
1157
1158
1159
# File 'lib/requestsproxy-rest/api/requestsproxy_api.rb', line 1120

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

  # query parameters
  query_params = {}
  query_params[:'access_token'] = opts[:'access_token'] if !opts[:'access_token'].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 = nil
  auth_names = []
  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 => 'RequestsproxyResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: RequestsproxyApi#webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end