aimastering 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +167 -0
  4. data/Rakefile +8 -0
  5. data/aimastering.gemspec +45 -0
  6. data/docs/AccessToken.md +8 -0
  7. data/docs/AccessTokenApi.md +55 -0
  8. data/docs/AnonymizedMastering.md +29 -0
  9. data/docs/Audio.md +29 -0
  10. data/docs/AudioAnalysis.md +10 -0
  11. data/docs/AudioApi.md +374 -0
  12. data/docs/AudioDownloadToken.md +9 -0
  13. data/docs/Config.md +10 -0
  14. data/docs/ConfigApi.md +55 -0
  15. data/docs/ConfigAuth0.md +10 -0
  16. data/docs/ConfigPaypal.md +9 -0
  17. data/docs/ConfigStripe.md +8 -0
  18. data/docs/DateTime.md +7 -0
  19. data/docs/ExternalSearchApi.md +64 -0
  20. data/docs/ExternalSearchResult.md +9 -0
  21. data/docs/ExternalSearchResultItunes.md +18 -0
  22. data/docs/ExternalSearchResultYoutube.md +15 -0
  23. data/docs/JWT.md +7 -0
  24. data/docs/Kpi.md +7 -0
  25. data/docs/LibraryAudio.md +38 -0
  26. data/docs/LibraryAudioAnalysis.md +10 -0
  27. data/docs/LibraryAudioApi.md +378 -0
  28. data/docs/LibraryAudioLike.md +10 -0
  29. data/docs/Mastering.md +35 -0
  30. data/docs/MasteringApi.md +482 -0
  31. data/docs/Payment.md +14 -0
  32. data/docs/PaymentApi.md +224 -0
  33. data/docs/PaymentCustomer.md +11 -0
  34. data/docs/PaymentCustomerApi.md +55 -0
  35. data/docs/Plan.md +12 -0
  36. data/docs/PlanApi.md +55 -0
  37. data/docs/StatisticsApi.md +102 -0
  38. data/docs/Subscription.md +17 -0
  39. data/docs/SubscriptionApi.md +273 -0
  40. data/docs/User.md +14 -0
  41. data/docs/UserApi.md +111 -0
  42. data/docs/Video.md +13 -0
  43. data/docs/VideoApi.md +267 -0
  44. data/docs/VideoDownloadToken.md +9 -0
  45. data/git_push.sh +55 -0
  46. data/lib/aimastering.rb +77 -0
  47. data/lib/aimastering/api/access_token_api.rb +70 -0
  48. data/lib/aimastering/api/audio_api.rb +404 -0
  49. data/lib/aimastering/api/config_api.rb +70 -0
  50. data/lib/aimastering/api/external_search_api.rb +84 -0
  51. data/lib/aimastering/api/library_audio_api.rb +416 -0
  52. data/lib/aimastering/api/mastering_api.rb +596 -0
  53. data/lib/aimastering/api/payment_api.rb +263 -0
  54. data/lib/aimastering/api/payment_customer_api.rb +70 -0
  55. data/lib/aimastering/api/plan_api.rb +70 -0
  56. data/lib/aimastering/api/statistics_api.rb +117 -0
  57. data/lib/aimastering/api/subscription_api.rb +311 -0
  58. data/lib/aimastering/api/user_api.rb +125 -0
  59. data/lib/aimastering/api/video_api.rb +295 -0
  60. data/lib/aimastering/api_client.rb +389 -0
  61. data/lib/aimastering/api_error.rb +38 -0
  62. data/lib/aimastering/configuration.rb +209 -0
  63. data/lib/aimastering/models/access_token.rb +188 -0
  64. data/lib/aimastering/models/anonymized_mastering.rb +520 -0
  65. data/lib/aimastering/models/audio.rb +377 -0
  66. data/lib/aimastering/models/audio_analysis.rb +209 -0
  67. data/lib/aimastering/models/audio_download_token.rb +197 -0
  68. data/lib/aimastering/models/config.rb +206 -0
  69. data/lib/aimastering/models/config_auth0.rb +206 -0
  70. data/lib/aimastering/models/config_paypal.rb +197 -0
  71. data/lib/aimastering/models/config_stripe.rb +188 -0
  72. data/lib/aimastering/models/date_time.rb +179 -0
  73. data/lib/aimastering/models/external_search_result.rb +201 -0
  74. data/lib/aimastering/models/external_search_result_itunes.rb +278 -0
  75. data/lib/aimastering/models/external_search_result_youtube.rb +251 -0
  76. data/lib/aimastering/models/jwt.rb +179 -0
  77. data/lib/aimastering/models/kpi.rb +179 -0
  78. data/lib/aimastering/models/library_audio.rb +458 -0
  79. data/lib/aimastering/models/library_audio_analysis.rb +209 -0
  80. data/lib/aimastering/models/library_audio_like.rb +209 -0
  81. data/lib/aimastering/models/mastering.rb +587 -0
  82. data/lib/aimastering/models/payment.rb +275 -0
  83. data/lib/aimastering/models/payment_customer.rb +215 -0
  84. data/lib/aimastering/models/plan.rb +269 -0
  85. data/lib/aimastering/models/subscription.rb +302 -0
  86. data/lib/aimastering/models/user.rb +275 -0
  87. data/lib/aimastering/models/video.rb +233 -0
  88. data/lib/aimastering/models/video_download_token.rb +197 -0
  89. data/lib/aimastering/version.rb +15 -0
  90. data/spec/api/access_token_api_spec.rb +46 -0
  91. data/spec/api/audio_api_spec.rb +118 -0
  92. data/spec/api/config_api_spec.rb +46 -0
  93. data/spec/api/external_search_api_spec.rb +48 -0
  94. data/spec/api/library_audio_api_spec.rb +119 -0
  95. data/spec/api/mastering_api_spec.rb +154 -0
  96. data/spec/api/payment_api_spec.rb +85 -0
  97. data/spec/api/payment_customer_api_spec.rb +46 -0
  98. data/spec/api/plan_api_spec.rb +46 -0
  99. data/spec/api/statistics_api_spec.rb +57 -0
  100. data/spec/api/subscription_api_spec.rb +96 -0
  101. data/spec/api/user_api_spec.rb +59 -0
  102. data/spec/api/video_api_spec.rb +94 -0
  103. data/spec/api_client_spec.rb +226 -0
  104. data/spec/configuration_spec.rb +42 -0
  105. data/spec/models/access_token_spec.rb +42 -0
  106. data/spec/models/anonymized_mastering_spec.rb +192 -0
  107. data/spec/models/audio_analysis_spec.rb +54 -0
  108. data/spec/models/audio_download_token_spec.rb +48 -0
  109. data/spec/models/audio_spec.rb +168 -0
  110. data/spec/models/config_auth0_spec.rb +54 -0
  111. data/spec/models/config_paypal_spec.rb +48 -0
  112. data/spec/models/config_spec.rb +54 -0
  113. data/spec/models/config_stripe_spec.rb +42 -0
  114. data/spec/models/date_time_spec.rb +36 -0
  115. data/spec/models/external_search_result_itunes_spec.rb +102 -0
  116. data/spec/models/external_search_result_spec.rb +48 -0
  117. data/spec/models/external_search_result_youtube_spec.rb +84 -0
  118. data/spec/models/jwt_spec.rb +36 -0
  119. data/spec/models/kpi_spec.rb +36 -0
  120. data/spec/models/library_audio_analysis_spec.rb +54 -0
  121. data/spec/models/library_audio_like_spec.rb +54 -0
  122. data/spec/models/library_audio_spec.rb +222 -0
  123. data/spec/models/mastering_spec.rb +224 -0
  124. data/spec/models/payment_customer_spec.rb +60 -0
  125. data/spec/models/payment_spec.rb +82 -0
  126. data/spec/models/plan_spec.rb +74 -0
  127. data/spec/models/subscription_spec.rb +100 -0
  128. data/spec/models/user_spec.rb +82 -0
  129. data/spec/models/video_download_token_spec.rb +48 -0
  130. data/spec/models/video_spec.rb +72 -0
  131. data/spec/spec_helper.rb +111 -0
  132. metadata +397 -0
@@ -0,0 +1,263 @@
1
+ =begin
2
+ #AI Mastering API
3
+
4
+ #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: aimasteringcom@gmail.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module Aimastering
16
+ class PaymentApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Create a new payment.
24
+ #
25
+ # @param product_token This parameter represents the product token.
26
+ # @param service This parameter represents the payment message.
27
+ # @param [Hash] opts the optional parameters
28
+ # @option opts [String] :token This parameter represents the card token. This parameter is effective only when the service is \"stripe\".
29
+ # @return [Payment]
30
+ def create_payment(product_token, service, opts = {})
31
+ data, _status_code, _headers = create_payment_with_http_info(product_token, service, opts)
32
+ return data
33
+ end
34
+
35
+ # Create a new payment.
36
+ #
37
+ # @param product_token This parameter represents the product token.
38
+ # @param service This parameter represents the payment message.
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :token This parameter represents the card token. This parameter is effective only when the service is \"stripe\".
41
+ # @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
42
+ def create_payment_with_http_info(product_token, service, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug "Calling API: PaymentApi.create_payment ..."
45
+ end
46
+ # verify the required parameter 'product_token' is set
47
+ if @api_client.config.client_side_validation && product_token.nil?
48
+ fail ArgumentError, "Missing the required parameter 'product_token' when calling PaymentApi.create_payment"
49
+ end
50
+ # verify the required parameter 'service' is set
51
+ if @api_client.config.client_side_validation && service.nil?
52
+ fail ArgumentError, "Missing the required parameter 'service' when calling PaymentApi.create_payment"
53
+ end
54
+ # verify enum value
55
+ if @api_client.config.client_side_validation && !['paypal', 'stripe'].include?(service)
56
+ fail ArgumentError, "invalid value for 'service', must be one of paypal, stripe"
57
+ end
58
+ # resource path
59
+ local_var_path = "/payments"
60
+
61
+ # query parameters
62
+ query_params = {}
63
+
64
+ # header parameters
65
+ header_params = {}
66
+ # HTTP header 'Accept' (if needed)
67
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
68
+ # HTTP header 'Content-Type'
69
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
70
+
71
+ # form parameters
72
+ form_params = {}
73
+ form_params["product_token"] = product_token
74
+ form_params["service"] = service
75
+ form_params["token"] = opts[:'token'] if !opts[:'token'].nil?
76
+
77
+ # http body (model)
78
+ post_body = nil
79
+ auth_names = ['bearer']
80
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
81
+ :header_params => header_params,
82
+ :query_params => query_params,
83
+ :form_params => form_params,
84
+ :body => post_body,
85
+ :auth_names => auth_names,
86
+ :return_type => 'Payment')
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: PaymentApi#create_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+
93
+ # Execute a payment by id.
94
+ #
95
+ # @param id Payment id
96
+ # @param payer_id This parameter represents the card token. This parameter is effective only when the service is \&quot;paypal\&quot;.
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Payment]
99
+ def execute_payment(id, payer_id, opts = {})
100
+ data, _status_code, _headers = execute_payment_with_http_info(id, payer_id, opts)
101
+ return data
102
+ end
103
+
104
+ # Execute a payment by id.
105
+ #
106
+ # @param id Payment id
107
+ # @param payer_id This parameter represents the card token. This parameter is effective only when the service is \&quot;paypal\&quot;.
108
+ # @param [Hash] opts the optional parameters
109
+ # @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
110
+ def execute_payment_with_http_info(id, payer_id, opts = {})
111
+ if @api_client.config.debugging
112
+ @api_client.config.logger.debug "Calling API: PaymentApi.execute_payment ..."
113
+ end
114
+ # verify the required parameter 'id' is set
115
+ if @api_client.config.client_side_validation && id.nil?
116
+ fail ArgumentError, "Missing the required parameter 'id' when calling PaymentApi.execute_payment"
117
+ end
118
+ if @api_client.config.client_side_validation && id < 1
119
+ fail ArgumentError, 'invalid value for "id" when calling PaymentApi.execute_payment, must be greater than or equal to 1.'
120
+ end
121
+
122
+ # verify the required parameter 'payer_id' is set
123
+ if @api_client.config.client_side_validation && payer_id.nil?
124
+ fail ArgumentError, "Missing the required parameter 'payer_id' when calling PaymentApi.execute_payment"
125
+ end
126
+ # resource path
127
+ local_var_path = "/payments/{id}/execute".sub('{' + 'id' + '}', id.to_s)
128
+
129
+ # query parameters
130
+ query_params = {}
131
+
132
+ # header parameters
133
+ header_params = {}
134
+ # HTTP header 'Accept' (if needed)
135
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
136
+ # HTTP header 'Content-Type'
137
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
138
+
139
+ # form parameters
140
+ form_params = {}
141
+ form_params["payer_id"] = payer_id
142
+
143
+ # http body (model)
144
+ post_body = nil
145
+ auth_names = ['bearer']
146
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
147
+ :header_params => header_params,
148
+ :query_params => query_params,
149
+ :form_params => form_params,
150
+ :body => post_body,
151
+ :auth_names => auth_names,
152
+ :return_type => 'Payment')
153
+ if @api_client.config.debugging
154
+ @api_client.config.logger.debug "API called: PaymentApi#execute_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
155
+ end
156
+ return data, status_code, headers
157
+ end
158
+
159
+ # Get a payment by id.
160
+ #
161
+ # @param id Payment id
162
+ # @param [Hash] opts the optional parameters
163
+ # @return [Payment]
164
+ def get_payment(id, opts = {})
165
+ data, _status_code, _headers = get_payment_with_http_info(id, opts)
166
+ return data
167
+ end
168
+
169
+ # Get a payment by id.
170
+ #
171
+ # @param id Payment id
172
+ # @param [Hash] opts the optional parameters
173
+ # @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
174
+ def get_payment_with_http_info(id, opts = {})
175
+ if @api_client.config.debugging
176
+ @api_client.config.logger.debug "Calling API: PaymentApi.get_payment ..."
177
+ end
178
+ # verify the required parameter 'id' is set
179
+ if @api_client.config.client_side_validation && id.nil?
180
+ fail ArgumentError, "Missing the required parameter 'id' when calling PaymentApi.get_payment"
181
+ end
182
+ if @api_client.config.client_side_validation && id < 1
183
+ fail ArgumentError, 'invalid value for "id" when calling PaymentApi.get_payment, must be greater than or equal to 1.'
184
+ end
185
+
186
+ # resource path
187
+ local_var_path = "/payments/{id}".sub('{' + 'id' + '}', id.to_s)
188
+
189
+ # query parameters
190
+ query_params = {}
191
+
192
+ # header parameters
193
+ header_params = {}
194
+ # HTTP header 'Accept' (if needed)
195
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
196
+
197
+ # form parameters
198
+ form_params = {}
199
+
200
+ # http body (model)
201
+ post_body = nil
202
+ auth_names = ['bearer']
203
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
204
+ :header_params => header_params,
205
+ :query_params => query_params,
206
+ :form_params => form_params,
207
+ :body => post_body,
208
+ :auth_names => auth_names,
209
+ :return_type => 'Payment')
210
+ if @api_client.config.debugging
211
+ @api_client.config.logger.debug "API called: PaymentApi#get_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
212
+ end
213
+ return data, status_code, headers
214
+ end
215
+
216
+ # Get all accessable payments.
217
+ #
218
+ # @param [Hash] opts the optional parameters
219
+ # @return [Array<Payment>]
220
+ def list_payments(opts = {})
221
+ data, _status_code, _headers = list_payments_with_http_info(opts)
222
+ return data
223
+ end
224
+
225
+ # Get all accessable payments.
226
+ #
227
+ # @param [Hash] opts the optional parameters
228
+ # @return [Array<(Array<Payment>, Fixnum, Hash)>] Array<Payment> data, response status code and response headers
229
+ def list_payments_with_http_info(opts = {})
230
+ if @api_client.config.debugging
231
+ @api_client.config.logger.debug "Calling API: PaymentApi.list_payments ..."
232
+ end
233
+ # resource path
234
+ local_var_path = "/payments"
235
+
236
+ # query parameters
237
+ query_params = {}
238
+
239
+ # header parameters
240
+ header_params = {}
241
+ # HTTP header 'Accept' (if needed)
242
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
243
+
244
+ # form parameters
245
+ form_params = {}
246
+
247
+ # http body (model)
248
+ post_body = nil
249
+ auth_names = ['bearer']
250
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
251
+ :header_params => header_params,
252
+ :query_params => query_params,
253
+ :form_params => form_params,
254
+ :body => post_body,
255
+ :auth_names => auth_names,
256
+ :return_type => 'Array<Payment>')
257
+ if @api_client.config.debugging
258
+ @api_client.config.logger.debug "API called: PaymentApi#list_payments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
259
+ end
260
+ return data, status_code, headers
261
+ end
262
+ end
263
+ end
@@ -0,0 +1,70 @@
1
+ =begin
2
+ #AI Mastering API
3
+
4
+ #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: aimasteringcom@gmail.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module Aimastering
16
+ class PaymentCustomerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Get a default payment customer.
24
+ #
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [Array<PaymentCustomer>]
27
+ def get_default_payment_customer(opts = {})
28
+ data, _status_code, _headers = get_default_payment_customer_with_http_info(opts)
29
+ return data
30
+ end
31
+
32
+ # Get a default payment customer.
33
+ #
34
+ # @param [Hash] opts the optional parameters
35
+ # @return [Array<(Array<PaymentCustomer>, Fixnum, Hash)>] Array<PaymentCustomer> data, response status code and response headers
36
+ def get_default_payment_customer_with_http_info(opts = {})
37
+ if @api_client.config.debugging
38
+ @api_client.config.logger.debug "Calling API: PaymentCustomerApi.get_default_payment_customer ..."
39
+ end
40
+ # resource path
41
+ local_var_path = "/payment_customers/default"
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
+
51
+ # form parameters
52
+ form_params = {}
53
+
54
+ # http body (model)
55
+ post_body = nil
56
+ auth_names = ['bearer']
57
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
58
+ :header_params => header_params,
59
+ :query_params => query_params,
60
+ :form_params => form_params,
61
+ :body => post_body,
62
+ :auth_names => auth_names,
63
+ :return_type => 'Array<PaymentCustomer>')
64
+ if @api_client.config.debugging
65
+ @api_client.config.logger.debug "API called: PaymentCustomerApi#get_default_payment_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
66
+ end
67
+ return data, status_code, headers
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,70 @@
1
+ =begin
2
+ #AI Mastering API
3
+
4
+ #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: aimasteringcom@gmail.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module Aimastering
16
+ class PlanApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Get all accessable plans.
24
+ #
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [Array<Plan>]
27
+ def list_plans(opts = {})
28
+ data, _status_code, _headers = list_plans_with_http_info(opts)
29
+ return data
30
+ end
31
+
32
+ # Get all accessable plans.
33
+ #
34
+ # @param [Hash] opts the optional parameters
35
+ # @return [Array<(Array<Plan>, Fixnum, Hash)>] Array<Plan> data, response status code and response headers
36
+ def list_plans_with_http_info(opts = {})
37
+ if @api_client.config.debugging
38
+ @api_client.config.logger.debug "Calling API: PlanApi.list_plans ..."
39
+ end
40
+ # resource path
41
+ local_var_path = "/plans"
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
+
51
+ # form parameters
52
+ form_params = {}
53
+
54
+ # http body (model)
55
+ post_body = nil
56
+ auth_names = ['bearer']
57
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
58
+ :header_params => header_params,
59
+ :query_params => query_params,
60
+ :form_params => form_params,
61
+ :body => post_body,
62
+ :auth_names => auth_names,
63
+ :return_type => 'Array<Plan>')
64
+ if @api_client.config.debugging
65
+ @api_client.config.logger.debug "API called: PlanApi#list_plans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
66
+ end
67
+ return data, status_code, headers
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,117 @@
1
+ =begin
2
+ #AI Mastering API
3
+
4
+ #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: aimasteringcom@gmail.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module Aimastering
16
+ class StatisticsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Get anonymized masterings.
24
+ #
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [Array<AnonymizedMastering>]
27
+ def list_anonymized_masterings(opts = {})
28
+ data, _status_code, _headers = list_anonymized_masterings_with_http_info(opts)
29
+ return data
30
+ end
31
+
32
+ # Get anonymized masterings.
33
+ #
34
+ # @param [Hash] opts the optional parameters
35
+ # @return [Array<(Array<AnonymizedMastering>, Fixnum, Hash)>] Array<AnonymizedMastering> data, response status code and response headers
36
+ def list_anonymized_masterings_with_http_info(opts = {})
37
+ if @api_client.config.debugging
38
+ @api_client.config.logger.debug "Calling API: StatisticsApi.list_anonymized_masterings ..."
39
+ end
40
+ # resource path
41
+ local_var_path = "/statistics/anonymized_masterings"
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
+
51
+ # form parameters
52
+ form_params = {}
53
+
54
+ # http body (model)
55
+ post_body = nil
56
+ auth_names = ['bearer']
57
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
58
+ :header_params => header_params,
59
+ :query_params => query_params,
60
+ :form_params => form_params,
61
+ :body => post_body,
62
+ :auth_names => auth_names,
63
+ :return_type => 'Array<AnonymizedMastering>')
64
+ if @api_client.config.debugging
65
+ @api_client.config.logger.debug "API called: StatisticsApi#list_anonymized_masterings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
66
+ end
67
+ return data, status_code, headers
68
+ end
69
+
70
+ # Get KPIs.
71
+ #
72
+ # @param [Hash] opts the optional parameters
73
+ # @return [Kpi]
74
+ def list_kpis(opts = {})
75
+ data, _status_code, _headers = list_kpis_with_http_info(opts)
76
+ return data
77
+ end
78
+
79
+ # Get KPIs.
80
+ #
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [Array<(Kpi, Fixnum, Hash)>] Kpi data, response status code and response headers
83
+ def list_kpis_with_http_info(opts = {})
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "Calling API: StatisticsApi.list_kpis ..."
86
+ end
87
+ # resource path
88
+ local_var_path = "/statistics/kpis"
89
+
90
+ # query parameters
91
+ query_params = {}
92
+
93
+ # header parameters
94
+ header_params = {}
95
+ # HTTP header 'Accept' (if needed)
96
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
97
+
98
+ # form parameters
99
+ form_params = {}
100
+
101
+ # http body (model)
102
+ post_body = nil
103
+ auth_names = ['bearer']
104
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
105
+ :header_params => header_params,
106
+ :query_params => query_params,
107
+ :form_params => form_params,
108
+ :body => post_body,
109
+ :auth_names => auth_names,
110
+ :return_type => 'Kpi')
111
+ if @api_client.config.debugging
112
+ @api_client.config.logger.debug "API called: StatisticsApi#list_kpis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
113
+ end
114
+ return data, status_code, headers
115
+ end
116
+ end
117
+ end