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,10 @@
1
+ # Aimastering::LibraryAudioLike
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | Audio analysis id | [optional]
7
+ **library_audio_id** | **Integer** | Audio id | [optional]
8
+ **user_id** | **Integer** | User id | [optional]
9
+
10
+
@@ -0,0 +1,35 @@
1
+ # Aimastering::Mastering
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | | [optional]
7
+ **user_id** | **Integer** | | [optional]
8
+ **input_audio_id** | **Integer** | | [optional]
9
+ **output_audio_id** | **Integer** | | [optional]
10
+ **output_video_id** | **Integer** | | [optional]
11
+ **reference_audio_id** | **Integer** | | [optional]
12
+ **mode** | **String** | | [optional]
13
+ **status** | **String** | | [optional]
14
+ **failure_reason** | **String** | | [optional]
15
+ **target_loudness** | **Float** | | [optional]
16
+ **output_format** | **String** | | [optional]
17
+ **preset** | **String** | | [optional]
18
+ **bit_depth** | **Integer** | | [optional]
19
+ **sample_rate** | **Integer** | | [optional]
20
+ **review_comment** | **String** | | [optional]
21
+ **review_score** | **Float** | | [optional]
22
+ **mastering_matching_level** | **Float** | | [optional]
23
+ **progression** | **Float** | | [optional]
24
+ **bass_preservation** | **BOOLEAN** | | [optional]
25
+ **mastering** | **BOOLEAN** | | [optional]
26
+ **retry_count** | **Integer** | | [optional]
27
+ **mastering_reverb** | **BOOLEAN** | | [optional]
28
+ **mastering_reverb_gain** | **Float** | | [optional]
29
+ **low_cut_freq** | **Float** | | [optional]
30
+ **high_cut_freq** | **Float** | | [optional]
31
+ **expire_at** | **DateTime** | | [optional]
32
+ **created_at** | **DateTime** | | [optional]
33
+ **updated_at** | **DateTime** | | [optional]
34
+
35
+
@@ -0,0 +1,482 @@
1
+ # Aimastering::MasteringApi
2
+
3
+ All URIs are relative to *https://aimastering.com:443/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**cancel_mastering**](MasteringApi.md#cancel_mastering) | **PUT** /masterings/{id}/cancel | Cancel a mastering by id.
8
+ [**create_mastering**](MasteringApi.md#create_mastering) | **POST** /masterings | Create a new mastering.
9
+ [**delete_mastering**](MasteringApi.md#delete_mastering) | **DELETE** /masterings/{id} | Delete mastering.
10
+ [**get_mastering**](MasteringApi.md#get_mastering) | **GET** /masterings/{id} | Get a mastering by id.
11
+ [**get_mastering_unlock_product**](MasteringApi.md#get_mastering_unlock_product) | **GET** /masterings/{id}/unlock_product | Review a mastering by id.
12
+ [**list_masterings**](MasteringApi.md#list_masterings) | **GET** /masterings | Get all accessable masterings.
13
+ [**publish_mastering**](MasteringApi.md#publish_mastering) | **POST** /masterings/{id}/publish | Publish a mastering by id.
14
+ [**review_mastering**](MasteringApi.md#review_mastering) | **PUT** /masterings/{id}/review | Review a mastering by id.
15
+
16
+
17
+ # **cancel_mastering**
18
+ > Mastering cancel_mastering(id)
19
+
20
+ Cancel a mastering by id.
21
+
22
+ ### Example
23
+ ```ruby
24
+ # load the gem
25
+ require 'aimastering'
26
+ # setup authorization
27
+ Aimastering.configure do |config|
28
+ # Configure API key authorization: bearer
29
+ config.api_key['Authorization'] = 'YOUR API KEY'
30
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
31
+ #config.api_key_prefix['Authorization'] = 'Bearer'
32
+ end
33
+
34
+ api_instance = Aimastering::MasteringApi.new
35
+
36
+ id = 56 # Integer | Mastering id
37
+
38
+
39
+ begin
40
+ #Cancel a mastering by id.
41
+ result = api_instance.cancel_mastering(id)
42
+ p result
43
+ rescue Aimastering::ApiError => e
44
+ puts "Exception when calling MasteringApi->cancel_mastering: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+ Name | Type | Description | Notes
51
+ ------------- | ------------- | ------------- | -------------
52
+ **id** | **Integer**| Mastering id |
53
+
54
+ ### Return type
55
+
56
+ [**Mastering**](Mastering.md)
57
+
58
+ ### Authorization
59
+
60
+ [bearer](../README.md#bearer)
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: Not defined
65
+ - **Accept**: application/json
66
+
67
+
68
+
69
+ # **create_mastering**
70
+ > Mastering create_mastering(input_audio_id, opts)
71
+
72
+ Create a new mastering.
73
+
74
+ ### Example
75
+ ```ruby
76
+ # load the gem
77
+ require 'aimastering'
78
+ # setup authorization
79
+ Aimastering.configure do |config|
80
+ # Configure API key authorization: bearer
81
+ config.api_key['Authorization'] = 'YOUR API KEY'
82
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
83
+ #config.api_key_prefix['Authorization'] = 'Bearer'
84
+ end
85
+
86
+ api_instance = Aimastering::MasteringApi.new
87
+
88
+ input_audio_id = 56 # Integer | Input audio id
89
+
90
+ opts = {
91
+ mode: "default", # String | Mode
92
+ bass_preservation: false, # BOOLEAN | This parameter represents if the bass preservation is enabled.
93
+ mastering: true, # BOOLEAN | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is \"default\" or \"custom\".
94
+ preset: "general", # String | This parameter is effective only when the mode is \"preset\".
95
+ target_loudness: -5.0, # Float | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is \"custom\".
96
+ mastering_matching_level: 0.5, # Float | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is \"custom\" and the mastering is enabled.
97
+ mastering_reverb: false, # BOOLEAN | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is \"custom\" and the mastering is enabled.
98
+ mastering_reverb_gain: -36.0, # Float | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is \"custom\" and the mastering is \"true\" and the mastering_reverb is \"true\".
99
+ reference_audio_id: 56, # Integer | Reference audio id. This parameter is effective only when the mode is \"custom\" and the mastering is enabled.
100
+ low_cut_freq: 20.0, # Float | This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is \"custom\".
101
+ high_cut_freq: 20000.0, # Float | This parameter represents the target loudness of the output audio in Hz. This parameter is effective only when the mode is \"custom\".
102
+ sample_rate: 44100, # Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is \"custom\".
103
+ bit_depth: 16, # Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is \"custom\".
104
+ output_format: "wav", # String | This parameter represents the format of the output audio. This parameter is effective only when the mode is \"custom\".
105
+ for_preview: false, # BOOLEAN | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).
106
+ start_at: 0.0, # Float | Partial mastering start at.
107
+ end_at: -1.0, # Float | Partial mastering end at.
108
+ is_bakuage: false # BOOLEAN | Deprecated. For backward compatibility.
109
+ }
110
+
111
+ begin
112
+ #Create a new mastering.
113
+ result = api_instance.create_mastering(input_audio_id, opts)
114
+ p result
115
+ rescue Aimastering::ApiError => e
116
+ puts "Exception when calling MasteringApi->create_mastering: #{e}"
117
+ end
118
+ ```
119
+
120
+ ### Parameters
121
+
122
+ Name | Type | Description | Notes
123
+ ------------- | ------------- | ------------- | -------------
124
+ **input_audio_id** | **Integer**| Input audio id |
125
+ **mode** | **String**| Mode | [optional] [default to default]
126
+ **bass_preservation** | **BOOLEAN**| This parameter represents if the bass preservation is enabled. | [optional] [default to false]
127
+ **mastering** | **BOOLEAN**| This parameter represents if the mastering is enabled. This parameter is effective only when the mode is \"default\" or \"custom\". | [optional] [default to true]
128
+ **preset** | **String**| This parameter is effective only when the mode is \"preset\". | [optional] [default to general]
129
+ **target_loudness** | **Float**| This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is \"custom\". | [optional] [default to -5.0]
130
+ **mastering_matching_level** | **Float**| This parameter represents the mastering reference matching level. This parameter is effective only when the mode is \"custom\" and the mastering is enabled. | [optional] [default to 0.5]
131
+ **mastering_reverb** | **BOOLEAN**| This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is \"custom\" and the mastering is enabled. | [optional] [default to false]
132
+ **mastering_reverb_gain** | **Float**| This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is \"custom\" and the mastering is \"true\" and the mastering_reverb is \"true\". | [optional] [default to -36.0]
133
+ **reference_audio_id** | **Integer**| Reference audio id. This parameter is effective only when the mode is \"custom\" and the mastering is enabled. | [optional]
134
+ **low_cut_freq** | **Float**| This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is \"custom\". | [optional] [default to 20.0]
135
+ **high_cut_freq** | **Float**| This parameter represents the target loudness of the output audio in Hz. This parameter is effective only when the mode is \"custom\". | [optional] [default to 20000.0]
136
+ **sample_rate** | **Integer**| This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is \"custom\". | [optional] [default to 44100]
137
+ **bit_depth** | **Integer**| This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is \"custom\". | [optional] [default to 16]
138
+ **output_format** | **String**| This parameter represents the format of the output audio. This parameter is effective only when the mode is \"custom\". | [optional] [default to wav]
139
+ **for_preview** | **BOOLEAN**| If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime). | [optional] [default to false]
140
+ **start_at** | **Float**| Partial mastering start at. | [optional] [default to 0.0]
141
+ **end_at** | **Float**| Partial mastering end at. | [optional] [default to -1.0]
142
+ **is_bakuage** | **BOOLEAN**| Deprecated. For backward compatibility. | [optional] [default to false]
143
+
144
+ ### Return type
145
+
146
+ [**Mastering**](Mastering.md)
147
+
148
+ ### Authorization
149
+
150
+ [bearer](../README.md#bearer)
151
+
152
+ ### HTTP request headers
153
+
154
+ - **Content-Type**: multipart/form-data
155
+ - **Accept**: application/json
156
+
157
+
158
+
159
+ # **delete_mastering**
160
+ > Mastering delete_mastering(id)
161
+
162
+ Delete mastering.
163
+
164
+ ### Example
165
+ ```ruby
166
+ # load the gem
167
+ require 'aimastering'
168
+ # setup authorization
169
+ Aimastering.configure do |config|
170
+ # Configure API key authorization: bearer
171
+ config.api_key['Authorization'] = 'YOUR API KEY'
172
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
173
+ #config.api_key_prefix['Authorization'] = 'Bearer'
174
+ end
175
+
176
+ api_instance = Aimastering::MasteringApi.new
177
+
178
+ id = 56 # Integer | Mastering id
179
+
180
+
181
+ begin
182
+ #Delete mastering.
183
+ result = api_instance.delete_mastering(id)
184
+ p result
185
+ rescue Aimastering::ApiError => e
186
+ puts "Exception when calling MasteringApi->delete_mastering: #{e}"
187
+ end
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+ Name | Type | Description | Notes
193
+ ------------- | ------------- | ------------- | -------------
194
+ **id** | **Integer**| Mastering id |
195
+
196
+ ### Return type
197
+
198
+ [**Mastering**](Mastering.md)
199
+
200
+ ### Authorization
201
+
202
+ [bearer](../README.md#bearer)
203
+
204
+ ### HTTP request headers
205
+
206
+ - **Content-Type**: Not defined
207
+ - **Accept**: application/json
208
+
209
+
210
+
211
+ # **get_mastering**
212
+ > Mastering get_mastering(id)
213
+
214
+ Get a mastering by id.
215
+
216
+ ### Example
217
+ ```ruby
218
+ # load the gem
219
+ require 'aimastering'
220
+ # setup authorization
221
+ Aimastering.configure do |config|
222
+ # Configure API key authorization: bearer
223
+ config.api_key['Authorization'] = 'YOUR API KEY'
224
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
225
+ #config.api_key_prefix['Authorization'] = 'Bearer'
226
+ end
227
+
228
+ api_instance = Aimastering::MasteringApi.new
229
+
230
+ id = 56 # Integer | Mastering id
231
+
232
+
233
+ begin
234
+ #Get a mastering by id.
235
+ result = api_instance.get_mastering(id)
236
+ p result
237
+ rescue Aimastering::ApiError => e
238
+ puts "Exception when calling MasteringApi->get_mastering: #{e}"
239
+ end
240
+ ```
241
+
242
+ ### Parameters
243
+
244
+ Name | Type | Description | Notes
245
+ ------------- | ------------- | ------------- | -------------
246
+ **id** | **Integer**| Mastering id |
247
+
248
+ ### Return type
249
+
250
+ [**Mastering**](Mastering.md)
251
+
252
+ ### Authorization
253
+
254
+ [bearer](../README.md#bearer)
255
+
256
+ ### HTTP request headers
257
+
258
+ - **Content-Type**: Not defined
259
+ - **Accept**: application/json
260
+
261
+
262
+
263
+ # **get_mastering_unlock_product**
264
+ > Mastering get_mastering_unlock_product(id)
265
+
266
+ Review a mastering by id.
267
+
268
+ ### Example
269
+ ```ruby
270
+ # load the gem
271
+ require 'aimastering'
272
+ # setup authorization
273
+ Aimastering.configure do |config|
274
+ # Configure API key authorization: bearer
275
+ config.api_key['Authorization'] = 'YOUR API KEY'
276
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
277
+ #config.api_key_prefix['Authorization'] = 'Bearer'
278
+ end
279
+
280
+ api_instance = Aimastering::MasteringApi.new
281
+
282
+ id = 56 # Integer | Mastering id
283
+
284
+
285
+ begin
286
+ #Review a mastering by id.
287
+ result = api_instance.get_mastering_unlock_product(id)
288
+ p result
289
+ rescue Aimastering::ApiError => e
290
+ puts "Exception when calling MasteringApi->get_mastering_unlock_product: #{e}"
291
+ end
292
+ ```
293
+
294
+ ### Parameters
295
+
296
+ Name | Type | Description | Notes
297
+ ------------- | ------------- | ------------- | -------------
298
+ **id** | **Integer**| Mastering id |
299
+
300
+ ### Return type
301
+
302
+ [**Mastering**](Mastering.md)
303
+
304
+ ### Authorization
305
+
306
+ [bearer](../README.md#bearer)
307
+
308
+ ### HTTP request headers
309
+
310
+ - **Content-Type**: Not defined
311
+ - **Accept**: application/json
312
+
313
+
314
+
315
+ # **list_masterings**
316
+ > Array<Mastering> list_masterings
317
+
318
+ Get all accessable masterings.
319
+
320
+ ### Example
321
+ ```ruby
322
+ # load the gem
323
+ require 'aimastering'
324
+ # setup authorization
325
+ Aimastering.configure do |config|
326
+ # Configure API key authorization: bearer
327
+ config.api_key['Authorization'] = 'YOUR API KEY'
328
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
329
+ #config.api_key_prefix['Authorization'] = 'Bearer'
330
+ end
331
+
332
+ api_instance = Aimastering::MasteringApi.new
333
+
334
+ begin
335
+ #Get all accessable masterings.
336
+ result = api_instance.list_masterings
337
+ p result
338
+ rescue Aimastering::ApiError => e
339
+ puts "Exception when calling MasteringApi->list_masterings: #{e}"
340
+ end
341
+ ```
342
+
343
+ ### Parameters
344
+ This endpoint does not need any parameter.
345
+
346
+ ### Return type
347
+
348
+ [**Array<Mastering>**](Mastering.md)
349
+
350
+ ### Authorization
351
+
352
+ [bearer](../README.md#bearer)
353
+
354
+ ### HTTP request headers
355
+
356
+ - **Content-Type**: Not defined
357
+ - **Accept**: application/json
358
+
359
+
360
+
361
+ # **publish_mastering**
362
+ > Mastering publish_mastering(id, access_token, message, opts)
363
+
364
+ Publish a mastering by id.
365
+
366
+ ### Example
367
+ ```ruby
368
+ # load the gem
369
+ require 'aimastering'
370
+ # setup authorization
371
+ Aimastering.configure do |config|
372
+ # Configure API key authorization: bearer
373
+ config.api_key['Authorization'] = 'YOUR API KEY'
374
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
375
+ #config.api_key_prefix['Authorization'] = 'Bearer'
376
+ end
377
+
378
+ api_instance = Aimastering::MasteringApi.new
379
+
380
+ id = 56 # Integer | Mastering id
381
+
382
+ access_token = "access_token_example" # String | This parameter represents if the access token of the publishment service API.
383
+
384
+ message = "message_example" # String | This parameter represents the publishment message.
385
+
386
+ opts = {
387
+ service: "service_example", # String | This parameter represents the publishment service.
388
+ access_token_secret: "access_token_secret_example" # String | This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is \"twitter\".
389
+ }
390
+
391
+ begin
392
+ #Publish a mastering by id.
393
+ result = api_instance.publish_mastering(id, access_token, message, opts)
394
+ p result
395
+ rescue Aimastering::ApiError => e
396
+ puts "Exception when calling MasteringApi->publish_mastering: #{e}"
397
+ end
398
+ ```
399
+
400
+ ### Parameters
401
+
402
+ Name | Type | Description | Notes
403
+ ------------- | ------------- | ------------- | -------------
404
+ **id** | **Integer**| Mastering id |
405
+ **access_token** | **String**| This parameter represents if the access token of the publishment service API. |
406
+ **message** | **String**| This parameter represents the publishment message. |
407
+ **service** | **String**| This parameter represents the publishment service. | [optional]
408
+ **access_token_secret** | **String**| This parameter represents the access token secret of the publishment service API. This parameter is effective only when the service is \"twitter\". | [optional]
409
+
410
+ ### Return type
411
+
412
+ [**Mastering**](Mastering.md)
413
+
414
+ ### Authorization
415
+
416
+ [bearer](../README.md#bearer)
417
+
418
+ ### HTTP request headers
419
+
420
+ - **Content-Type**: multipart/form-data
421
+ - **Accept**: application/json
422
+
423
+
424
+
425
+ # **review_mastering**
426
+ > Mastering review_mastering(id, opts)
427
+
428
+ Review a mastering by id.
429
+
430
+ ### Example
431
+ ```ruby
432
+ # load the gem
433
+ require 'aimastering'
434
+ # setup authorization
435
+ Aimastering.configure do |config|
436
+ # Configure API key authorization: bearer
437
+ config.api_key['Authorization'] = 'YOUR API KEY'
438
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
439
+ #config.api_key_prefix['Authorization'] = 'Bearer'
440
+ end
441
+
442
+ api_instance = Aimastering::MasteringApi.new
443
+
444
+ id = 56 # Integer | Mastering id
445
+
446
+ opts = {
447
+ review_comment: "review_comment_example", # String | This parameter represents the review comment.
448
+ review_score: 8.14 # Float | This parameter represents the review score.
449
+ }
450
+
451
+ begin
452
+ #Review a mastering by id.
453
+ result = api_instance.review_mastering(id, opts)
454
+ p result
455
+ rescue Aimastering::ApiError => e
456
+ puts "Exception when calling MasteringApi->review_mastering: #{e}"
457
+ end
458
+ ```
459
+
460
+ ### Parameters
461
+
462
+ Name | Type | Description | Notes
463
+ ------------- | ------------- | ------------- | -------------
464
+ **id** | **Integer**| Mastering id |
465
+ **review_comment** | **String**| This parameter represents the review comment. | [optional]
466
+ **review_score** | **Float**| This parameter represents the review score. | [optional]
467
+
468
+ ### Return type
469
+
470
+ [**Mastering**](Mastering.md)
471
+
472
+ ### Authorization
473
+
474
+ [bearer](../README.md#bearer)
475
+
476
+ ### HTTP request headers
477
+
478
+ - **Content-Type**: multipart/form-data
479
+ - **Accept**: application/json
480
+
481
+
482
+