groupdocs_platform_cloud 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +22 -0
  3. data/README.md +160 -0
  4. data/Ruby Mustache Templates/ReadMe.txt +1 -0
  5. data/Ruby Mustache Templates/api_client.mustache +441 -0
  6. data/Swagger Specs File/platform.json +1683 -0
  7. data/groupdocs_platform_cloud.gemspec +26 -0
  8. data/lib/groupdocs_platform_cloud.rb +72 -0
  9. data/lib/groupdocs_platform_cloud/api/app_api.rb +359 -0
  10. data/lib/groupdocs_platform_cloud/api/app_statistics_api.rb +572 -0
  11. data/lib/groupdocs_platform_cloud/api/auth_api.rb +176 -0
  12. data/lib/groupdocs_platform_cloud/api/file_api.rb +282 -0
  13. data/lib/groupdocs_platform_cloud/api/folder_api.rb +267 -0
  14. data/lib/groupdocs_platform_cloud/api/heroku_api.rb +241 -0
  15. data/lib/groupdocs_platform_cloud/api/storage_api.rb +249 -0
  16. data/lib/groupdocs_platform_cloud/api/usage_api.rb +233 -0
  17. data/lib/groupdocs_platform_cloud/api_client.rb +446 -0
  18. data/lib/groupdocs_platform_cloud/api_error.rb +38 -0
  19. data/lib/groupdocs_platform_cloud/configuration.rb +216 -0
  20. data/lib/groupdocs_platform_cloud/groupdocs_app.rb +20 -0
  21. data/lib/groupdocs_platform_cloud/models/access_token_list_response.rb +213 -0
  22. data/lib/groupdocs_platform_cloud/models/access_token_response.rb +211 -0
  23. data/lib/groupdocs_platform_cloud/models/app.rb +243 -0
  24. data/lib/groupdocs_platform_cloud/models/app_usage.rb +235 -0
  25. data/lib/groupdocs_platform_cloud/models/application_usage_response.rb +202 -0
  26. data/lib/groupdocs_platform_cloud/models/disc_usage.rb +207 -0
  27. data/lib/groupdocs_platform_cloud/models/disc_usage_response.rb +211 -0
  28. data/lib/groupdocs_platform_cloud/models/file.rb +253 -0
  29. data/lib/groupdocs_platform_cloud/models/file_exist.rb +207 -0
  30. data/lib/groupdocs_platform_cloud/models/file_exist_response.rb +211 -0
  31. data/lib/groupdocs_platform_cloud/models/file_response.rb +224 -0
  32. data/lib/groupdocs_platform_cloud/models/file_version.rb +276 -0
  33. data/lib/groupdocs_platform_cloud/models/file_versions_response.rb +213 -0
  34. data/lib/groupdocs_platform_cloud/models/folder_response.rb +208 -0
  35. data/lib/groupdocs_platform_cloud/models/heroku_request.rb +233 -0
  36. data/lib/groupdocs_platform_cloud/models/heroku_request_options.rb +188 -0
  37. data/lib/groupdocs_platform_cloud/models/move_file_response.rb +202 -0
  38. data/lib/groupdocs_platform_cloud/models/move_folder_response.rb +202 -0
  39. data/lib/groupdocs_platform_cloud/models/remove_file_response.rb +202 -0
  40. data/lib/groupdocs_platform_cloud/models/remove_folder_response.rb +202 -0
  41. data/lib/groupdocs_platform_cloud/models/saa_spose_response.rb +202 -0
  42. data/lib/groupdocs_platform_cloud/models/storage_exist_response.rb +216 -0
  43. data/lib/groupdocs_platform_cloud/models/user_usage_summary_response.rb +211 -0
  44. data/lib/groupdocs_platform_cloud/models/user_usage_summary_statistics.rb +291 -0
  45. data/lib/groupdocs_platform_cloud/version.rb +15 -0
  46. data/test/data/SampleExecuteTemplate.doc +0 -0
  47. data/test/data/SampleExecuteTemplateData.txt +49 -0
  48. data/test/data/SampleWordDocument.docx +0 -0
  49. data/test/data/buzz.png +0 -0
  50. data/test/data/testfile.txt +1 -0
  51. data/test/platform_tests.rb +144 -0
  52. metadata +156 -0
@@ -0,0 +1,572 @@
1
+ =begin
2
+ #Web API Swagger specification
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module GroupDocsPlatformCloud
16
+ class AppStatisticsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Get service statistics in HTML form.
24
+ #
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [File]
27
+ def app_statistics_get_statistics(opts = {})
28
+ data, _status_code, _headers = app_statistics_get_statistics_with_http_info(opts)
29
+ return data
30
+ end
31
+
32
+ # Get service statistics in HTML form.
33
+ #
34
+ # @param [Hash] opts the optional parameters
35
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
36
+ def app_statistics_get_statistics_with_http_info(opts = {})
37
+ if @api_client.config.debugging
38
+ @api_client.config.logger.debug "Calling API: AppStatisticsApi.app_statistics_get_statistics ..."
39
+ end
40
+ # resource path
41
+ local_var_path = "/statistics"
42
+
43
+ # query parameters
44
+ query_params = {}
45
+
46
+ # header parameters
47
+ header_params = {}
48
+ # HTTP header 'Accept' (if needed)
49
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
50
+ # HTTP header 'Content-Type'
51
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
52
+
53
+ # form parameters
54
+ form_params = {}
55
+
56
+ # http body (model)
57
+ post_body = nil
58
+ auth_names = []
59
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
60
+ :header_params => header_params,
61
+ :query_params => query_params,
62
+ :form_params => form_params,
63
+ :body => post_body,
64
+ :auth_names => auth_names,
65
+ :return_type => 'File')
66
+ if @api_client.config.debugging
67
+ @api_client.config.logger.debug "API called: AppStatisticsApi#app_statistics_get_statistics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
68
+ end
69
+ return data, status_code, headers
70
+ end
71
+
72
+ # Get API calls statistics.
73
+ #
74
+ # @param [Hash] opts the optional parameters
75
+ # @return [File]
76
+ def app_statistics_get_statistics_api(opts = {})
77
+ data, _status_code, _headers = app_statistics_get_statistics_api_with_http_info(opts)
78
+ return data
79
+ end
80
+
81
+ # Get API calls statistics.
82
+ #
83
+ # @param [Hash] opts the optional parameters
84
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
85
+ def app_statistics_get_statistics_api_with_http_info(opts = {})
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "Calling API: AppStatisticsApi.app_statistics_get_statistics_api ..."
88
+ end
89
+ # resource path
90
+ local_var_path = "/statistics/calls"
91
+
92
+ # query parameters
93
+ query_params = {}
94
+
95
+ # header parameters
96
+ header_params = {}
97
+ # HTTP header 'Accept' (if needed)
98
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
99
+ # HTTP header 'Content-Type'
100
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
101
+
102
+ # form parameters
103
+ form_params = {}
104
+
105
+ # http body (model)
106
+ post_body = nil
107
+ auth_names = []
108
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
109
+ :header_params => header_params,
110
+ :query_params => query_params,
111
+ :form_params => form_params,
112
+ :body => post_body,
113
+ :auth_names => auth_names,
114
+ :return_type => 'File')
115
+ if @api_client.config.debugging
116
+ @api_client.config.logger.debug "API called: AppStatisticsApi#app_statistics_get_statistics_api\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
117
+ end
118
+ return data, status_code, headers
119
+ end
120
+
121
+ # Get statistics for specific dates by hours.
122
+ #
123
+ # @param start_date The start date.
124
+ # @param [Hash] opts the optional parameters
125
+ # @option opts [String] :end_date The end date.
126
+ # @return [File]
127
+ def app_statistics_get_statistics_by_hours(start_date, opts = {})
128
+ data, _status_code, _headers = app_statistics_get_statistics_by_hours_with_http_info(start_date, opts)
129
+ return data
130
+ end
131
+
132
+ # Get statistics for specific dates by hours.
133
+ #
134
+ # @param start_date The start date.
135
+ # @param [Hash] opts the optional parameters
136
+ # @option opts [String] :end_date The end date.
137
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
138
+ def app_statistics_get_statistics_by_hours_with_http_info(start_date, opts = {})
139
+ if @api_client.config.debugging
140
+ @api_client.config.logger.debug "Calling API: AppStatisticsApi.app_statistics_get_statistics_by_hours ..."
141
+ end
142
+ # verify the required parameter 'start_date' is set
143
+ if @api_client.config.client_side_validation && start_date.nil?
144
+ fail ArgumentError, "Missing the required parameter 'start_date' when calling AppStatisticsApi.app_statistics_get_statistics_by_hours"
145
+ end
146
+ # resource path
147
+ local_var_path = "/statistics/hours"
148
+
149
+ # query parameters
150
+ query_params = {}
151
+ query_params[:'startDate'] = start_date
152
+ query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
153
+
154
+ # header parameters
155
+ header_params = {}
156
+ # HTTP header 'Accept' (if needed)
157
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
158
+ # HTTP header 'Content-Type'
159
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
160
+
161
+ # form parameters
162
+ form_params = {}
163
+
164
+ # http body (model)
165
+ post_body = nil
166
+ auth_names = []
167
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
168
+ :header_params => header_params,
169
+ :query_params => query_params,
170
+ :form_params => form_params,
171
+ :body => post_body,
172
+ :auth_names => auth_names,
173
+ :return_type => 'File')
174
+ if @api_client.config.debugging
175
+ @api_client.config.logger.debug "API called: AppStatisticsApi#app_statistics_get_statistics_by_hours\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
+ end
177
+ return data, status_code, headers
178
+ end
179
+
180
+ # Get statistics for last 30 days by hours.
181
+ #
182
+ # @param [Hash] opts the optional parameters
183
+ # @return [File]
184
+ def app_statistics_get_statistics_by_hours_for_last30_days(opts = {})
185
+ data, _status_code, _headers = app_statistics_get_statistics_by_hours_for_last30_days_with_http_info(opts)
186
+ return data
187
+ end
188
+
189
+ # Get statistics for last 30 days by hours.
190
+ #
191
+ # @param [Hash] opts the optional parameters
192
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
193
+ def app_statistics_get_statistics_by_hours_for_last30_days_with_http_info(opts = {})
194
+ if @api_client.config.debugging
195
+ @api_client.config.logger.debug "Calling API: AppStatisticsApi.app_statistics_get_statistics_by_hours_for_last30_days ..."
196
+ end
197
+ # resource path
198
+ local_var_path = "/statistics/hours/last30Days"
199
+
200
+ # query parameters
201
+ query_params = {}
202
+
203
+ # header parameters
204
+ header_params = {}
205
+ # HTTP header 'Accept' (if needed)
206
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
207
+ # HTTP header 'Content-Type'
208
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
209
+
210
+ # form parameters
211
+ form_params = {}
212
+
213
+ # http body (model)
214
+ post_body = nil
215
+ auth_names = []
216
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
217
+ :header_params => header_params,
218
+ :query_params => query_params,
219
+ :form_params => form_params,
220
+ :body => post_body,
221
+ :auth_names => auth_names,
222
+ :return_type => 'File')
223
+ if @api_client.config.debugging
224
+ @api_client.config.logger.debug "API called: AppStatisticsApi#app_statistics_get_statistics_by_hours_for_last30_days\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
225
+ end
226
+ return data, status_code, headers
227
+ end
228
+
229
+ # Get clients with overdraft statistics.
230
+ #
231
+ # @param [Hash] opts the optional parameters
232
+ # @return [File]
233
+ def app_statistics_get_statistics_current_users(opts = {})
234
+ data, _status_code, _headers = app_statistics_get_statistics_current_users_with_http_info(opts)
235
+ return data
236
+ end
237
+
238
+ # Get clients with overdraft statistics.
239
+ #
240
+ # @param [Hash] opts the optional parameters
241
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
242
+ def app_statistics_get_statistics_current_users_with_http_info(opts = {})
243
+ if @api_client.config.debugging
244
+ @api_client.config.logger.debug "Calling API: AppStatisticsApi.app_statistics_get_statistics_current_users ..."
245
+ end
246
+ # resource path
247
+ local_var_path = "/statistics/currentUsers"
248
+
249
+ # query parameters
250
+ query_params = {}
251
+
252
+ # header parameters
253
+ header_params = {}
254
+ # HTTP header 'Accept' (if needed)
255
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
256
+ # HTTP header 'Content-Type'
257
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
258
+
259
+ # form parameters
260
+ form_params = {}
261
+
262
+ # http body (model)
263
+ post_body = nil
264
+ auth_names = []
265
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
266
+ :header_params => header_params,
267
+ :query_params => query_params,
268
+ :form_params => form_params,
269
+ :body => post_body,
270
+ :auth_names => auth_names,
271
+ :return_type => 'File')
272
+ if @api_client.config.debugging
273
+ @api_client.config.logger.debug "API called: AppStatisticsApi#app_statistics_get_statistics_current_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
274
+ end
275
+ return data, status_code, headers
276
+ end
277
+
278
+ # Get last errors statistics.
279
+ #
280
+ # @param [Hash] opts the optional parameters
281
+ # @return [File]
282
+ def app_statistics_get_statistics_errors(opts = {})
283
+ data, _status_code, _headers = app_statistics_get_statistics_errors_with_http_info(opts)
284
+ return data
285
+ end
286
+
287
+ # Get last errors statistics.
288
+ #
289
+ # @param [Hash] opts the optional parameters
290
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
291
+ def app_statistics_get_statistics_errors_with_http_info(opts = {})
292
+ if @api_client.config.debugging
293
+ @api_client.config.logger.debug "Calling API: AppStatisticsApi.app_statistics_get_statistics_errors ..."
294
+ end
295
+ # resource path
296
+ local_var_path = "/statistics/errors"
297
+
298
+ # query parameters
299
+ query_params = {}
300
+
301
+ # header parameters
302
+ header_params = {}
303
+ # HTTP header 'Accept' (if needed)
304
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
305
+ # HTTP header 'Content-Type'
306
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
307
+
308
+ # form parameters
309
+ form_params = {}
310
+
311
+ # http body (model)
312
+ post_body = nil
313
+ auth_names = []
314
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
315
+ :header_params => header_params,
316
+ :query_params => query_params,
317
+ :form_params => form_params,
318
+ :body => post_body,
319
+ :auth_names => auth_names,
320
+ :return_type => 'File')
321
+ if @api_client.config.debugging
322
+ @api_client.config.logger.debug "API called: AppStatisticsApi#app_statistics_get_statistics_errors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
323
+ end
324
+ return data, status_code, headers
325
+ end
326
+
327
+ # Get free users statistics.
328
+ #
329
+ # @param [Hash] opts the optional parameters
330
+ # @return [File]
331
+ def app_statistics_get_statistics_free(opts = {})
332
+ data, _status_code, _headers = app_statistics_get_statistics_free_with_http_info(opts)
333
+ return data
334
+ end
335
+
336
+ # Get free users statistics.
337
+ #
338
+ # @param [Hash] opts the optional parameters
339
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
340
+ def app_statistics_get_statistics_free_with_http_info(opts = {})
341
+ if @api_client.config.debugging
342
+ @api_client.config.logger.debug "Calling API: AppStatisticsApi.app_statistics_get_statistics_free ..."
343
+ end
344
+ # resource path
345
+ local_var_path = "/statistics/free"
346
+
347
+ # query parameters
348
+ query_params = {}
349
+
350
+ # header parameters
351
+ header_params = {}
352
+ # HTTP header 'Accept' (if needed)
353
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
354
+ # HTTP header 'Content-Type'
355
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
356
+
357
+ # form parameters
358
+ form_params = {}
359
+
360
+ # http body (model)
361
+ post_body = nil
362
+ auth_names = []
363
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
364
+ :header_params => header_params,
365
+ :query_params => query_params,
366
+ :form_params => form_params,
367
+ :body => post_body,
368
+ :auth_names => auth_names,
369
+ :return_type => 'File')
370
+ if @api_client.config.debugging
371
+ @api_client.config.logger.debug "API called: AppStatisticsApi#app_statistics_get_statistics_free\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
372
+ end
373
+ return data, status_code, headers
374
+ end
375
+
376
+ # Get service statistics in HTML form like GroupDocs.
377
+ #
378
+ # @param [Hash] opts the optional parameters
379
+ # @return [File]
380
+ def app_statistics_get_statistics_like_gd(opts = {})
381
+ data, _status_code, _headers = app_statistics_get_statistics_like_gd_with_http_info(opts)
382
+ return data
383
+ end
384
+
385
+ # Get service statistics in HTML form like GroupDocs.
386
+ #
387
+ # @param [Hash] opts the optional parameters
388
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
389
+ def app_statistics_get_statistics_like_gd_with_http_info(opts = {})
390
+ if @api_client.config.debugging
391
+ @api_client.config.logger.debug "Calling API: AppStatisticsApi.app_statistics_get_statistics_like_gd ..."
392
+ end
393
+ # resource path
394
+ local_var_path = "/statistics/likeGD"
395
+
396
+ # query parameters
397
+ query_params = {}
398
+
399
+ # header parameters
400
+ header_params = {}
401
+ # HTTP header 'Accept' (if needed)
402
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
403
+ # HTTP header 'Content-Type'
404
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
405
+
406
+ # form parameters
407
+ form_params = {}
408
+
409
+ # http body (model)
410
+ post_body = nil
411
+ auth_names = []
412
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
413
+ :header_params => header_params,
414
+ :query_params => query_params,
415
+ :form_params => form_params,
416
+ :body => post_body,
417
+ :auth_names => auth_names,
418
+ :return_type => 'File')
419
+ if @api_client.config.debugging
420
+ @api_client.config.logger.debug "API called: AppStatisticsApi#app_statistics_get_statistics_like_gd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
+ end
422
+ return data, status_code, headers
423
+ end
424
+
425
+ # Get clients with overdraft statistics.
426
+ #
427
+ # @param [Hash] opts the optional parameters
428
+ # @return [File]
429
+ def app_statistics_get_statistics_overdraft(opts = {})
430
+ data, _status_code, _headers = app_statistics_get_statistics_overdraft_with_http_info(opts)
431
+ return data
432
+ end
433
+
434
+ # Get clients with overdraft statistics.
435
+ #
436
+ # @param [Hash] opts the optional parameters
437
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
438
+ def app_statistics_get_statistics_overdraft_with_http_info(opts = {})
439
+ if @api_client.config.debugging
440
+ @api_client.config.logger.debug "Calling API: AppStatisticsApi.app_statistics_get_statistics_overdraft ..."
441
+ end
442
+ # resource path
443
+ local_var_path = "/statistics/overdrafts"
444
+
445
+ # query parameters
446
+ query_params = {}
447
+
448
+ # header parameters
449
+ header_params = {}
450
+ # HTTP header 'Accept' (if needed)
451
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
452
+ # HTTP header 'Content-Type'
453
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
454
+
455
+ # form parameters
456
+ form_params = {}
457
+
458
+ # http body (model)
459
+ post_body = nil
460
+ auth_names = []
461
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
462
+ :header_params => header_params,
463
+ :query_params => query_params,
464
+ :form_params => form_params,
465
+ :body => post_body,
466
+ :auth_names => auth_names,
467
+ :return_type => 'File')
468
+ if @api_client.config.debugging
469
+ @api_client.config.logger.debug "API called: AppStatisticsApi#app_statistics_get_statistics_overdraft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
470
+ end
471
+ return data, status_code, headers
472
+ end
473
+
474
+ # Get paid clients statistics.
475
+ #
476
+ # @param [Hash] opts the optional parameters
477
+ # @return [File]
478
+ def app_statistics_get_statistics_paid(opts = {})
479
+ data, _status_code, _headers = app_statistics_get_statistics_paid_with_http_info(opts)
480
+ return data
481
+ end
482
+
483
+ # Get paid clients statistics.
484
+ #
485
+ # @param [Hash] opts the optional parameters
486
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
487
+ def app_statistics_get_statistics_paid_with_http_info(opts = {})
488
+ if @api_client.config.debugging
489
+ @api_client.config.logger.debug "Calling API: AppStatisticsApi.app_statistics_get_statistics_paid ..."
490
+ end
491
+ # resource path
492
+ local_var_path = "/statistics/paid"
493
+
494
+ # query parameters
495
+ query_params = {}
496
+
497
+ # header parameters
498
+ header_params = {}
499
+ # HTTP header 'Accept' (if needed)
500
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
501
+ # HTTP header 'Content-Type'
502
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
503
+
504
+ # form parameters
505
+ form_params = {}
506
+
507
+ # http body (model)
508
+ post_body = nil
509
+ auth_names = []
510
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
511
+ :header_params => header_params,
512
+ :query_params => query_params,
513
+ :form_params => form_params,
514
+ :body => post_body,
515
+ :auth_names => auth_names,
516
+ :return_type => 'File')
517
+ if @api_client.config.debugging
518
+ @api_client.config.logger.debug "API called: AppStatisticsApi#app_statistics_get_statistics_paid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
519
+ end
520
+ return data, status_code, headers
521
+ end
522
+
523
+ # Get users with plans statistics.
524
+ #
525
+ # @param [Hash] opts the optional parameters
526
+ # @return [File]
527
+ def app_statistics_get_statistics_plans(opts = {})
528
+ data, _status_code, _headers = app_statistics_get_statistics_plans_with_http_info(opts)
529
+ return data
530
+ end
531
+
532
+ # Get users with plans statistics.
533
+ #
534
+ # @param [Hash] opts the optional parameters
535
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
536
+ def app_statistics_get_statistics_plans_with_http_info(opts = {})
537
+ if @api_client.config.debugging
538
+ @api_client.config.logger.debug "Calling API: AppStatisticsApi.app_statistics_get_statistics_plans ..."
539
+ end
540
+ # resource path
541
+ local_var_path = "/statistics/plans"
542
+
543
+ # query parameters
544
+ query_params = {}
545
+
546
+ # header parameters
547
+ header_params = {}
548
+ # HTTP header 'Accept' (if needed)
549
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
550
+ # HTTP header 'Content-Type'
551
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
552
+
553
+ # form parameters
554
+ form_params = {}
555
+
556
+ # http body (model)
557
+ post_body = nil
558
+ auth_names = []
559
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
560
+ :header_params => header_params,
561
+ :query_params => query_params,
562
+ :form_params => form_params,
563
+ :body => post_body,
564
+ :auth_names => auth_names,
565
+ :return_type => 'File')
566
+ if @api_client.config.debugging
567
+ @api_client.config.logger.debug "API called: AppStatisticsApi#app_statistics_get_statistics_plans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
568
+ end
569
+ return data, status_code, headers
570
+ end
571
+ end
572
+ end