aimastering 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +167 -0
- data/Rakefile +8 -0
- data/aimastering.gemspec +45 -0
- data/docs/AccessToken.md +8 -0
- data/docs/AccessTokenApi.md +55 -0
- data/docs/AnonymizedMastering.md +29 -0
- data/docs/Audio.md +29 -0
- data/docs/AudioAnalysis.md +10 -0
- data/docs/AudioApi.md +374 -0
- data/docs/AudioDownloadToken.md +9 -0
- data/docs/Config.md +10 -0
- data/docs/ConfigApi.md +55 -0
- data/docs/ConfigAuth0.md +10 -0
- data/docs/ConfigPaypal.md +9 -0
- data/docs/ConfigStripe.md +8 -0
- data/docs/DateTime.md +7 -0
- data/docs/ExternalSearchApi.md +64 -0
- data/docs/ExternalSearchResult.md +9 -0
- data/docs/ExternalSearchResultItunes.md +18 -0
- data/docs/ExternalSearchResultYoutube.md +15 -0
- data/docs/JWT.md +7 -0
- data/docs/Kpi.md +7 -0
- data/docs/LibraryAudio.md +38 -0
- data/docs/LibraryAudioAnalysis.md +10 -0
- data/docs/LibraryAudioApi.md +378 -0
- data/docs/LibraryAudioLike.md +10 -0
- data/docs/Mastering.md +35 -0
- data/docs/MasteringApi.md +482 -0
- data/docs/Payment.md +14 -0
- data/docs/PaymentApi.md +224 -0
- data/docs/PaymentCustomer.md +11 -0
- data/docs/PaymentCustomerApi.md +55 -0
- data/docs/Plan.md +12 -0
- data/docs/PlanApi.md +55 -0
- data/docs/StatisticsApi.md +102 -0
- data/docs/Subscription.md +17 -0
- data/docs/SubscriptionApi.md +273 -0
- data/docs/User.md +14 -0
- data/docs/UserApi.md +111 -0
- data/docs/Video.md +13 -0
- data/docs/VideoApi.md +267 -0
- data/docs/VideoDownloadToken.md +9 -0
- data/git_push.sh +55 -0
- data/lib/aimastering.rb +77 -0
- data/lib/aimastering/api/access_token_api.rb +70 -0
- data/lib/aimastering/api/audio_api.rb +404 -0
- data/lib/aimastering/api/config_api.rb +70 -0
- data/lib/aimastering/api/external_search_api.rb +84 -0
- data/lib/aimastering/api/library_audio_api.rb +416 -0
- data/lib/aimastering/api/mastering_api.rb +596 -0
- data/lib/aimastering/api/payment_api.rb +263 -0
- data/lib/aimastering/api/payment_customer_api.rb +70 -0
- data/lib/aimastering/api/plan_api.rb +70 -0
- data/lib/aimastering/api/statistics_api.rb +117 -0
- data/lib/aimastering/api/subscription_api.rb +311 -0
- data/lib/aimastering/api/user_api.rb +125 -0
- data/lib/aimastering/api/video_api.rb +295 -0
- data/lib/aimastering/api_client.rb +389 -0
- data/lib/aimastering/api_error.rb +38 -0
- data/lib/aimastering/configuration.rb +209 -0
- data/lib/aimastering/models/access_token.rb +188 -0
- data/lib/aimastering/models/anonymized_mastering.rb +520 -0
- data/lib/aimastering/models/audio.rb +377 -0
- data/lib/aimastering/models/audio_analysis.rb +209 -0
- data/lib/aimastering/models/audio_download_token.rb +197 -0
- data/lib/aimastering/models/config.rb +206 -0
- data/lib/aimastering/models/config_auth0.rb +206 -0
- data/lib/aimastering/models/config_paypal.rb +197 -0
- data/lib/aimastering/models/config_stripe.rb +188 -0
- data/lib/aimastering/models/date_time.rb +179 -0
- data/lib/aimastering/models/external_search_result.rb +201 -0
- data/lib/aimastering/models/external_search_result_itunes.rb +278 -0
- data/lib/aimastering/models/external_search_result_youtube.rb +251 -0
- data/lib/aimastering/models/jwt.rb +179 -0
- data/lib/aimastering/models/kpi.rb +179 -0
- data/lib/aimastering/models/library_audio.rb +458 -0
- data/lib/aimastering/models/library_audio_analysis.rb +209 -0
- data/lib/aimastering/models/library_audio_like.rb +209 -0
- data/lib/aimastering/models/mastering.rb +587 -0
- data/lib/aimastering/models/payment.rb +275 -0
- data/lib/aimastering/models/payment_customer.rb +215 -0
- data/lib/aimastering/models/plan.rb +269 -0
- data/lib/aimastering/models/subscription.rb +302 -0
- data/lib/aimastering/models/user.rb +275 -0
- data/lib/aimastering/models/video.rb +233 -0
- data/lib/aimastering/models/video_download_token.rb +197 -0
- data/lib/aimastering/version.rb +15 -0
- data/spec/api/access_token_api_spec.rb +46 -0
- data/spec/api/audio_api_spec.rb +118 -0
- data/spec/api/config_api_spec.rb +46 -0
- data/spec/api/external_search_api_spec.rb +48 -0
- data/spec/api/library_audio_api_spec.rb +119 -0
- data/spec/api/mastering_api_spec.rb +154 -0
- data/spec/api/payment_api_spec.rb +85 -0
- data/spec/api/payment_customer_api_spec.rb +46 -0
- data/spec/api/plan_api_spec.rb +46 -0
- data/spec/api/statistics_api_spec.rb +57 -0
- data/spec/api/subscription_api_spec.rb +96 -0
- data/spec/api/user_api_spec.rb +59 -0
- data/spec/api/video_api_spec.rb +94 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/access_token_spec.rb +42 -0
- data/spec/models/anonymized_mastering_spec.rb +192 -0
- data/spec/models/audio_analysis_spec.rb +54 -0
- data/spec/models/audio_download_token_spec.rb +48 -0
- data/spec/models/audio_spec.rb +168 -0
- data/spec/models/config_auth0_spec.rb +54 -0
- data/spec/models/config_paypal_spec.rb +48 -0
- data/spec/models/config_spec.rb +54 -0
- data/spec/models/config_stripe_spec.rb +42 -0
- data/spec/models/date_time_spec.rb +36 -0
- data/spec/models/external_search_result_itunes_spec.rb +102 -0
- data/spec/models/external_search_result_spec.rb +48 -0
- data/spec/models/external_search_result_youtube_spec.rb +84 -0
- data/spec/models/jwt_spec.rb +36 -0
- data/spec/models/kpi_spec.rb +36 -0
- data/spec/models/library_audio_analysis_spec.rb +54 -0
- data/spec/models/library_audio_like_spec.rb +54 -0
- data/spec/models/library_audio_spec.rb +222 -0
- data/spec/models/mastering_spec.rb +224 -0
- data/spec/models/payment_customer_spec.rb +60 -0
- data/spec/models/payment_spec.rb +82 -0
- data/spec/models/plan_spec.rb +74 -0
- data/spec/models/subscription_spec.rb +100 -0
- data/spec/models/user_spec.rb +82 -0
- data/spec/models/video_download_token_spec.rb +48 -0
- data/spec/models/video_spec.rb +72 -0
- data/spec/spec_helper.rb +111 -0
- metadata +397 -0
data/docs/Payment.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Aimastering::Payment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | | [optional]
|
7
|
+
**service** | **String** | | [optional]
|
8
|
+
**product_given** | **BOOLEAN** | | [optional]
|
9
|
+
**product** | **Object** | | [optional]
|
10
|
+
**transaction_id** | **String** | | [optional]
|
11
|
+
**transaction_detail** | **Object** | | [optional]
|
12
|
+
**created_at** | **DateTime** | | [optional]
|
13
|
+
|
14
|
+
|
data/docs/PaymentApi.md
ADDED
@@ -0,0 +1,224 @@
|
|
1
|
+
# Aimastering::PaymentApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://aimastering.com:443/api*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_payment**](PaymentApi.md#create_payment) | **POST** /payments | Create a new payment.
|
8
|
+
[**execute_payment**](PaymentApi.md#execute_payment) | **PUT** /payments/{id}/execute | Execute a payment by id.
|
9
|
+
[**get_payment**](PaymentApi.md#get_payment) | **GET** /payments/{id} | Get a payment by id.
|
10
|
+
[**list_payments**](PaymentApi.md#list_payments) | **GET** /payments | Get all accessable payments.
|
11
|
+
|
12
|
+
|
13
|
+
# **create_payment**
|
14
|
+
> Payment create_payment(product_token, service, opts)
|
15
|
+
|
16
|
+
Create a new payment.
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'aimastering'
|
22
|
+
# setup authorization
|
23
|
+
Aimastering.configure do |config|
|
24
|
+
# Configure API key authorization: bearer
|
25
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
26
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = Aimastering::PaymentApi.new
|
31
|
+
|
32
|
+
product_token = "product_token_example" # String | This parameter represents the product token.
|
33
|
+
|
34
|
+
service = "service_example" # String | This parameter represents the payment message.
|
35
|
+
|
36
|
+
opts = {
|
37
|
+
token: "token_example" # String | This parameter represents the card token. This parameter is effective only when the service is \"stripe\".
|
38
|
+
}
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Create a new payment.
|
42
|
+
result = api_instance.create_payment(product_token, service, opts)
|
43
|
+
p result
|
44
|
+
rescue Aimastering::ApiError => e
|
45
|
+
puts "Exception when calling PaymentApi->create_payment: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**product_token** | **String**| This parameter represents the product token. |
|
54
|
+
**service** | **String**| This parameter represents the payment message. |
|
55
|
+
**token** | **String**| This parameter represents the card token. This parameter is effective only when the service is \"stripe\". | [optional]
|
56
|
+
|
57
|
+
### Return type
|
58
|
+
|
59
|
+
[**Payment**](Payment.md)
|
60
|
+
|
61
|
+
### Authorization
|
62
|
+
|
63
|
+
[bearer](../README.md#bearer)
|
64
|
+
|
65
|
+
### HTTP request headers
|
66
|
+
|
67
|
+
- **Content-Type**: multipart/form-data
|
68
|
+
- **Accept**: application/json
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
# **execute_payment**
|
73
|
+
> Payment execute_payment(id, payer_id)
|
74
|
+
|
75
|
+
Execute a payment by id.
|
76
|
+
|
77
|
+
### Example
|
78
|
+
```ruby
|
79
|
+
# load the gem
|
80
|
+
require 'aimastering'
|
81
|
+
# setup authorization
|
82
|
+
Aimastering.configure do |config|
|
83
|
+
# Configure API key authorization: bearer
|
84
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
85
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
86
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = Aimastering::PaymentApi.new
|
90
|
+
|
91
|
+
id = 56 # Integer | Payment id
|
92
|
+
|
93
|
+
payer_id = "payer_id_example" # String | This parameter represents the card token. This parameter is effective only when the service is \"paypal\".
|
94
|
+
|
95
|
+
|
96
|
+
begin
|
97
|
+
#Execute a payment by id.
|
98
|
+
result = api_instance.execute_payment(id, payer_id)
|
99
|
+
p result
|
100
|
+
rescue Aimastering::ApiError => e
|
101
|
+
puts "Exception when calling PaymentApi->execute_payment: #{e}"
|
102
|
+
end
|
103
|
+
```
|
104
|
+
|
105
|
+
### Parameters
|
106
|
+
|
107
|
+
Name | Type | Description | Notes
|
108
|
+
------------- | ------------- | ------------- | -------------
|
109
|
+
**id** | **Integer**| Payment id |
|
110
|
+
**payer_id** | **String**| This parameter represents the card token. This parameter is effective only when the service is \"paypal\". |
|
111
|
+
|
112
|
+
### Return type
|
113
|
+
|
114
|
+
[**Payment**](Payment.md)
|
115
|
+
|
116
|
+
### Authorization
|
117
|
+
|
118
|
+
[bearer](../README.md#bearer)
|
119
|
+
|
120
|
+
### HTTP request headers
|
121
|
+
|
122
|
+
- **Content-Type**: multipart/form-data
|
123
|
+
- **Accept**: application/json
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
# **get_payment**
|
128
|
+
> Payment get_payment(id)
|
129
|
+
|
130
|
+
Get a payment by id.
|
131
|
+
|
132
|
+
### Example
|
133
|
+
```ruby
|
134
|
+
# load the gem
|
135
|
+
require 'aimastering'
|
136
|
+
# setup authorization
|
137
|
+
Aimastering.configure do |config|
|
138
|
+
# Configure API key authorization: bearer
|
139
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
140
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
141
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
142
|
+
end
|
143
|
+
|
144
|
+
api_instance = Aimastering::PaymentApi.new
|
145
|
+
|
146
|
+
id = 56 # Integer | Payment id
|
147
|
+
|
148
|
+
|
149
|
+
begin
|
150
|
+
#Get a payment by id.
|
151
|
+
result = api_instance.get_payment(id)
|
152
|
+
p result
|
153
|
+
rescue Aimastering::ApiError => e
|
154
|
+
puts "Exception when calling PaymentApi->get_payment: #{e}"
|
155
|
+
end
|
156
|
+
```
|
157
|
+
|
158
|
+
### Parameters
|
159
|
+
|
160
|
+
Name | Type | Description | Notes
|
161
|
+
------------- | ------------- | ------------- | -------------
|
162
|
+
**id** | **Integer**| Payment id |
|
163
|
+
|
164
|
+
### Return type
|
165
|
+
|
166
|
+
[**Payment**](Payment.md)
|
167
|
+
|
168
|
+
### Authorization
|
169
|
+
|
170
|
+
[bearer](../README.md#bearer)
|
171
|
+
|
172
|
+
### HTTP request headers
|
173
|
+
|
174
|
+
- **Content-Type**: Not defined
|
175
|
+
- **Accept**: application/json
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
# **list_payments**
|
180
|
+
> Array<Payment> list_payments
|
181
|
+
|
182
|
+
Get all accessable payments.
|
183
|
+
|
184
|
+
### Example
|
185
|
+
```ruby
|
186
|
+
# load the gem
|
187
|
+
require 'aimastering'
|
188
|
+
# setup authorization
|
189
|
+
Aimastering.configure do |config|
|
190
|
+
# Configure API key authorization: bearer
|
191
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
192
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
193
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
194
|
+
end
|
195
|
+
|
196
|
+
api_instance = Aimastering::PaymentApi.new
|
197
|
+
|
198
|
+
begin
|
199
|
+
#Get all accessable payments.
|
200
|
+
result = api_instance.list_payments
|
201
|
+
p result
|
202
|
+
rescue Aimastering::ApiError => e
|
203
|
+
puts "Exception when calling PaymentApi->list_payments: #{e}"
|
204
|
+
end
|
205
|
+
```
|
206
|
+
|
207
|
+
### Parameters
|
208
|
+
This endpoint does not need any parameter.
|
209
|
+
|
210
|
+
### Return type
|
211
|
+
|
212
|
+
[**Array<Payment>**](Payment.md)
|
213
|
+
|
214
|
+
### Authorization
|
215
|
+
|
216
|
+
[bearer](../README.md#bearer)
|
217
|
+
|
218
|
+
### HTTP request headers
|
219
|
+
|
220
|
+
- **Content-Type**: Not defined
|
221
|
+
- **Accept**: application/json
|
222
|
+
|
223
|
+
|
224
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Aimastering::PaymentCustomer
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | | [optional]
|
7
|
+
**payment_customer_detail** | **Object** | | [optional]
|
8
|
+
**created_at** | **DateTime** | | [optional]
|
9
|
+
**updated_at** | **DateTime** | | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Aimastering::PaymentCustomerApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://aimastering.com:443/api*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_default_payment_customer**](PaymentCustomerApi.md#get_default_payment_customer) | **GET** /payment_customers/default | Get a default payment customer.
|
8
|
+
|
9
|
+
|
10
|
+
# **get_default_payment_customer**
|
11
|
+
> Array<PaymentCustomer> get_default_payment_customer
|
12
|
+
|
13
|
+
Get a default payment customer.
|
14
|
+
|
15
|
+
### Example
|
16
|
+
```ruby
|
17
|
+
# load the gem
|
18
|
+
require 'aimastering'
|
19
|
+
# setup authorization
|
20
|
+
Aimastering.configure do |config|
|
21
|
+
# Configure API key authorization: bearer
|
22
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
23
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
24
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = Aimastering::PaymentCustomerApi.new
|
28
|
+
|
29
|
+
begin
|
30
|
+
#Get a default payment customer.
|
31
|
+
result = api_instance.get_default_payment_customer
|
32
|
+
p result
|
33
|
+
rescue Aimastering::ApiError => e
|
34
|
+
puts "Exception when calling PaymentCustomerApi->get_default_payment_customer: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
### Parameters
|
39
|
+
This endpoint does not need any parameter.
|
40
|
+
|
41
|
+
### Return type
|
42
|
+
|
43
|
+
[**Array<PaymentCustomer>**](PaymentCustomer.md)
|
44
|
+
|
45
|
+
### Authorization
|
46
|
+
|
47
|
+
[bearer](../README.md#bearer)
|
48
|
+
|
49
|
+
### HTTP request headers
|
50
|
+
|
51
|
+
- **Content-Type**: Not defined
|
52
|
+
- **Accept**: application/json
|
53
|
+
|
54
|
+
|
55
|
+
|
data/docs/Plan.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Aimastering::Plan
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**amount** | **Integer** | | [optional]
|
7
|
+
**currency** | **String** | | [optional]
|
8
|
+
**interval** | **String** | | [optional]
|
9
|
+
**name** | **String** | | [optional]
|
10
|
+
**stripe_plan_id** | **String** | | [optional]
|
11
|
+
|
12
|
+
|
data/docs/PlanApi.md
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# Aimastering::PlanApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://aimastering.com:443/api*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list_plans**](PlanApi.md#list_plans) | **GET** /plans | Get all accessable plans.
|
8
|
+
|
9
|
+
|
10
|
+
# **list_plans**
|
11
|
+
> Array<Plan> list_plans
|
12
|
+
|
13
|
+
Get all accessable plans.
|
14
|
+
|
15
|
+
### Example
|
16
|
+
```ruby
|
17
|
+
# load the gem
|
18
|
+
require 'aimastering'
|
19
|
+
# setup authorization
|
20
|
+
Aimastering.configure do |config|
|
21
|
+
# Configure API key authorization: bearer
|
22
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
23
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
24
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = Aimastering::PlanApi.new
|
28
|
+
|
29
|
+
begin
|
30
|
+
#Get all accessable plans.
|
31
|
+
result = api_instance.list_plans
|
32
|
+
p result
|
33
|
+
rescue Aimastering::ApiError => e
|
34
|
+
puts "Exception when calling PlanApi->list_plans: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
### Parameters
|
39
|
+
This endpoint does not need any parameter.
|
40
|
+
|
41
|
+
### Return type
|
42
|
+
|
43
|
+
[**Array<Plan>**](Plan.md)
|
44
|
+
|
45
|
+
### Authorization
|
46
|
+
|
47
|
+
[bearer](../README.md#bearer)
|
48
|
+
|
49
|
+
### HTTP request headers
|
50
|
+
|
51
|
+
- **Content-Type**: Not defined
|
52
|
+
- **Accept**: application/json
|
53
|
+
|
54
|
+
|
55
|
+
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# Aimastering::StatisticsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://aimastering.com:443/api*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list_anonymized_masterings**](StatisticsApi.md#list_anonymized_masterings) | **GET** /statistics/anonymized_masterings | Get anonymized masterings.
|
8
|
+
[**list_kpis**](StatisticsApi.md#list_kpis) | **GET** /statistics/kpis | Get KPIs.
|
9
|
+
|
10
|
+
|
11
|
+
# **list_anonymized_masterings**
|
12
|
+
> Array<AnonymizedMastering> list_anonymized_masterings
|
13
|
+
|
14
|
+
Get anonymized masterings.
|
15
|
+
|
16
|
+
### Example
|
17
|
+
```ruby
|
18
|
+
# load the gem
|
19
|
+
require 'aimastering'
|
20
|
+
# setup authorization
|
21
|
+
Aimastering.configure do |config|
|
22
|
+
# Configure API key authorization: bearer
|
23
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
24
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
25
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = Aimastering::StatisticsApi.new
|
29
|
+
|
30
|
+
begin
|
31
|
+
#Get anonymized masterings.
|
32
|
+
result = api_instance.list_anonymized_masterings
|
33
|
+
p result
|
34
|
+
rescue Aimastering::ApiError => e
|
35
|
+
puts "Exception when calling StatisticsApi->list_anonymized_masterings: #{e}"
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
### Parameters
|
40
|
+
This endpoint does not need any parameter.
|
41
|
+
|
42
|
+
### Return type
|
43
|
+
|
44
|
+
[**Array<AnonymizedMastering>**](AnonymizedMastering.md)
|
45
|
+
|
46
|
+
### Authorization
|
47
|
+
|
48
|
+
[bearer](../README.md#bearer)
|
49
|
+
|
50
|
+
### HTTP request headers
|
51
|
+
|
52
|
+
- **Content-Type**: Not defined
|
53
|
+
- **Accept**: application/json
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
# **list_kpis**
|
58
|
+
> Kpi list_kpis
|
59
|
+
|
60
|
+
Get KPIs.
|
61
|
+
|
62
|
+
### Example
|
63
|
+
```ruby
|
64
|
+
# load the gem
|
65
|
+
require 'aimastering'
|
66
|
+
# setup authorization
|
67
|
+
Aimastering.configure do |config|
|
68
|
+
# Configure API key authorization: bearer
|
69
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
70
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
71
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
72
|
+
end
|
73
|
+
|
74
|
+
api_instance = Aimastering::StatisticsApi.new
|
75
|
+
|
76
|
+
begin
|
77
|
+
#Get KPIs.
|
78
|
+
result = api_instance.list_kpis
|
79
|
+
p result
|
80
|
+
rescue Aimastering::ApiError => e
|
81
|
+
puts "Exception when calling StatisticsApi->list_kpis: #{e}"
|
82
|
+
end
|
83
|
+
```
|
84
|
+
|
85
|
+
### Parameters
|
86
|
+
This endpoint does not need any parameter.
|
87
|
+
|
88
|
+
### Return type
|
89
|
+
|
90
|
+
[**Kpi**](Kpi.md)
|
91
|
+
|
92
|
+
### Authorization
|
93
|
+
|
94
|
+
[bearer](../README.md#bearer)
|
95
|
+
|
96
|
+
### HTTP request headers
|
97
|
+
|
98
|
+
- **Content-Type**: Not defined
|
99
|
+
- **Accept**: application/json
|
100
|
+
|
101
|
+
|
102
|
+
|