aimastering 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -5
- data/aimastering.gemspec +4 -4
- data/docs/AccessTokenApi.md +1 -1
- data/docs/AmazonSubscription.md +12 -0
- data/docs/AmazonSubscriptionApi.md +55 -0
- data/docs/Audio.md +4 -0
- data/docs/AudioApi.md +4 -2
- data/docs/Config.md +1 -0
- data/docs/ConfigApi.md +1 -1
- data/docs/{DateTime.md → ConfigVersion.md} +2 -1
- data/docs/ExternalSearchApi.md +1 -1
- data/docs/GroupBuyStatistics.md +8 -0
- data/docs/LibraryAudio.md +4 -0
- data/docs/LibraryAudioApi.md +1 -1
- data/docs/Mastering.md +9 -0
- data/docs/MasteringApi.md +151 -29
- data/docs/PaymentApi.md +3 -3
- data/docs/PaymentCustomerApi.md +1 -1
- data/docs/PlanApi.md +1 -1
- data/docs/SpSubscription.md +12 -0
- data/docs/SpSubscriptionApi.md +112 -0
- data/docs/StatisticsApi.md +48 -1
- data/docs/Subscription.md +1 -0
- data/docs/SubscriptionApi.md +4 -2
- data/docs/User.md +3 -0
- data/docs/UserApi.md +110 -1
- data/docs/UserStatistics.md +13 -0
- data/docs/VideoApi.md +1 -1
- data/lib/aimastering.rb +8 -1
- data/lib/aimastering/api/access_token_api.rb +1 -1
- data/lib/aimastering/api/amazon_subscription_api.rb +70 -0
- data/lib/aimastering/api/audio_api.rb +4 -1
- data/lib/aimastering/api/config_api.rb +1 -1
- data/lib/aimastering/api/external_search_api.rb +1 -1
- data/lib/aimastering/api/library_audio_api.rb +1 -1
- data/lib/aimastering/api/mastering_api.rb +162 -16
- data/lib/aimastering/api/payment_api.rb +1 -1
- data/lib/aimastering/api/payment_customer_api.rb +1 -1
- data/lib/aimastering/api/plan_api.rb +1 -1
- data/lib/aimastering/api/sp_subscription_api.rb +133 -0
- data/lib/aimastering/api/statistics_api.rb +48 -1
- data/lib/aimastering/api/subscription_api.rb +4 -1
- data/lib/aimastering/api/user_api.rb +112 -1
- data/lib/aimastering/api/video_api.rb +1 -1
- data/lib/aimastering/api_client.rb +1 -1
- data/lib/aimastering/api_error.rb +1 -1
- data/lib/aimastering/configuration.rb +3 -3
- data/lib/aimastering/models/access_token.rb +1 -1
- data/lib/aimastering/models/amazon_subscription.rb +257 -0
- data/lib/aimastering/models/anonymized_mastering.rb +5 -5
- data/lib/aimastering/models/audio.rb +38 -2
- data/lib/aimastering/models/audio_analysis.rb +1 -1
- data/lib/aimastering/models/audio_download_token.rb +1 -1
- data/lib/aimastering/models/config.rb +14 -5
- data/lib/aimastering/models/config_auth0.rb +1 -1
- data/lib/aimastering/models/config_paypal.rb +1 -1
- data/lib/aimastering/models/config_stripe.rb +1 -1
- data/lib/aimastering/models/{date_time.rb → config_version.rb} +14 -5
- data/lib/aimastering/models/external_search_result.rb +1 -1
- data/lib/aimastering/models/external_search_result_itunes.rb +1 -1
- data/lib/aimastering/models/external_search_result_youtube.rb +1 -1
- data/lib/aimastering/models/group_buy_statistics.rb +188 -0
- data/lib/aimastering/models/jwt.rb +1 -1
- data/lib/aimastering/models/kpi.rb +1 -1
- data/lib/aimastering/models/library_audio.rb +38 -2
- data/lib/aimastering/models/library_audio_analysis.rb +1 -1
- data/lib/aimastering/models/library_audio_like.rb +1 -1
- data/lib/aimastering/models/mastering.rb +123 -6
- data/lib/aimastering/models/payment.rb +1 -1
- data/lib/aimastering/models/payment_customer.rb +1 -1
- data/lib/aimastering/models/plan.rb +1 -1
- data/lib/aimastering/models/sp_subscription.rb +257 -0
- data/lib/aimastering/models/subscription.rb +11 -2
- data/lib/aimastering/models/user.rb +29 -2
- data/lib/aimastering/models/user_statistics.rb +233 -0
- data/lib/aimastering/models/video.rb +1 -1
- data/lib/aimastering/models/video_download_token.rb +1 -1
- data/lib/aimastering/version.rb +2 -2
- data/spec/api/access_token_api_spec.rb +1 -1
- data/spec/api/amazon_subscription_api_spec.rb +46 -0
- data/spec/api/audio_api_spec.rb +2 -1
- data/spec/api/config_api_spec.rb +1 -1
- data/spec/api/external_search_api_spec.rb +1 -1
- data/spec/api/library_audio_api_spec.rb +1 -1
- data/spec/api/mastering_api_spec.rb +35 -4
- data/spec/api/payment_api_spec.rb +1 -1
- data/spec/api/payment_customer_api_spec.rb +1 -1
- data/spec/api/plan_api_spec.rb +1 -1
- data/spec/api/sp_subscription_api_spec.rb +59 -0
- data/spec/api/statistics_api_spec.rb +12 -1
- data/spec/api/subscription_api_spec.rb +2 -1
- data/spec/api/user_api_spec.rb +26 -1
- data/spec/api/video_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/access_token_spec.rb +1 -1
- data/spec/models/amazon_subscription_spec.rb +70 -0
- data/spec/models/anonymized_mastering_spec.rb +3 -3
- data/spec/models/audio_analysis_spec.rb +1 -1
- data/spec/models/audio_download_token_spec.rb +1 -1
- data/spec/models/audio_spec.rb +25 -1
- data/spec/models/config_auth0_spec.rb +1 -1
- data/spec/models/config_paypal_spec.rb +1 -1
- data/spec/models/config_spec.rb +7 -1
- data/spec/models/config_stripe_spec.rb +1 -1
- data/spec/models/config_version_spec.rb +42 -0
- data/spec/models/external_search_result_itunes_spec.rb +1 -1
- data/spec/models/external_search_result_spec.rb +1 -1
- data/spec/models/external_search_result_youtube_spec.rb +1 -1
- data/spec/models/group_buy_statistics_spec.rb +42 -0
- data/spec/models/jwt_spec.rb +1 -1
- data/spec/models/kpi_spec.rb +1 -1
- data/spec/models/library_audio_analysis_spec.rb +1 -1
- data/spec/models/library_audio_like_spec.rb +1 -1
- data/spec/models/library_audio_spec.rb +25 -1
- data/spec/models/mastering_spec.rb +69 -3
- data/spec/models/payment_customer_spec.rb +1 -1
- data/spec/models/payment_spec.rb +1 -1
- data/spec/models/plan_spec.rb +1 -1
- data/spec/models/sp_subscription_spec.rb +70 -0
- data/spec/models/subscription_spec.rb +7 -1
- data/spec/models/user_spec.rb +19 -1
- data/spec/models/user_statistics_spec.rb +72 -0
- data/spec/models/video_download_token_spec.rb +1 -1
- data/spec/models/video_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +46 -23
- data/spec/models/date_time_spec.rb +0 -36
data/docs/PaymentApi.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Aimastering::PaymentApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *https://
|
|
3
|
+
All URIs are relative to *https://api.bakuage.com:443*
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
@@ -125,7 +125,7 @@ Name | Type | Description | Notes
|
|
|
125
125
|
|
|
126
126
|
|
|
127
127
|
# **get_payment**
|
|
128
|
-
> Payment get_payment(id)
|
|
128
|
+
> Payment get_payment(id, )
|
|
129
129
|
|
|
130
130
|
Get a payment by id.
|
|
131
131
|
|
|
@@ -148,7 +148,7 @@ id = 56 # Integer | Payment id
|
|
|
148
148
|
|
|
149
149
|
begin
|
|
150
150
|
#Get a payment by id.
|
|
151
|
-
result = api_instance.get_payment(id)
|
|
151
|
+
result = api_instance.get_payment(id, )
|
|
152
152
|
p result
|
|
153
153
|
rescue Aimastering::ApiError => e
|
|
154
154
|
puts "Exception when calling PaymentApi->get_payment: #{e}"
|
data/docs/PaymentCustomerApi.md
CHANGED
data/docs/PlanApi.md
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Aimastering::SpSubscription
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **Integer** | | [optional]
|
|
7
|
+
**user_id** | **Integer** | | [optional]
|
|
8
|
+
**status** | **String** | | [optional]
|
|
9
|
+
**created_at** | **DateTime** | | [optional]
|
|
10
|
+
**updated_at** | **DateTime** | | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Aimastering::SpSubscriptionApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.bakuage.com:443*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create_sp_subscription**](SpSubscriptionApi.md#create_sp_subscription) | **POST** /sp_subscriptions | Create a new smartphone subscription.
|
|
8
|
+
[**list_sp_subscriptions**](SpSubscriptionApi.md#list_sp_subscriptions) | **GET** /sp_subscriptions | Get all accessable smartphone subscriptions.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# **create_sp_subscription**
|
|
12
|
+
> SpSubscription create_sp_subscription(service, opts)
|
|
13
|
+
|
|
14
|
+
Create a new smartphone subscription.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
```ruby
|
|
18
|
+
# load the gem
|
|
19
|
+
require 'aimastering'
|
|
20
|
+
# setup authorization
|
|
21
|
+
Aimastering.configure do |config|
|
|
22
|
+
# Configure API key authorization: bearer
|
|
23
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
24
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
25
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
api_instance = Aimastering::SpSubscriptionApi.new
|
|
29
|
+
|
|
30
|
+
service = "service_example" # String | Service.
|
|
31
|
+
|
|
32
|
+
opts = {
|
|
33
|
+
receipt: "receipt_example" # String | Base64 encoded app store receipt. This parameter is effective only when the service is \"appstore\".
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
#Create a new smartphone subscription.
|
|
38
|
+
result = api_instance.create_sp_subscription(service, opts)
|
|
39
|
+
p result
|
|
40
|
+
rescue Aimastering::ApiError => e
|
|
41
|
+
puts "Exception when calling SpSubscriptionApi->create_sp_subscription: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Parameters
|
|
46
|
+
|
|
47
|
+
Name | Type | Description | Notes
|
|
48
|
+
------------- | ------------- | ------------- | -------------
|
|
49
|
+
**service** | **String**| Service. |
|
|
50
|
+
**receipt** | **String**| Base64 encoded app store receipt. This parameter is effective only when the service is \"appstore\". | [optional]
|
|
51
|
+
|
|
52
|
+
### Return type
|
|
53
|
+
|
|
54
|
+
[**SpSubscription**](SpSubscription.md)
|
|
55
|
+
|
|
56
|
+
### Authorization
|
|
57
|
+
|
|
58
|
+
[bearer](../README.md#bearer)
|
|
59
|
+
|
|
60
|
+
### HTTP request headers
|
|
61
|
+
|
|
62
|
+
- **Content-Type**: multipart/form-data
|
|
63
|
+
- **Accept**: application/json
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# **list_sp_subscriptions**
|
|
68
|
+
> Array<SpSubscription> list_sp_subscriptions
|
|
69
|
+
|
|
70
|
+
Get all accessable smartphone subscriptions.
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
```ruby
|
|
74
|
+
# load the gem
|
|
75
|
+
require 'aimastering'
|
|
76
|
+
# setup authorization
|
|
77
|
+
Aimastering.configure do |config|
|
|
78
|
+
# Configure API key authorization: bearer
|
|
79
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
80
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
81
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
api_instance = Aimastering::SpSubscriptionApi.new
|
|
85
|
+
|
|
86
|
+
begin
|
|
87
|
+
#Get all accessable smartphone subscriptions.
|
|
88
|
+
result = api_instance.list_sp_subscriptions
|
|
89
|
+
p result
|
|
90
|
+
rescue Aimastering::ApiError => e
|
|
91
|
+
puts "Exception when calling SpSubscriptionApi->list_sp_subscriptions: #{e}"
|
|
92
|
+
end
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Parameters
|
|
96
|
+
This endpoint does not need any parameter.
|
|
97
|
+
|
|
98
|
+
### Return type
|
|
99
|
+
|
|
100
|
+
[**Array<SpSubscription>**](SpSubscription.md)
|
|
101
|
+
|
|
102
|
+
### Authorization
|
|
103
|
+
|
|
104
|
+
[bearer](../README.md#bearer)
|
|
105
|
+
|
|
106
|
+
### HTTP request headers
|
|
107
|
+
|
|
108
|
+
- **Content-Type**: Not defined
|
|
109
|
+
- **Accept**: application/json
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
data/docs/StatisticsApi.md
CHANGED
|
@@ -1,13 +1,60 @@
|
|
|
1
1
|
# Aimastering::StatisticsApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *https://
|
|
3
|
+
All URIs are relative to *https://api.bakuage.com:443*
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
+
[**get_group_buy_statistics**](StatisticsApi.md#get_group_buy_statistics) | **GET** /statistics/group_buy | Get group buy statistics.
|
|
7
8
|
[**list_anonymized_masterings**](StatisticsApi.md#list_anonymized_masterings) | **GET** /statistics/anonymized_masterings | Get anonymized masterings.
|
|
8
9
|
[**list_kpis**](StatisticsApi.md#list_kpis) | **GET** /statistics/kpis | Get KPIs.
|
|
9
10
|
|
|
10
11
|
|
|
12
|
+
# **get_group_buy_statistics**
|
|
13
|
+
> GroupBuyStatistics get_group_buy_statistics
|
|
14
|
+
|
|
15
|
+
Get group buy statistics.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
```ruby
|
|
19
|
+
# load the gem
|
|
20
|
+
require 'aimastering'
|
|
21
|
+
# setup authorization
|
|
22
|
+
Aimastering.configure do |config|
|
|
23
|
+
# Configure API key authorization: bearer
|
|
24
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
25
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
26
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
api_instance = Aimastering::StatisticsApi.new
|
|
30
|
+
|
|
31
|
+
begin
|
|
32
|
+
#Get group buy statistics.
|
|
33
|
+
result = api_instance.get_group_buy_statistics
|
|
34
|
+
p result
|
|
35
|
+
rescue Aimastering::ApiError => e
|
|
36
|
+
puts "Exception when calling StatisticsApi->get_group_buy_statistics: #{e}"
|
|
37
|
+
end
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
This endpoint does not need any parameter.
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
[**GroupBuyStatistics**](GroupBuyStatistics.md)
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[bearer](../README.md#bearer)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: Not defined
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
11
58
|
# **list_anonymized_masterings**
|
|
12
59
|
> Array<AnonymizedMastering> list_anonymized_masterings
|
|
13
60
|
|
data/docs/Subscription.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**current_period_end_at** | **DateTime** | | [optional]
|
|
11
11
|
**canceled** | **BOOLEAN** | | [optional]
|
|
12
12
|
**cancel_at_period_end** | **BOOLEAN** | | [optional]
|
|
13
|
+
**trial_end** | **DateTime** | | [optional]
|
|
13
14
|
**status** | **String** | | [optional]
|
|
14
15
|
**created_at** | **DateTime** | | [optional]
|
|
15
16
|
**updated_at** | **DateTime** | | [optional]
|
data/docs/SubscriptionApi.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Aimastering::SubscriptionApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *https://
|
|
3
|
+
All URIs are relative to *https://api.bakuage.com:443*
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
@@ -138,7 +138,8 @@ service = "service_example" # String | This parameter represents the payment mes
|
|
|
138
138
|
|
|
139
139
|
opts = {
|
|
140
140
|
stripe_plan_id: "stripe_plan_id_example", # String | The Stripe plan id. This parameter is effective only when the service is \"stripe\".
|
|
141
|
-
token: "token_example" # String | This parameter represents the card token. This parameter is effective only when the service is \"stripe\".
|
|
141
|
+
token: "token_example", # String | This parameter represents the card token. This parameter is effective only when the service is \"stripe\".
|
|
142
|
+
affiliate_id: "affiliate_id_example" # String | Affiliate id of inviter user.
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
begin
|
|
@@ -157,6 +158,7 @@ Name | Type | Description | Notes
|
|
|
157
158
|
**service** | **String**| This parameter represents the payment message. |
|
|
158
159
|
**stripe_plan_id** | **String**| The Stripe plan id. This parameter is effective only when the service is \"stripe\". | [optional]
|
|
159
160
|
**token** | **String**| This parameter represents the card token. This parameter is effective only when the service is \"stripe\". | [optional]
|
|
161
|
+
**affiliate_id** | **String**| Affiliate id of inviter user. | [optional]
|
|
160
162
|
|
|
161
163
|
### Return type
|
|
162
164
|
|
data/docs/User.md
CHANGED
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
6
|
**id** | **Integer** | | [optional]
|
|
7
|
+
**affiliate_enabled** | **BOOLEAN** | | [optional]
|
|
7
8
|
**agreed_terms_of_service** | **BOOLEAN** | | [optional]
|
|
8
9
|
**auth_id** | **String** | | [optional]
|
|
9
10
|
**auth_provider** | **String** | | [optional]
|
|
10
11
|
**email** | **String** | | [optional]
|
|
12
|
+
**registration_notified** | **BOOLEAN** | | [optional]
|
|
13
|
+
**statistics** | [**UserStatistics**](UserStatistics.md) | | [optional]
|
|
11
14
|
**created_at** | **DateTime** | | [optional]
|
|
12
15
|
**updated_at** | **DateTime** | | [optional]
|
|
13
16
|
|
data/docs/UserApi.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# Aimastering::UserApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *https://
|
|
3
|
+
All URIs are relative to *https://api.bakuage.com:443*
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
7
|
[**get_self**](UserApi.md#get_self) | **GET** /users/self | Get self user.
|
|
8
|
+
[**notify_registration**](UserApi.md#notify_registration) | **PUT** /users/self/notify_registration | Notify user is registered.
|
|
9
|
+
[**send_invitation**](UserApi.md#send_invitation) | **POST** /users/self/send_invitation | Send invitation.
|
|
8
10
|
[**update_self**](UserApi.md#update_self) | **PUT** /users/self | Update self user.
|
|
9
11
|
|
|
10
12
|
|
|
@@ -54,6 +56,113 @@ This endpoint does not need any parameter.
|
|
|
54
56
|
|
|
55
57
|
|
|
56
58
|
|
|
59
|
+
# **notify_registration**
|
|
60
|
+
> User notify_registration(opts)
|
|
61
|
+
|
|
62
|
+
Notify user is registered.
|
|
63
|
+
|
|
64
|
+
### Example
|
|
65
|
+
```ruby
|
|
66
|
+
# load the gem
|
|
67
|
+
require 'aimastering'
|
|
68
|
+
# setup authorization
|
|
69
|
+
Aimastering.configure do |config|
|
|
70
|
+
# Configure API key authorization: bearer
|
|
71
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
72
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
73
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
api_instance = Aimastering::UserApi.new
|
|
77
|
+
|
|
78
|
+
opts = {
|
|
79
|
+
affiliate_id: "affiliate_id_example", # String | The affiliate id of inviter.
|
|
80
|
+
referrer_url: "referrer_url_example" # String | The referrer URL.
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
begin
|
|
84
|
+
#Notify user is registered.
|
|
85
|
+
result = api_instance.notify_registration(opts)
|
|
86
|
+
p result
|
|
87
|
+
rescue Aimastering::ApiError => e
|
|
88
|
+
puts "Exception when calling UserApi->notify_registration: #{e}"
|
|
89
|
+
end
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Parameters
|
|
93
|
+
|
|
94
|
+
Name | Type | Description | Notes
|
|
95
|
+
------------- | ------------- | ------------- | -------------
|
|
96
|
+
**affiliate_id** | **String**| The affiliate id of inviter. | [optional]
|
|
97
|
+
**referrer_url** | **String**| The referrer URL. | [optional]
|
|
98
|
+
|
|
99
|
+
### Return type
|
|
100
|
+
|
|
101
|
+
[**User**](User.md)
|
|
102
|
+
|
|
103
|
+
### Authorization
|
|
104
|
+
|
|
105
|
+
[bearer](../README.md#bearer)
|
|
106
|
+
|
|
107
|
+
### HTTP request headers
|
|
108
|
+
|
|
109
|
+
- **Content-Type**: multipart/form-data
|
|
110
|
+
- **Accept**: application/json
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# **send_invitation**
|
|
115
|
+
> User send_invitation(invitee_email)
|
|
116
|
+
|
|
117
|
+
Send invitation.
|
|
118
|
+
|
|
119
|
+
### Example
|
|
120
|
+
```ruby
|
|
121
|
+
# load the gem
|
|
122
|
+
require 'aimastering'
|
|
123
|
+
# setup authorization
|
|
124
|
+
Aimastering.configure do |config|
|
|
125
|
+
# Configure API key authorization: bearer
|
|
126
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
127
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
128
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
api_instance = Aimastering::UserApi.new
|
|
132
|
+
|
|
133
|
+
invitee_email = "invitee_email_example" # String | The email of invitee.
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
begin
|
|
137
|
+
#Send invitation.
|
|
138
|
+
result = api_instance.send_invitation(invitee_email)
|
|
139
|
+
p result
|
|
140
|
+
rescue Aimastering::ApiError => e
|
|
141
|
+
puts "Exception when calling UserApi->send_invitation: #{e}"
|
|
142
|
+
end
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Parameters
|
|
146
|
+
|
|
147
|
+
Name | Type | Description | Notes
|
|
148
|
+
------------- | ------------- | ------------- | -------------
|
|
149
|
+
**invitee_email** | **String**| The email of invitee. |
|
|
150
|
+
|
|
151
|
+
### Return type
|
|
152
|
+
|
|
153
|
+
[**User**](User.md)
|
|
154
|
+
|
|
155
|
+
### Authorization
|
|
156
|
+
|
|
157
|
+
[bearer](../README.md#bearer)
|
|
158
|
+
|
|
159
|
+
### HTTP request headers
|
|
160
|
+
|
|
161
|
+
- **Content-Type**: multipart/form-data
|
|
162
|
+
- **Accept**: application/json
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
57
166
|
# **update_self**
|
|
58
167
|
> User update_self(opts)
|
|
59
168
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Aimastering::UserStatistics
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**registration_invitation_count** | **Integer** | | [optional]
|
|
7
|
+
**subscription_invitation_count** | **Integer** | | [optional]
|
|
8
|
+
**mastering_count** | **Integer** | | [optional]
|
|
9
|
+
**monthly_registration_invitation_count** | **Integer** | | [optional]
|
|
10
|
+
**monthly_subscription_invitation_count** | **Integer** | | [optional]
|
|
11
|
+
**monthly_mastering_count** | **Integer** | | [optional]
|
|
12
|
+
|
|
13
|
+
|
data/docs/VideoApi.md
CHANGED
data/lib/aimastering.rb
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
|
-
Contact:
|
|
7
|
+
Contact: info@bakuage.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.3.1
|
|
10
10
|
|
|
@@ -18,6 +18,7 @@ require 'aimastering/configuration'
|
|
|
18
18
|
|
|
19
19
|
# Models
|
|
20
20
|
require 'aimastering/models/access_token'
|
|
21
|
+
require 'aimastering/models/amazon_subscription'
|
|
21
22
|
require 'aimastering/models/anonymized_mastering'
|
|
22
23
|
require 'aimastering/models/audio'
|
|
23
24
|
require 'aimastering/models/audio_analysis'
|
|
@@ -26,9 +27,11 @@ require 'aimastering/models/config'
|
|
|
26
27
|
require 'aimastering/models/config_auth0'
|
|
27
28
|
require 'aimastering/models/config_paypal'
|
|
28
29
|
require 'aimastering/models/config_stripe'
|
|
30
|
+
require 'aimastering/models/config_version'
|
|
29
31
|
require 'aimastering/models/external_search_result'
|
|
30
32
|
require 'aimastering/models/external_search_result_itunes'
|
|
31
33
|
require 'aimastering/models/external_search_result_youtube'
|
|
34
|
+
require 'aimastering/models/group_buy_statistics'
|
|
32
35
|
require 'aimastering/models/jwt'
|
|
33
36
|
require 'aimastering/models/kpi'
|
|
34
37
|
require 'aimastering/models/library_audio'
|
|
@@ -38,13 +41,16 @@ require 'aimastering/models/mastering'
|
|
|
38
41
|
require 'aimastering/models/payment'
|
|
39
42
|
require 'aimastering/models/payment_customer'
|
|
40
43
|
require 'aimastering/models/plan'
|
|
44
|
+
require 'aimastering/models/sp_subscription'
|
|
41
45
|
require 'aimastering/models/subscription'
|
|
42
46
|
require 'aimastering/models/user'
|
|
47
|
+
require 'aimastering/models/user_statistics'
|
|
43
48
|
require 'aimastering/models/video'
|
|
44
49
|
require 'aimastering/models/video_download_token'
|
|
45
50
|
|
|
46
51
|
# APIs
|
|
47
52
|
require 'aimastering/api/access_token_api'
|
|
53
|
+
require 'aimastering/api/amazon_subscription_api'
|
|
48
54
|
require 'aimastering/api/audio_api'
|
|
49
55
|
require 'aimastering/api/config_api'
|
|
50
56
|
require 'aimastering/api/external_search_api'
|
|
@@ -53,6 +59,7 @@ require 'aimastering/api/mastering_api'
|
|
|
53
59
|
require 'aimastering/api/payment_api'
|
|
54
60
|
require 'aimastering/api/payment_customer_api'
|
|
55
61
|
require 'aimastering/api/plan_api'
|
|
62
|
+
require 'aimastering/api/sp_subscription_api'
|
|
56
63
|
require 'aimastering/api/statistics_api'
|
|
57
64
|
require 'aimastering/api/subscription_api'
|
|
58
65
|
require 'aimastering/api/user_api'
|