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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c80fbab114df0992c09ebc82e36079dbc697e344ca9f0c769c00de29abc499a4
|
4
|
+
data.tar.gz: 7187a08cbdf2b50c35a873c815b6652255cc48f9ad753997697035d538a995a5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ec42c174e57261f0676790f9d45293892a98b3b692caf1755c7268bf3c21d73458ad788b0103233e98c8a94833384a0b05de16d18fdd946ed5972835984db13f
|
7
|
+
data.tar.gz: 3f0c141fe116e0347e70b60fb13686029aa4602838900b682ee163753e50bd44afaaf01c55bbca550e4cceff6779ff6df7215da495e1c5c572d4f82e03cd3131
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
# aimastering
|
2
|
+
|
3
|
+
Aimastering - the Ruby gem for the AI Mastering API
|
4
|
+
|
5
|
+
This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
|
+
|
9
|
+
- API version: 1.0.0
|
10
|
+
- Package version: 1.0.0
|
11
|
+
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
### Build a gem
|
16
|
+
|
17
|
+
To build the Ruby code into a gem:
|
18
|
+
|
19
|
+
```shell
|
20
|
+
gem build aimastering.gemspec
|
21
|
+
```
|
22
|
+
|
23
|
+
Then either install the gem locally:
|
24
|
+
|
25
|
+
```shell
|
26
|
+
gem install ./aimastering-1.0.0.gem
|
27
|
+
```
|
28
|
+
(for development, run `gem install --dev ./aimastering-1.0.0.gem` to install the development dependencies)
|
29
|
+
|
30
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
|
+
|
32
|
+
Finally add this to the Gemfile:
|
33
|
+
|
34
|
+
gem 'aimastering', '~> 1.0.0'
|
35
|
+
|
36
|
+
### Install from Git
|
37
|
+
|
38
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
39
|
+
|
40
|
+
gem 'aimastering', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
41
|
+
|
42
|
+
### Include the Ruby code directly
|
43
|
+
|
44
|
+
Include the Ruby code directly using `-I` as follows:
|
45
|
+
|
46
|
+
```shell
|
47
|
+
ruby -Ilib script.rb
|
48
|
+
```
|
49
|
+
|
50
|
+
## Getting Started
|
51
|
+
|
52
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
53
|
+
```ruby
|
54
|
+
# Load the gem
|
55
|
+
require 'aimastering'
|
56
|
+
|
57
|
+
# Setup authorization
|
58
|
+
Aimastering.configure do |config|
|
59
|
+
# Configure API key authorization: bearer
|
60
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
61
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
62
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
63
|
+
end
|
64
|
+
|
65
|
+
api_instance = Aimastering::AccessTokenApi.new
|
66
|
+
|
67
|
+
begin
|
68
|
+
#Create an API access token.
|
69
|
+
result = api_instance.create_access_token
|
70
|
+
p result
|
71
|
+
rescue Aimastering::ApiError => e
|
72
|
+
puts "Exception when calling AccessTokenApi->create_access_token: #{e}"
|
73
|
+
end
|
74
|
+
|
75
|
+
```
|
76
|
+
|
77
|
+
## Documentation for API Endpoints
|
78
|
+
|
79
|
+
All URIs are relative to *https://aimastering.com:443/api*
|
80
|
+
|
81
|
+
Class | Method | HTTP request | Description
|
82
|
+
------------ | ------------- | ------------- | -------------
|
83
|
+
*Aimastering::AccessTokenApi* | [**create_access_token**](docs/AccessTokenApi.md#create_access_token) | **POST** /access_tokens | Create an API access token.
|
84
|
+
*Aimastering::AudioApi* | [**create_audio**](docs/AudioApi.md#create_audio) | **POST** /audios | Create a new audio.
|
85
|
+
*Aimastering::AudioApi* | [**download_audio**](docs/AudioApi.md#download_audio) | **GET** /audios/{id}/download | Download an audio data by id.
|
86
|
+
*Aimastering::AudioApi* | [**download_audio_by_token**](docs/AudioApi.md#download_audio_by_token) | **GET** /audios/download_by_token | Download an audio data by audio_download_token.
|
87
|
+
*Aimastering::AudioApi* | [**get_audio**](docs/AudioApi.md#get_audio) | **GET** /audios/{id} | Get an audio by id.
|
88
|
+
*Aimastering::AudioApi* | [**get_audio_analysis**](docs/AudioApi.md#get_audio_analysis) | **GET** /audios/{id}/analysis | Get an audio analysis by id.
|
89
|
+
*Aimastering::AudioApi* | [**get_audio_download_token**](docs/AudioApi.md#get_audio_download_token) | **GET** /audios/{id}/download_token | Get an audio download token by id.
|
90
|
+
*Aimastering::AudioApi* | [**list_audios**](docs/AudioApi.md#list_audios) | **GET** /audios | Get all audios accessable.
|
91
|
+
*Aimastering::ConfigApi* | [**get_config**](docs/ConfigApi.md#get_config) | **GET** /config | Get config.
|
92
|
+
*Aimastering::ExternalSearchApi* | [**search_external**](docs/ExternalSearchApi.md#search_external) | **GET** /external_search | Search external music and get name, url, thumbnails, etc.
|
93
|
+
*Aimastering::LibraryAudioApi* | [**create_library_audio**](docs/LibraryAudioApi.md#create_library_audio) | **POST** /library_audios | Create a new library audio.
|
94
|
+
*Aimastering::LibraryAudioApi* | [**create_library_audio_like**](docs/LibraryAudioApi.md#create_library_audio_like) | **POST** /library_audios/{id}/like | Create a new library audio like.
|
95
|
+
*Aimastering::LibraryAudioApi* | [**delete_library_audio**](docs/LibraryAudioApi.md#delete_library_audio) | **DELETE** /library_audios/{id} | Delete library audio.
|
96
|
+
*Aimastering::LibraryAudioApi* | [**get_library_audio**](docs/LibraryAudioApi.md#get_library_audio) | **GET** /library_audios/{id} | Get a library audio by id.
|
97
|
+
*Aimastering::LibraryAudioApi* | [**get_library_audio_analysis**](docs/LibraryAudioApi.md#get_library_audio_analysis) | **GET** /library_audios/{id}/analysis | Get a library audio analysis by id.
|
98
|
+
*Aimastering::LibraryAudioApi* | [**list_library_audios**](docs/LibraryAudioApi.md#list_library_audios) | **GET** /library_audios | Get all library audios accessable.
|
99
|
+
*Aimastering::LibraryAudioApi* | [**update_library_audio**](docs/LibraryAudioApi.md#update_library_audio) | **PUT** /library_audios/{id} | Update library audio.
|
100
|
+
*Aimastering::MasteringApi* | [**cancel_mastering**](docs/MasteringApi.md#cancel_mastering) | **PUT** /masterings/{id}/cancel | Cancel a mastering by id.
|
101
|
+
*Aimastering::MasteringApi* | [**create_mastering**](docs/MasteringApi.md#create_mastering) | **POST** /masterings | Create a new mastering.
|
102
|
+
*Aimastering::MasteringApi* | [**delete_mastering**](docs/MasteringApi.md#delete_mastering) | **DELETE** /masterings/{id} | Delete mastering.
|
103
|
+
*Aimastering::MasteringApi* | [**get_mastering**](docs/MasteringApi.md#get_mastering) | **GET** /masterings/{id} | Get a mastering by id.
|
104
|
+
*Aimastering::MasteringApi* | [**get_mastering_unlock_product**](docs/MasteringApi.md#get_mastering_unlock_product) | **GET** /masterings/{id}/unlock_product | Review a mastering by id.
|
105
|
+
*Aimastering::MasteringApi* | [**list_masterings**](docs/MasteringApi.md#list_masterings) | **GET** /masterings | Get all accessable masterings.
|
106
|
+
*Aimastering::MasteringApi* | [**publish_mastering**](docs/MasteringApi.md#publish_mastering) | **POST** /masterings/{id}/publish | Publish a mastering by id.
|
107
|
+
*Aimastering::MasteringApi* | [**review_mastering**](docs/MasteringApi.md#review_mastering) | **PUT** /masterings/{id}/review | Review a mastering by id.
|
108
|
+
*Aimastering::PaymentApi* | [**create_payment**](docs/PaymentApi.md#create_payment) | **POST** /payments | Create a new payment.
|
109
|
+
*Aimastering::PaymentApi* | [**execute_payment**](docs/PaymentApi.md#execute_payment) | **PUT** /payments/{id}/execute | Execute a payment by id.
|
110
|
+
*Aimastering::PaymentApi* | [**get_payment**](docs/PaymentApi.md#get_payment) | **GET** /payments/{id} | Get a payment by id.
|
111
|
+
*Aimastering::PaymentApi* | [**list_payments**](docs/PaymentApi.md#list_payments) | **GET** /payments | Get all accessable payments.
|
112
|
+
*Aimastering::PaymentCustomerApi* | [**get_default_payment_customer**](docs/PaymentCustomerApi.md#get_default_payment_customer) | **GET** /payment_customers/default | Get a default payment customer.
|
113
|
+
*Aimastering::PlanApi* | [**list_plans**](docs/PlanApi.md#list_plans) | **GET** /plans | Get all accessable plans.
|
114
|
+
*Aimastering::StatisticsApi* | [**list_anonymized_masterings**](docs/StatisticsApi.md#list_anonymized_masterings) | **GET** /statistics/anonymized_masterings | Get anonymized masterings.
|
115
|
+
*Aimastering::StatisticsApi* | [**list_kpis**](docs/StatisticsApi.md#list_kpis) | **GET** /statistics/kpis | Get KPIs.
|
116
|
+
*Aimastering::SubscriptionApi* | [**cancel_subscription**](docs/SubscriptionApi.md#cancel_subscription) | **PUT** /subscriptions/{id}/cancel | Cancel a subscription by id.
|
117
|
+
*Aimastering::SubscriptionApi* | [**cancel_subscription_cancellation**](docs/SubscriptionApi.md#cancel_subscription_cancellation) | **PUT** /subscriptions/{id}/cancel_cancellation | Cancel the subscription cancellation by id.
|
118
|
+
*Aimastering::SubscriptionApi* | [**create_subscription**](docs/SubscriptionApi.md#create_subscription) | **POST** /subscriptions | Create a new subscription.
|
119
|
+
*Aimastering::SubscriptionApi* | [**get_subscription**](docs/SubscriptionApi.md#get_subscription) | **GET** /subscriptions/{id} | Get a subscription by id.
|
120
|
+
*Aimastering::SubscriptionApi* | [**list_subscriptions**](docs/SubscriptionApi.md#list_subscriptions) | **GET** /subscriptions | Get all accessable subscriptions.
|
121
|
+
*Aimastering::UserApi* | [**get_self**](docs/UserApi.md#get_self) | **GET** /users/self | Get self user.
|
122
|
+
*Aimastering::UserApi* | [**update_self**](docs/UserApi.md#update_self) | **PUT** /users/self | Update self user.
|
123
|
+
*Aimastering::VideoApi* | [**download_video**](docs/VideoApi.md#download_video) | **GET** /videos/{id}/download | Download an video data by id.
|
124
|
+
*Aimastering::VideoApi* | [**download_video_by_token**](docs/VideoApi.md#download_video_by_token) | **GET** /videos/download_by_token | Download an video data by video_download_token.
|
125
|
+
*Aimastering::VideoApi* | [**get_video**](docs/VideoApi.md#get_video) | **GET** /videos/{id} | Get an video by id.
|
126
|
+
*Aimastering::VideoApi* | [**get_video_download_token**](docs/VideoApi.md#get_video_download_token) | **GET** /videos/{id}/download_token | Get an video download token by id.
|
127
|
+
*Aimastering::VideoApi* | [**list_videos**](docs/VideoApi.md#list_videos) | **GET** /videos | Get all videos accessable.
|
128
|
+
|
129
|
+
|
130
|
+
## Documentation for Models
|
131
|
+
|
132
|
+
- [Aimastering::AccessToken](docs/AccessToken.md)
|
133
|
+
- [Aimastering::AnonymizedMastering](docs/AnonymizedMastering.md)
|
134
|
+
- [Aimastering::Audio](docs/Audio.md)
|
135
|
+
- [Aimastering::AudioAnalysis](docs/AudioAnalysis.md)
|
136
|
+
- [Aimastering::AudioDownloadToken](docs/AudioDownloadToken.md)
|
137
|
+
- [Aimastering::Config](docs/Config.md)
|
138
|
+
- [Aimastering::ConfigAuth0](docs/ConfigAuth0.md)
|
139
|
+
- [Aimastering::ConfigPaypal](docs/ConfigPaypal.md)
|
140
|
+
- [Aimastering::ConfigStripe](docs/ConfigStripe.md)
|
141
|
+
- [Aimastering::ExternalSearchResult](docs/ExternalSearchResult.md)
|
142
|
+
- [Aimastering::ExternalSearchResultItunes](docs/ExternalSearchResultItunes.md)
|
143
|
+
- [Aimastering::ExternalSearchResultYoutube](docs/ExternalSearchResultYoutube.md)
|
144
|
+
- [Aimastering::JWT](docs/JWT.md)
|
145
|
+
- [Aimastering::Kpi](docs/Kpi.md)
|
146
|
+
- [Aimastering::LibraryAudio](docs/LibraryAudio.md)
|
147
|
+
- [Aimastering::LibraryAudioAnalysis](docs/LibraryAudioAnalysis.md)
|
148
|
+
- [Aimastering::LibraryAudioLike](docs/LibraryAudioLike.md)
|
149
|
+
- [Aimastering::Mastering](docs/Mastering.md)
|
150
|
+
- [Aimastering::Payment](docs/Payment.md)
|
151
|
+
- [Aimastering::PaymentCustomer](docs/PaymentCustomer.md)
|
152
|
+
- [Aimastering::Plan](docs/Plan.md)
|
153
|
+
- [Aimastering::Subscription](docs/Subscription.md)
|
154
|
+
- [Aimastering::User](docs/User.md)
|
155
|
+
- [Aimastering::Video](docs/Video.md)
|
156
|
+
- [Aimastering::VideoDownloadToken](docs/VideoDownloadToken.md)
|
157
|
+
|
158
|
+
|
159
|
+
## Documentation for Authorization
|
160
|
+
|
161
|
+
|
162
|
+
### bearer
|
163
|
+
|
164
|
+
- **Type**: API key
|
165
|
+
- **API key parameter name**: Authorization
|
166
|
+
- **Location**: HTTP header
|
167
|
+
|
data/Rakefile
ADDED
data/aimastering.gemspec
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
#
|
3
|
+
=begin
|
4
|
+
#AI Mastering API
|
5
|
+
|
6
|
+
#This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
|
7
|
+
|
8
|
+
OpenAPI spec version: 1.0.0
|
9
|
+
Contact: aimasteringcom@gmail.com
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
+
Swagger Codegen version: 2.3.1
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "aimastering/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "aimastering"
|
20
|
+
s.version = Aimastering::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["AI Mastering"]
|
23
|
+
s.email = ["aimasteringcom@gmail.com"]
|
24
|
+
s.homepage = "https://github.com/ai-mastering/aimastering-ruby"
|
25
|
+
s.summary = "AI Mastering API Ruby Gem"
|
26
|
+
s.description = "This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API."
|
27
|
+
s.license = "MIT"
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
|
+
|
41
|
+
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
42
|
+
s.test_files = `find spec/*`.split("\n")
|
43
|
+
s.executables = []
|
44
|
+
s.require_paths = ["lib"]
|
45
|
+
end
|
data/docs/AccessToken.md
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# Aimastering::AccessTokenApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://aimastering.com:443/api*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_access_token**](AccessTokenApi.md#create_access_token) | **POST** /access_tokens | Create an API access token.
|
8
|
+
|
9
|
+
|
10
|
+
# **create_access_token**
|
11
|
+
> AccessToken create_access_token
|
12
|
+
|
13
|
+
Create an API access token.
|
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::AccessTokenApi.new
|
28
|
+
|
29
|
+
begin
|
30
|
+
#Create an API access token.
|
31
|
+
result = api_instance.create_access_token
|
32
|
+
p result
|
33
|
+
rescue Aimastering::ApiError => e
|
34
|
+
puts "Exception when calling AccessTokenApi->create_access_token: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
### Parameters
|
39
|
+
This endpoint does not need any parameter.
|
40
|
+
|
41
|
+
### Return type
|
42
|
+
|
43
|
+
[**AccessToken**](AccessToken.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,29 @@
|
|
1
|
+
# Aimastering::AnonymizedMastering
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**user_id** | **String** | | [optional]
|
7
|
+
**user_auth_provider** | **String** | | [optional]
|
8
|
+
**mode** | **String** | | [optional]
|
9
|
+
**status** | **String** | | [optional]
|
10
|
+
**failure_reason** | **String** | | [optional]
|
11
|
+
**target_loudness** | **Float** | | [optional]
|
12
|
+
**output_format** | **String** | | [optional]
|
13
|
+
**preset** | **String** | | [optional]
|
14
|
+
**bit_depth** | **Integer** | | [optional]
|
15
|
+
**sample_rate** | **Integer** | | [optional]
|
16
|
+
**review_score** | **Float** | | [optional]
|
17
|
+
**mastering_matching_level** | **Float** | | [optional]
|
18
|
+
**mastering** | **BOOLEAN** | | [optional]
|
19
|
+
**paid** | **BOOLEAN** | | [optional]
|
20
|
+
**payment_service** | **String** | | [optional]
|
21
|
+
**retry_count** | **Integer** | | [optional]
|
22
|
+
**mastering_reverb** | **BOOLEAN** | | [optional]
|
23
|
+
**mastering_reverb_gain** | **Float** | | [optional]
|
24
|
+
**low_cut_freq** | **Float** | | [optional]
|
25
|
+
**high_cut_freq** | **Float** | | [optional]
|
26
|
+
**created_at** | **DateTime** | | [optional]
|
27
|
+
**updated_at** | **DateTime** | | [optional]
|
28
|
+
|
29
|
+
|
data/docs/Audio.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Aimastering::Audio
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | | [optional]
|
7
|
+
**file_resource_id** | **Integer** | | [optional]
|
8
|
+
**user_id** | **Integer** | | [optional]
|
9
|
+
**name** | **String** | | [optional]
|
10
|
+
**created_by_user** | **BOOLEAN** | | [optional]
|
11
|
+
**status** | **String** | | [optional]
|
12
|
+
**failure_reason** | **String** | | [optional]
|
13
|
+
**probe_json** | **String** | | [optional]
|
14
|
+
**rms** | **Float** | | [optional]
|
15
|
+
**peak** | **Float** | | [optional]
|
16
|
+
**loudness** | **Float** | | [optional]
|
17
|
+
**dynamics** | **Float** | | [optional]
|
18
|
+
**sharpness** | **Float** | | [optional]
|
19
|
+
**space** | **Float** | | [optional]
|
20
|
+
**loudness_range** | **Float** | | [optional]
|
21
|
+
**drr** | **Float** | | [optional]
|
22
|
+
**sound_quality** | **Float** | | [optional]
|
23
|
+
**frames** | **Integer** | | [optional]
|
24
|
+
**sample_rate** | **Integer** | | [optional]
|
25
|
+
**channels** | **Integer** | | [optional]
|
26
|
+
**created_at** | **DateTime** | | [optional]
|
27
|
+
**updated_at** | **DateTime** | | [optional]
|
28
|
+
|
29
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Aimastering::AudioAnalysis
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | Audio analysis id | [optional]
|
7
|
+
**audio_id** | **Integer** | Audio id | [optional]
|
8
|
+
**analysis** | **Object** | Audio analysis data. The schema changes frequently. | [optional]
|
9
|
+
|
10
|
+
|
data/docs/AudioApi.md
ADDED
@@ -0,0 +1,374 @@
|
|
1
|
+
# Aimastering::AudioApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://aimastering.com:443/api*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_audio**](AudioApi.md#create_audio) | **POST** /audios | Create a new audio.
|
8
|
+
[**download_audio**](AudioApi.md#download_audio) | **GET** /audios/{id}/download | Download an audio data by id.
|
9
|
+
[**download_audio_by_token**](AudioApi.md#download_audio_by_token) | **GET** /audios/download_by_token | Download an audio data by audio_download_token.
|
10
|
+
[**get_audio**](AudioApi.md#get_audio) | **GET** /audios/{id} | Get an audio by id.
|
11
|
+
[**get_audio_analysis**](AudioApi.md#get_audio_analysis) | **GET** /audios/{id}/analysis | Get an audio analysis by id.
|
12
|
+
[**get_audio_download_token**](AudioApi.md#get_audio_download_token) | **GET** /audios/{id}/download_token | Get an audio download token by id.
|
13
|
+
[**list_audios**](AudioApi.md#list_audios) | **GET** /audios | Get all audios accessable.
|
14
|
+
|
15
|
+
|
16
|
+
# **create_audio**
|
17
|
+
> Audio create_audio(opts)
|
18
|
+
|
19
|
+
Create a new 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::AudioApi.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 audio.
|
41
|
+
result = api_instance.create_audio(opts)
|
42
|
+
p result
|
43
|
+
rescue Aimastering::ApiError => e
|
44
|
+
puts "Exception when calling AudioApi->create_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
|
+
[**Audio**](Audio.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
|
+
# **download_audio**
|
70
|
+
> String download_audio(id)
|
71
|
+
|
72
|
+
Download an audio data by id.
|
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::AudioApi.new
|
87
|
+
|
88
|
+
id = 56 # Integer | Audio id
|
89
|
+
|
90
|
+
|
91
|
+
begin
|
92
|
+
#Download an audio data by id.
|
93
|
+
result = api_instance.download_audio(id)
|
94
|
+
p result
|
95
|
+
rescue Aimastering::ApiError => e
|
96
|
+
puts "Exception when calling AudioApi->download_audio: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
Name | Type | Description | Notes
|
103
|
+
------------- | ------------- | ------------- | -------------
|
104
|
+
**id** | **Integer**| Audio id |
|
105
|
+
|
106
|
+
### Return type
|
107
|
+
|
108
|
+
**String**
|
109
|
+
|
110
|
+
### Authorization
|
111
|
+
|
112
|
+
[bearer](../README.md#bearer)
|
113
|
+
|
114
|
+
### HTTP request headers
|
115
|
+
|
116
|
+
- **Content-Type**: Not defined
|
117
|
+
- **Accept**: application/octet-stream
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
# **download_audio_by_token**
|
122
|
+
> String download_audio_by_token(download_token)
|
123
|
+
|
124
|
+
Download an audio data by audio_download_token.
|
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::AudioApi.new
|
139
|
+
|
140
|
+
download_token = "download_token_example" # String | Audio download token
|
141
|
+
|
142
|
+
|
143
|
+
begin
|
144
|
+
#Download an audio data by audio_download_token.
|
145
|
+
result = api_instance.download_audio_by_token(download_token)
|
146
|
+
p result
|
147
|
+
rescue Aimastering::ApiError => e
|
148
|
+
puts "Exception when calling AudioApi->download_audio_by_token: #{e}"
|
149
|
+
end
|
150
|
+
```
|
151
|
+
|
152
|
+
### Parameters
|
153
|
+
|
154
|
+
Name | Type | Description | Notes
|
155
|
+
------------- | ------------- | ------------- | -------------
|
156
|
+
**download_token** | **String**| Audio download token |
|
157
|
+
|
158
|
+
### Return type
|
159
|
+
|
160
|
+
**String**
|
161
|
+
|
162
|
+
### Authorization
|
163
|
+
|
164
|
+
[bearer](../README.md#bearer)
|
165
|
+
|
166
|
+
### HTTP request headers
|
167
|
+
|
168
|
+
- **Content-Type**: Not defined
|
169
|
+
- **Accept**: application/octet-stream
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
# **get_audio**
|
174
|
+
> Audio get_audio(id)
|
175
|
+
|
176
|
+
Get an 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::AudioApi.new
|
191
|
+
|
192
|
+
id = 56 # Integer | Audio id
|
193
|
+
|
194
|
+
|
195
|
+
begin
|
196
|
+
#Get an audio by id.
|
197
|
+
result = api_instance.get_audio(id)
|
198
|
+
p result
|
199
|
+
rescue Aimastering::ApiError => e
|
200
|
+
puts "Exception when calling AudioApi->get_audio: #{e}"
|
201
|
+
end
|
202
|
+
```
|
203
|
+
|
204
|
+
### Parameters
|
205
|
+
|
206
|
+
Name | Type | Description | Notes
|
207
|
+
------------- | ------------- | ------------- | -------------
|
208
|
+
**id** | **Integer**| Audio id |
|
209
|
+
|
210
|
+
### Return type
|
211
|
+
|
212
|
+
[**Audio**](Audio.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_audio_analysis**
|
226
|
+
> AudioAnalysis get_audio_analysis(id)
|
227
|
+
|
228
|
+
Get an 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::AudioApi.new
|
243
|
+
|
244
|
+
id = 56 # Integer | Audio id
|
245
|
+
|
246
|
+
|
247
|
+
begin
|
248
|
+
#Get an audio analysis by id.
|
249
|
+
result = api_instance.get_audio_analysis(id)
|
250
|
+
p result
|
251
|
+
rescue Aimastering::ApiError => e
|
252
|
+
puts "Exception when calling AudioApi->get_audio_analysis: #{e}"
|
253
|
+
end
|
254
|
+
```
|
255
|
+
|
256
|
+
### Parameters
|
257
|
+
|
258
|
+
Name | Type | Description | Notes
|
259
|
+
------------- | ------------- | ------------- | -------------
|
260
|
+
**id** | **Integer**| Audio id |
|
261
|
+
|
262
|
+
### Return type
|
263
|
+
|
264
|
+
[**AudioAnalysis**](AudioAnalysis.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
|
+
# **get_audio_download_token**
|
278
|
+
> AudioDownloadToken get_audio_download_token(id)
|
279
|
+
|
280
|
+
Get an audio download token by id.
|
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::AudioApi.new
|
295
|
+
|
296
|
+
id = 56 # Integer | Audio id
|
297
|
+
|
298
|
+
|
299
|
+
begin
|
300
|
+
#Get an audio download token by id.
|
301
|
+
result = api_instance.get_audio_download_token(id)
|
302
|
+
p result
|
303
|
+
rescue Aimastering::ApiError => e
|
304
|
+
puts "Exception when calling AudioApi->get_audio_download_token: #{e}"
|
305
|
+
end
|
306
|
+
```
|
307
|
+
|
308
|
+
### Parameters
|
309
|
+
|
310
|
+
Name | Type | Description | Notes
|
311
|
+
------------- | ------------- | ------------- | -------------
|
312
|
+
**id** | **Integer**| Audio id |
|
313
|
+
|
314
|
+
### Return type
|
315
|
+
|
316
|
+
[**AudioDownloadToken**](AudioDownloadToken.md)
|
317
|
+
|
318
|
+
### Authorization
|
319
|
+
|
320
|
+
[bearer](../README.md#bearer)
|
321
|
+
|
322
|
+
### HTTP request headers
|
323
|
+
|
324
|
+
- **Content-Type**: Not defined
|
325
|
+
- **Accept**: application/json
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
# **list_audios**
|
330
|
+
> Array<Audio> list_audios
|
331
|
+
|
332
|
+
Get all audios accessable.
|
333
|
+
|
334
|
+
### Example
|
335
|
+
```ruby
|
336
|
+
# load the gem
|
337
|
+
require 'aimastering'
|
338
|
+
# setup authorization
|
339
|
+
Aimastering.configure do |config|
|
340
|
+
# Configure API key authorization: bearer
|
341
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
342
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
343
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
344
|
+
end
|
345
|
+
|
346
|
+
api_instance = Aimastering::AudioApi.new
|
347
|
+
|
348
|
+
begin
|
349
|
+
#Get all audios accessable.
|
350
|
+
result = api_instance.list_audios
|
351
|
+
p result
|
352
|
+
rescue Aimastering::ApiError => e
|
353
|
+
puts "Exception when calling AudioApi->list_audios: #{e}"
|
354
|
+
end
|
355
|
+
```
|
356
|
+
|
357
|
+
### Parameters
|
358
|
+
This endpoint does not need any parameter.
|
359
|
+
|
360
|
+
### Return type
|
361
|
+
|
362
|
+
[**Array<Audio>**](Audio.md)
|
363
|
+
|
364
|
+
### Authorization
|
365
|
+
|
366
|
+
[bearer](../README.md#bearer)
|
367
|
+
|
368
|
+
### HTTP request headers
|
369
|
+
|
370
|
+
- **Content-Type**: Not defined
|
371
|
+
- **Accept**: application/json
|
372
|
+
|
373
|
+
|
374
|
+
|