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/Config.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Aimastering::Config
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**auth0** | [**ConfigAuth0**](ConfigAuth0.md) | | [optional]
|
7
|
+
**paypal** | [**ConfigPaypal**](ConfigPaypal.md) | | [optional]
|
8
|
+
**stripe** | [**ConfigStripe**](ConfigStripe.md) | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/ConfigApi.md
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# Aimastering::ConfigApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://aimastering.com:443/api*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_config**](ConfigApi.md#get_config) | **GET** /config | Get config.
|
8
|
+
|
9
|
+
|
10
|
+
# **get_config**
|
11
|
+
> Config get_config
|
12
|
+
|
13
|
+
Get config.
|
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::ConfigApi.new
|
28
|
+
|
29
|
+
begin
|
30
|
+
#Get config.
|
31
|
+
result = api_instance.get_config
|
32
|
+
p result
|
33
|
+
rescue Aimastering::ApiError => e
|
34
|
+
puts "Exception when calling ConfigApi->get_config: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
### Parameters
|
39
|
+
This endpoint does not need any parameter.
|
40
|
+
|
41
|
+
### Return type
|
42
|
+
|
43
|
+
[**Config**](Config.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/ConfigAuth0.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Aimastering::ConfigAuth0
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**audience** | **String** | | [optional]
|
7
|
+
**domain** | **String** | | [optional]
|
8
|
+
**client_id** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/DateTime.md
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# Aimastering::ExternalSearchApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://aimastering.com:443/api*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**search_external**](ExternalSearchApi.md#search_external) | **GET** /external_search | Search external music and get name, url, thumbnails, etc.
|
8
|
+
|
9
|
+
|
10
|
+
# **search_external**
|
11
|
+
> ExternalSearchResult search_external(query, country)
|
12
|
+
|
13
|
+
Search external music and get name, url, thumbnails, etc.
|
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::ExternalSearchApi.new
|
28
|
+
|
29
|
+
query = "query_example" # String | Search query
|
30
|
+
|
31
|
+
country = "country_example" # String | Country ex. US, JP, etc
|
32
|
+
|
33
|
+
|
34
|
+
begin
|
35
|
+
#Search external music and get name, url, thumbnails, etc.
|
36
|
+
result = api_instance.search_external(query, country)
|
37
|
+
p result
|
38
|
+
rescue Aimastering::ApiError => e
|
39
|
+
puts "Exception when calling ExternalSearchApi->search_external: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**query** | **String**| Search query |
|
48
|
+
**country** | **String**| Country ex. US, JP, etc |
|
49
|
+
|
50
|
+
### Return type
|
51
|
+
|
52
|
+
[**ExternalSearchResult**](ExternalSearchResult.md)
|
53
|
+
|
54
|
+
### Authorization
|
55
|
+
|
56
|
+
[bearer](../README.md#bearer)
|
57
|
+
|
58
|
+
### HTTP request headers
|
59
|
+
|
60
|
+
- **Content-Type**: Not defined
|
61
|
+
- **Accept**: application/json
|
62
|
+
|
63
|
+
|
64
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Aimastering::ExternalSearchResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**itunes** | [**Array<ExternalSearchResultItunes>**](ExternalSearchResultItunes.md) | | [optional]
|
7
|
+
**youtube** | [**Array<ExternalSearchResultYoutube>**](ExternalSearchResultYoutube.md) | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Aimastering::ExternalSearchResultItunes
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | | [optional]
|
7
|
+
**name** | **String** | | [optional]
|
8
|
+
**description** | **String** | | [optional]
|
9
|
+
**url** | **String** | | [optional]
|
10
|
+
**thumbnail_url** | **String** | | [optional]
|
11
|
+
**preview_url** | **String** | | [optional]
|
12
|
+
**album_name** | **String** | | [optional]
|
13
|
+
**album_url** | **String** | | [optional]
|
14
|
+
**artist_name** | **String** | | [optional]
|
15
|
+
**artist_url** | **String** | | [optional]
|
16
|
+
**track_number** | **Integer** | | [optional]
|
17
|
+
|
18
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Aimastering::ExternalSearchResultYoutube
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | | [optional]
|
7
|
+
**name** | **String** | | [optional]
|
8
|
+
**description** | **String** | | [optional]
|
9
|
+
**url** | **String** | | [optional]
|
10
|
+
**thumbnail_url** | **String** | | [optional]
|
11
|
+
**channel_id** | **String** | | [optional]
|
12
|
+
**channel_url** | **String** | | [optional]
|
13
|
+
**channel_name** | **String** | | [optional]
|
14
|
+
|
15
|
+
|
data/docs/JWT.md
ADDED
data/docs/Kpi.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# Aimastering::LibraryAudio
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | | [optional]
|
7
|
+
**user_id** | **Integer** | | [optional]
|
8
|
+
**name** | **String** | | [optional]
|
9
|
+
**album** | **String** | | [optional]
|
10
|
+
**album_artist** | **String** | | [optional]
|
11
|
+
**artist** | **String** | | [optional]
|
12
|
+
**genre** | **String** | | [optional]
|
13
|
+
**track** | **Integer** | | [optional]
|
14
|
+
**publisher** | **String** | | [optional]
|
15
|
+
**file_hash** | **String** | | [optional]
|
16
|
+
**size** | **Integer** | | [optional]
|
17
|
+
**status** | **String** | | [optional]
|
18
|
+
**failure_reason** | **String** | | [optional]
|
19
|
+
**probe_json** | **String** | | [optional]
|
20
|
+
**rms** | **Float** | | [optional]
|
21
|
+
**peak** | **Float** | | [optional]
|
22
|
+
**loudness** | **Float** | | [optional]
|
23
|
+
**dynamics** | **Float** | | [optional]
|
24
|
+
**sharpness** | **Float** | | [optional]
|
25
|
+
**space** | **Float** | | [optional]
|
26
|
+
**loudness_range** | **Float** | | [optional]
|
27
|
+
**drr** | **Float** | | [optional]
|
28
|
+
**sound_quality** | **Float** | | [optional]
|
29
|
+
**frames** | **Integer** | | [optional]
|
30
|
+
**sample_rate** | **Integer** | | [optional]
|
31
|
+
**channels** | **Integer** | | [optional]
|
32
|
+
**is_public** | **BOOLEAN** | | [optional]
|
33
|
+
**liked_by_self** | **BOOLEAN** | | [optional]
|
34
|
+
**like_count** | **Integer** | | [optional]
|
35
|
+
**created_at** | **DateTime** | | [optional]
|
36
|
+
**updated_at** | **DateTime** | | [optional]
|
37
|
+
|
38
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Aimastering::LibraryAudioAnalysis
|
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
|
+
**analysis** | **Object** | Audio analysis data. The schema changes frequently. | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,378 @@
|
|
1
|
+
# Aimastering::LibraryAudioApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://aimastering.com:443/api*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_library_audio**](LibraryAudioApi.md#create_library_audio) | **POST** /library_audios | Create a new library audio.
|
8
|
+
[**create_library_audio_like**](LibraryAudioApi.md#create_library_audio_like) | **POST** /library_audios/{id}/like | Create a new library audio like.
|
9
|
+
[**delete_library_audio**](LibraryAudioApi.md#delete_library_audio) | **DELETE** /library_audios/{id} | Delete library audio.
|
10
|
+
[**get_library_audio**](LibraryAudioApi.md#get_library_audio) | **GET** /library_audios/{id} | Get a library audio by id.
|
11
|
+
[**get_library_audio_analysis**](LibraryAudioApi.md#get_library_audio_analysis) | **GET** /library_audios/{id}/analysis | Get a library audio analysis by id.
|
12
|
+
[**list_library_audios**](LibraryAudioApi.md#list_library_audios) | **GET** /library_audios | Get all library audios accessable.
|
13
|
+
[**update_library_audio**](LibraryAudioApi.md#update_library_audio) | **PUT** /library_audios/{id} | Update library audio.
|
14
|
+
|
15
|
+
|
16
|
+
# **create_library_audio**
|
17
|
+
> LibraryAudio create_library_audio(opts)
|
18
|
+
|
19
|
+
Create a new library audio.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'aimastering'
|
25
|
+
# setup authorization
|
26
|
+
Aimastering.configure do |config|
|
27
|
+
# Configure API key authorization: bearer
|
28
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = Aimastering::LibraryAudioApi.new
|
34
|
+
|
35
|
+
opts = {
|
36
|
+
file: File.new("/path/to/file.txt") # File | The file to upload.
|
37
|
+
}
|
38
|
+
|
39
|
+
begin
|
40
|
+
#Create a new library audio.
|
41
|
+
result = api_instance.create_library_audio(opts)
|
42
|
+
p result
|
43
|
+
rescue Aimastering::ApiError => e
|
44
|
+
puts "Exception when calling LibraryAudioApi->create_library_audio: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**file** | **File**| The file to upload. | [optional]
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
[**LibraryAudio**](LibraryAudio.md)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[bearer](../README.md#bearer)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: multipart/form-data
|
65
|
+
- **Accept**: application/json
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# **create_library_audio_like**
|
70
|
+
> LibraryAudioLike create_library_audio_like(id)
|
71
|
+
|
72
|
+
Create a new library audio like.
|
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::LibraryAudioApi.new
|
87
|
+
|
88
|
+
id = 56 # Integer | Library audio id
|
89
|
+
|
90
|
+
|
91
|
+
begin
|
92
|
+
#Create a new library audio like.
|
93
|
+
result = api_instance.create_library_audio_like(id)
|
94
|
+
p result
|
95
|
+
rescue Aimastering::ApiError => e
|
96
|
+
puts "Exception when calling LibraryAudioApi->create_library_audio_like: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
Name | Type | Description | Notes
|
103
|
+
------------- | ------------- | ------------- | -------------
|
104
|
+
**id** | **Integer**| Library audio id |
|
105
|
+
|
106
|
+
### Return type
|
107
|
+
|
108
|
+
[**LibraryAudioLike**](LibraryAudioLike.md)
|
109
|
+
|
110
|
+
### Authorization
|
111
|
+
|
112
|
+
[bearer](../README.md#bearer)
|
113
|
+
|
114
|
+
### HTTP request headers
|
115
|
+
|
116
|
+
- **Content-Type**: multipart/form-data
|
117
|
+
- **Accept**: application/json
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
# **delete_library_audio**
|
122
|
+
> LibraryAudio delete_library_audio(id)
|
123
|
+
|
124
|
+
Delete library audio.
|
125
|
+
|
126
|
+
### Example
|
127
|
+
```ruby
|
128
|
+
# load the gem
|
129
|
+
require 'aimastering'
|
130
|
+
# setup authorization
|
131
|
+
Aimastering.configure do |config|
|
132
|
+
# Configure API key authorization: bearer
|
133
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
134
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
135
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
136
|
+
end
|
137
|
+
|
138
|
+
api_instance = Aimastering::LibraryAudioApi.new
|
139
|
+
|
140
|
+
id = 56 # Integer | Library audio id
|
141
|
+
|
142
|
+
|
143
|
+
begin
|
144
|
+
#Delete library audio.
|
145
|
+
result = api_instance.delete_library_audio(id)
|
146
|
+
p result
|
147
|
+
rescue Aimastering::ApiError => e
|
148
|
+
puts "Exception when calling LibraryAudioApi->delete_library_audio: #{e}"
|
149
|
+
end
|
150
|
+
```
|
151
|
+
|
152
|
+
### Parameters
|
153
|
+
|
154
|
+
Name | Type | Description | Notes
|
155
|
+
------------- | ------------- | ------------- | -------------
|
156
|
+
**id** | **Integer**| Library audio id |
|
157
|
+
|
158
|
+
### Return type
|
159
|
+
|
160
|
+
[**LibraryAudio**](LibraryAudio.md)
|
161
|
+
|
162
|
+
### Authorization
|
163
|
+
|
164
|
+
[bearer](../README.md#bearer)
|
165
|
+
|
166
|
+
### HTTP request headers
|
167
|
+
|
168
|
+
- **Content-Type**: multipart/form-data
|
169
|
+
- **Accept**: application/json
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
# **get_library_audio**
|
174
|
+
> LibraryAudio get_library_audio(id)
|
175
|
+
|
176
|
+
Get a library audio by id.
|
177
|
+
|
178
|
+
### Example
|
179
|
+
```ruby
|
180
|
+
# load the gem
|
181
|
+
require 'aimastering'
|
182
|
+
# setup authorization
|
183
|
+
Aimastering.configure do |config|
|
184
|
+
# Configure API key authorization: bearer
|
185
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
186
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
187
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
188
|
+
end
|
189
|
+
|
190
|
+
api_instance = Aimastering::LibraryAudioApi.new
|
191
|
+
|
192
|
+
id = 56 # Integer | Library audio id
|
193
|
+
|
194
|
+
|
195
|
+
begin
|
196
|
+
#Get a library audio by id.
|
197
|
+
result = api_instance.get_library_audio(id)
|
198
|
+
p result
|
199
|
+
rescue Aimastering::ApiError => e
|
200
|
+
puts "Exception when calling LibraryAudioApi->get_library_audio: #{e}"
|
201
|
+
end
|
202
|
+
```
|
203
|
+
|
204
|
+
### Parameters
|
205
|
+
|
206
|
+
Name | Type | Description | Notes
|
207
|
+
------------- | ------------- | ------------- | -------------
|
208
|
+
**id** | **Integer**| Library audio id |
|
209
|
+
|
210
|
+
### Return type
|
211
|
+
|
212
|
+
[**LibraryAudio**](LibraryAudio.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
|
+
|
225
|
+
# **get_library_audio_analysis**
|
226
|
+
> LibraryAudioAnalysis get_library_audio_analysis(id)
|
227
|
+
|
228
|
+
Get a library audio analysis by id.
|
229
|
+
|
230
|
+
### Example
|
231
|
+
```ruby
|
232
|
+
# load the gem
|
233
|
+
require 'aimastering'
|
234
|
+
# setup authorization
|
235
|
+
Aimastering.configure do |config|
|
236
|
+
# Configure API key authorization: bearer
|
237
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
238
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
239
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
240
|
+
end
|
241
|
+
|
242
|
+
api_instance = Aimastering::LibraryAudioApi.new
|
243
|
+
|
244
|
+
id = 56 # Integer | Library audio id
|
245
|
+
|
246
|
+
|
247
|
+
begin
|
248
|
+
#Get a library audio analysis by id.
|
249
|
+
result = api_instance.get_library_audio_analysis(id)
|
250
|
+
p result
|
251
|
+
rescue Aimastering::ApiError => e
|
252
|
+
puts "Exception when calling LibraryAudioApi->get_library_audio_analysis: #{e}"
|
253
|
+
end
|
254
|
+
```
|
255
|
+
|
256
|
+
### Parameters
|
257
|
+
|
258
|
+
Name | Type | Description | Notes
|
259
|
+
------------- | ------------- | ------------- | -------------
|
260
|
+
**id** | **Integer**| Library audio id |
|
261
|
+
|
262
|
+
### Return type
|
263
|
+
|
264
|
+
[**LibraryAudioAnalysis**](LibraryAudioAnalysis.md)
|
265
|
+
|
266
|
+
### Authorization
|
267
|
+
|
268
|
+
[bearer](../README.md#bearer)
|
269
|
+
|
270
|
+
### HTTP request headers
|
271
|
+
|
272
|
+
- **Content-Type**: Not defined
|
273
|
+
- **Accept**: application/json
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
# **list_library_audios**
|
278
|
+
> Array<LibraryAudio> list_library_audios
|
279
|
+
|
280
|
+
Get all library audios accessable.
|
281
|
+
|
282
|
+
### Example
|
283
|
+
```ruby
|
284
|
+
# load the gem
|
285
|
+
require 'aimastering'
|
286
|
+
# setup authorization
|
287
|
+
Aimastering.configure do |config|
|
288
|
+
# Configure API key authorization: bearer
|
289
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
290
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
291
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
292
|
+
end
|
293
|
+
|
294
|
+
api_instance = Aimastering::LibraryAudioApi.new
|
295
|
+
|
296
|
+
begin
|
297
|
+
#Get all library audios accessable.
|
298
|
+
result = api_instance.list_library_audios
|
299
|
+
p result
|
300
|
+
rescue Aimastering::ApiError => e
|
301
|
+
puts "Exception when calling LibraryAudioApi->list_library_audios: #{e}"
|
302
|
+
end
|
303
|
+
```
|
304
|
+
|
305
|
+
### Parameters
|
306
|
+
This endpoint does not need any parameter.
|
307
|
+
|
308
|
+
### Return type
|
309
|
+
|
310
|
+
[**Array<LibraryAudio>**](LibraryAudio.md)
|
311
|
+
|
312
|
+
### Authorization
|
313
|
+
|
314
|
+
[bearer](../README.md#bearer)
|
315
|
+
|
316
|
+
### HTTP request headers
|
317
|
+
|
318
|
+
- **Content-Type**: Not defined
|
319
|
+
- **Accept**: application/json
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
# **update_library_audio**
|
324
|
+
> LibraryAudio update_library_audio(id, opts)
|
325
|
+
|
326
|
+
Update library audio.
|
327
|
+
|
328
|
+
### Example
|
329
|
+
```ruby
|
330
|
+
# load the gem
|
331
|
+
require 'aimastering'
|
332
|
+
# setup authorization
|
333
|
+
Aimastering.configure do |config|
|
334
|
+
# Configure API key authorization: bearer
|
335
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
336
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
337
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
338
|
+
end
|
339
|
+
|
340
|
+
api_instance = Aimastering::LibraryAudioApi.new
|
341
|
+
|
342
|
+
id = 56 # Integer | Library audio id
|
343
|
+
|
344
|
+
opts = {
|
345
|
+
is_public: true # BOOLEAN | Whether the library audio is public.
|
346
|
+
}
|
347
|
+
|
348
|
+
begin
|
349
|
+
#Update library audio.
|
350
|
+
result = api_instance.update_library_audio(id, opts)
|
351
|
+
p result
|
352
|
+
rescue Aimastering::ApiError => e
|
353
|
+
puts "Exception when calling LibraryAudioApi->update_library_audio: #{e}"
|
354
|
+
end
|
355
|
+
```
|
356
|
+
|
357
|
+
### Parameters
|
358
|
+
|
359
|
+
Name | Type | Description | Notes
|
360
|
+
------------- | ------------- | ------------- | -------------
|
361
|
+
**id** | **Integer**| Library audio id |
|
362
|
+
**is_public** | **BOOLEAN**| Whether the library audio is public. | [optional]
|
363
|
+
|
364
|
+
### Return type
|
365
|
+
|
366
|
+
[**LibraryAudio**](LibraryAudio.md)
|
367
|
+
|
368
|
+
### Authorization
|
369
|
+
|
370
|
+
[bearer](../README.md#bearer)
|
371
|
+
|
372
|
+
### HTTP request headers
|
373
|
+
|
374
|
+
- **Content-Type**: multipart/form-data
|
375
|
+
- **Accept**: application/json
|
376
|
+
|
377
|
+
|
378
|
+
|