songtradr_api_client_ruby 1.12.22 → 1.12.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +26 -12
- data/docs/APIKeysApi.md +217 -0
- data/docs/AdminApiUserDTO.md +70 -0
- data/docs/AllowedValuesApi.md +2 -2
- data/docs/ApiKeyDTO.md +24 -0
- data/docs/CreateApiKeyDTO.md +18 -0
- data/docs/FileSmallDTO.md +16 -16
- data/docs/MusicalFeaturesDTO.md +82 -82
- data/docs/PlaylistLargeDTO.md +9 -9
- data/docs/ProductMediumDTO.md +2 -2
- data/docs/RecordingApi.md +2 -0
- data/docs/RecordingGenrePredictionDTO.md +3 -3
- data/docs/RecordingLargeDTO.md +11 -11
- data/docs/RecordingMediumDTO.md +7 -7
- data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
- data/docs/RecordingPlaylistDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +3 -3
- data/docs/UserApi.md +4 -0
- data/docs/UserDTO.md +20 -0
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +4 -4
- data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +213 -0
- data/lib/songtradr_api_client_ruby/api/party_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +4 -1
- data/lib/songtradr_api_client_ruby/api/user_api.rb +7 -1
- data/lib/songtradr_api_client_ruby/api_client.rb +1 -1
- data/lib/songtradr_api_client_ruby/api_error.rb +1 -1
- data/lib/songtradr_api_client_ruby/configuration.rb +10 -8
- data/lib/songtradr_api_client_ruby/models/admin_api_user_dto.rb +448 -0
- data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +262 -0
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/create_api_key_dto.rb +214 -0
- data/lib/songtradr_api_client_ruby/models/error_response.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +23 -18
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +81 -76
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +529 -534
- data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +54 -57
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +35 -28
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +37 -36
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +94 -77
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +64 -51
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +28 -31
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +26 -31
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +36 -31
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +95 -18
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/tag_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/token_request.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/usage_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +210 -19
- data/lib/songtradr_api_client_ruby/version.rb +2 -2
- data/lib/songtradr_api_client_ruby.rb +5 -1
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +1 -1
- data/spec/api/allowed_values_api_spec.rb +2 -2
- data/spec/api/api_keys_api_spec.rb +70 -0
- data/spec/api/party_api_spec.rb +1 -1
- data/spec/api/playlist_api_spec.rb +1 -1
- data/spec/api/recording_api_spec.rb +2 -1
- data/spec/api/user_api_spec.rb +3 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/admin_api_user_dto_spec.rb +190 -0
- data/spec/models/api_key_dto_spec.rb +52 -0
- data/spec/models/category_medium_dto_spec.rb +1 -1
- data/spec/models/category_minimal_dto_spec.rb +1 -1
- data/spec/models/config_access_dto_spec.rb +1 -1
- data/spec/models/config_identifier_dto_spec.rb +1 -1
- data/spec/models/contributor_type_dto_spec.rb +1 -1
- data/spec/models/create_api_key_dto_spec.rb +34 -0
- data/spec/models/error_response_spec.rb +1 -1
- data/spec/models/field_summary_dto_spec.rb +1 -1
- data/spec/models/file_dto_spec.rb +1 -1
- data/spec/models/file_list_dto_spec.rb +1 -1
- data/spec/models/file_minimal_with_url_dto_spec.rb +1 -1
- data/spec/models/file_small_dto_spec.rb +15 -15
- data/spec/models/file_upload_dto_spec.rb +1 -1
- data/spec/models/file_w_ith_url_dto_spec.rb +1 -1
- data/spec/models/files_summary_dto_spec.rb +1 -1
- data/spec/models/forgot_password_dto_spec.rb +1 -1
- data/spec/models/genre_dto_spec.rb +1 -1
- data/spec/models/genre_minimal_dto_spec.rb +1 -1
- data/spec/models/genres_summary_dto_spec.rb +1 -1
- data/spec/models/init_put_recording_audio_dto_spec.rb +1 -1
- data/spec/models/jwt_token_dto_spec.rb +1 -1
- data/spec/models/login_dto_spec.rb +1 -1
- data/spec/models/musical_features_dto_spec.rb +175 -175
- data/spec/models/p_line_dto_spec.rb +1 -1
- data/spec/models/party_large_dto_spec.rb +1 -1
- data/spec/models/party_small_dto_spec.rb +1 -1
- data/spec/models/playlist_large_dto_spec.rb +10 -10
- data/spec/models/product_medium_dto_spec.rb +7 -7
- data/spec/models/product_party_dto_spec.rb +1 -1
- data/spec/models/recording_for_similarity_search_dto_spec.rb +1 -1
- data/spec/models/recording_genre_prediction_dto_spec.rb +3 -3
- data/spec/models/recording_large_dto_spec.rb +12 -12
- data/spec/models/recording_list_dto_spec.rb +1 -1
- data/spec/models/recording_medium_dto_spec.rb +9 -9
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +3 -3
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +1 -1
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +1 -1
- data/spec/models/recording_party_dto_spec.rb +1 -1
- data/spec/models/recording_playlist_dto_spec.rb +4 -4
- data/spec/models/recording_small_dto_spec.rb +4 -4
- data/spec/models/recording_tag_small_dto_spec.rb +1 -1
- data/spec/models/save_file_recording_dto_spec.rb +1 -1
- data/spec/models/save_playlist_dto_spec.rb +1 -1
- data/spec/models/save_recording_genre_dto_spec.rb +1 -1
- data/spec/models/save_recording_party_dto_spec.rb +1 -1
- data/spec/models/save_recording_playlist_dto_spec.rb +1 -1
- data/spec/models/save_recording_tag_dto_spec.rb +1 -1
- data/spec/models/save_referrer_dto_spec.rb +1 -1
- data/spec/models/save_taggrams_dto_spec.rb +1 -1
- data/spec/models/save_user_dto_spec.rb +1 -1
- data/spec/models/search_filter_values_dto_spec.rb +1 -1
- data/spec/models/search_recording_granular_abstraction_dto_spec.rb +1 -1
- data/spec/models/search_recording_granular_dto_spec.rb +1 -1
- data/spec/models/sign_up_dto_spec.rb +1 -1
- data/spec/models/tag_dto_spec.rb +1 -1
- data/spec/models/tag_small_dto_spec.rb +1 -1
- data/spec/models/taggram_dto_spec.rb +1 -1
- data/spec/models/tags_summary_dto_spec.rb +1 -1
- data/spec/models/tagstrength_dto_spec.rb +1 -1
- data/spec/models/title_dto_spec.rb +1 -1
- data/spec/models/token_request_spec.rb +1 -1
- data/spec/models/track_to_medium_product_dto_spec.rb +1 -1
- data/spec/models/update_password_dto_spec.rb +1 -1
- data/spec/models/usage_dto_spec.rb +1 -1
- data/spec/models/user_dto_spec.rb +61 -1
- data/spec/spec_helper.rb +1 -1
- metadata +72 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f66f5d36b93dd1a67f830deb98b9f9db2b28486bd1e53650c09beffdb6467005
|
4
|
+
data.tar.gz: 5130fd5e458a1606b6e23a5ba75ff0b5ec136cbc08170e1a6fbe547d2b573667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73653116ee27dc261a3a549e859d1c3a32ecb6383e180cba33d07e9c872727997fdf7fd962c4db0c5288f390137c7a7fc4cfa236307dff5645a67fbf47a88fdc
|
7
|
+
data.tar.gz: 7e5b40ba2cbf318cb0ba53367f5ee91954743793e5397fbf8a368de5df2815721c96a6b2a13a1fb069401082126d926a469098acbc4b32f1442f0b6e996100c5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
songtradr_api_client_ruby (1.12.
|
4
|
+
songtradr_api_client_ruby (1.12.24)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart
|
7
7
|
|
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
byebug (11.1.3)
|
13
13
|
coderay (1.1.3)
|
14
14
|
diff-lcs (1.5.0)
|
15
|
-
faraday (2.7.
|
15
|
+
faraday (2.7.10)
|
16
16
|
faraday-net_http (>= 2.0, < 3.1)
|
17
17
|
ruby2_keywords (>= 0.0.4)
|
18
18
|
faraday-multipart (1.0.4)
|
@@ -45,10 +45,10 @@ GEM
|
|
45
45
|
rspec-expectations (3.12.3)
|
46
46
|
diff-lcs (>= 1.2.0, < 2.0)
|
47
47
|
rspec-support (~> 3.12.0)
|
48
|
-
rspec-mocks (3.12.
|
48
|
+
rspec-mocks (3.12.6)
|
49
49
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
50
|
rspec-support (~> 3.12.0)
|
51
|
-
rspec-support (3.12.
|
51
|
+
rspec-support (3.12.1)
|
52
52
|
rubocop (0.66.0)
|
53
53
|
jaro_winkler (~> 1.5.1)
|
54
54
|
parallel (~> 1.10)
|
data/README.md
CHANGED
@@ -33,8 +33,8 @@ You can either search the released music via the /public/recording endpoints or
|
|
33
33
|
|
34
34
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
35
35
|
|
36
|
-
- API version: 1.12.
|
37
|
-
- Package version: 1.12.
|
36
|
+
- API version: 1.12.24
|
37
|
+
- Package version: 1.12.24
|
38
38
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
39
39
|
For more information, please visit [https://songtradr.com](https://songtradr.com)
|
40
40
|
|
@@ -51,16 +51,16 @@ gem build songtradr_api_client_ruby.gemspec
|
|
51
51
|
Then either install the gem locally:
|
52
52
|
|
53
53
|
```shell
|
54
|
-
gem install ./songtradr_api_client_ruby-1.12.
|
54
|
+
gem install ./songtradr_api_client_ruby-1.12.24.gem
|
55
55
|
```
|
56
56
|
|
57
|
-
(for development, run `gem install --dev ./songtradr_api_client_ruby-1.12.
|
57
|
+
(for development, run `gem install --dev ./songtradr_api_client_ruby-1.12.24.gem` to install the development dependencies)
|
58
58
|
|
59
59
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
60
60
|
|
61
61
|
Finally add this to the Gemfile:
|
62
62
|
|
63
|
-
gem 'songtradr_api_client_ruby', '~> 1.12.
|
63
|
+
gem 'songtradr_api_client_ruby', '~> 1.12.24'
|
64
64
|
|
65
65
|
### Install from Git
|
66
66
|
|
@@ -84,17 +84,25 @@ Please follow the [installation](#installation) procedure and then run the follo
|
|
84
84
|
# Load the gem
|
85
85
|
require 'songtradr_api_client_ruby'
|
86
86
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
87
|
+
# Setup authorization
|
88
|
+
SongtradrApiClientRuby.configure do |config|
|
89
|
+
# Configure Bearer authorization (JWT): bearer-jwt
|
90
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
91
|
+
# Configure a proc to get access tokens in lieu of the static access_token configuration
|
92
|
+
config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
|
93
|
+
# Configure faraday connection
|
94
|
+
config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
|
95
|
+
end
|
96
|
+
|
97
|
+
api_instance = SongtradrApiClientRuby::APIKeysApi.new
|
98
|
+
create_api_key_dto = SongtradrApiClientRuby::CreateApiKeyDTO.new # CreateApiKeyDTO |
|
91
99
|
|
92
100
|
begin
|
93
|
-
#
|
94
|
-
result = api_instance.
|
101
|
+
#create an API key
|
102
|
+
result = api_instance.create_api_key(create_api_key_dto)
|
95
103
|
p result
|
96
104
|
rescue SongtradrApiClientRuby::ApiError => e
|
97
|
-
puts "Exception when calling
|
105
|
+
puts "Exception when calling APIKeysApi->create_api_key: #{e}"
|
98
106
|
end
|
99
107
|
|
100
108
|
```
|
@@ -105,6 +113,9 @@ All URIs are relative to *https://api.songtradr.com*
|
|
105
113
|
|
106
114
|
Class | Method | HTTP request | Description
|
107
115
|
------------ | ------------- | ------------- | -------------
|
116
|
+
*SongtradrApiClientRuby::APIKeysApi* | [**create_api_key**](docs/APIKeysApi.md#create_api_key) | **POST** /api/v1/user/apiKeys | create an API key
|
117
|
+
*SongtradrApiClientRuby::APIKeysApi* | [**delete_api_key**](docs/APIKeysApi.md#delete_api_key) | **DELETE** /api/v1/user/apiKeys/{id} | delete an API key
|
118
|
+
*SongtradrApiClientRuby::APIKeysApi* | [**get_api_keys**](docs/APIKeysApi.md#get_api_keys) | **GET** /api/v1/user/apiKeys | list API keys
|
108
119
|
*SongtradrApiClientRuby::AllowedValuesApi* | [**allowed_musical_features**](docs/AllowedValuesApi.md#allowed_musical_features) | **GET** /api/v1/allowedValues/musicalFeatures | Allowed values for music descriptive parameters to be used in the searchAll endpoint.
|
109
120
|
*SongtradrApiClientRuby::AllowedValuesApi* | [**genres**](docs/AllowedValuesApi.md#genres) | **GET** /api/v1/allowedValues/genre | Allowed values for genres.
|
110
121
|
*SongtradrApiClientRuby::AllowedValuesApi* | [**tags**](docs/AllowedValuesApi.md#tags) | **GET** /api/v1/allowedValues/tag | All descriptive tags inside of tag-categories.
|
@@ -147,11 +158,14 @@ Class | Method | HTTP request | Description
|
|
147
158
|
|
148
159
|
## Documentation for Models
|
149
160
|
|
161
|
+
- [SongtradrApiClientRuby::AdminApiUserDTO](docs/AdminApiUserDTO.md)
|
162
|
+
- [SongtradrApiClientRuby::ApiKeyDTO](docs/ApiKeyDTO.md)
|
150
163
|
- [SongtradrApiClientRuby::CategoryMediumDTO](docs/CategoryMediumDTO.md)
|
151
164
|
- [SongtradrApiClientRuby::CategoryMinimalDTO](docs/CategoryMinimalDTO.md)
|
152
165
|
- [SongtradrApiClientRuby::ConfigAccessDTO](docs/ConfigAccessDTO.md)
|
153
166
|
- [SongtradrApiClientRuby::ConfigIdentifierDTO](docs/ConfigIdentifierDTO.md)
|
154
167
|
- [SongtradrApiClientRuby::ContributorTypeDTO](docs/ContributorTypeDTO.md)
|
168
|
+
- [SongtradrApiClientRuby::CreateApiKeyDTO](docs/CreateApiKeyDTO.md)
|
155
169
|
- [SongtradrApiClientRuby::ErrorResponse](docs/ErrorResponse.md)
|
156
170
|
- [SongtradrApiClientRuby::FieldSummaryDTO](docs/FieldSummaryDTO.md)
|
157
171
|
- [SongtradrApiClientRuby::FileDTO](docs/FileDTO.md)
|
data/docs/APIKeysApi.md
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
# SongtradrApiClientRuby::APIKeysApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.songtradr.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_api_key**](APIKeysApi.md#create_api_key) | **POST** /api/v1/user/apiKeys | create an API key |
|
8
|
+
| [**delete_api_key**](APIKeysApi.md#delete_api_key) | **DELETE** /api/v1/user/apiKeys/{id} | delete an API key |
|
9
|
+
| [**get_api_keys**](APIKeysApi.md#get_api_keys) | **GET** /api/v1/user/apiKeys | list API keys |
|
10
|
+
|
11
|
+
|
12
|
+
## create_api_key
|
13
|
+
|
14
|
+
> <AdminApiUserDTO> create_api_key(create_api_key_dto)
|
15
|
+
|
16
|
+
create an API key
|
17
|
+
|
18
|
+
### Examples
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'time'
|
22
|
+
require 'songtradr_api_client_ruby'
|
23
|
+
# setup authorization
|
24
|
+
SongtradrApiClientRuby.configure do |config|
|
25
|
+
# Configure Bearer authorization (JWT): bearer-jwt
|
26
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = SongtradrApiClientRuby::APIKeysApi.new
|
30
|
+
create_api_key_dto = SongtradrApiClientRuby::CreateApiKeyDTO.new # CreateApiKeyDTO |
|
31
|
+
|
32
|
+
begin
|
33
|
+
# create an API key
|
34
|
+
result = api_instance.create_api_key(create_api_key_dto)
|
35
|
+
p result
|
36
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
37
|
+
puts "Error when calling APIKeysApi->create_api_key: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
#### Using the create_api_key_with_http_info variant
|
42
|
+
|
43
|
+
This returns an Array which contains the response data, status code and headers.
|
44
|
+
|
45
|
+
> <Array(<AdminApiUserDTO>, Integer, Hash)> create_api_key_with_http_info(create_api_key_dto)
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
begin
|
49
|
+
# create an API key
|
50
|
+
data, status_code, headers = api_instance.create_api_key_with_http_info(create_api_key_dto)
|
51
|
+
p status_code # => 2xx
|
52
|
+
p headers # => { ... }
|
53
|
+
p data # => <AdminApiUserDTO>
|
54
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
55
|
+
puts "Error when calling APIKeysApi->create_api_key_with_http_info: #{e}"
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
### Parameters
|
60
|
+
|
61
|
+
| Name | Type | Description | Notes |
|
62
|
+
| ---- | ---- | ----------- | ----- |
|
63
|
+
| **create_api_key_dto** | [**CreateApiKeyDTO**](CreateApiKeyDTO.md) | | |
|
64
|
+
|
65
|
+
### Return type
|
66
|
+
|
67
|
+
[**AdminApiUserDTO**](AdminApiUserDTO.md)
|
68
|
+
|
69
|
+
### Authorization
|
70
|
+
|
71
|
+
[bearer-jwt](../README.md#bearer-jwt)
|
72
|
+
|
73
|
+
### HTTP request headers
|
74
|
+
|
75
|
+
- **Content-Type**: application/json
|
76
|
+
- **Accept**: application/json
|
77
|
+
|
78
|
+
|
79
|
+
## delete_api_key
|
80
|
+
|
81
|
+
> Object delete_api_key(id)
|
82
|
+
|
83
|
+
delete an API key
|
84
|
+
|
85
|
+
### Examples
|
86
|
+
|
87
|
+
```ruby
|
88
|
+
require 'time'
|
89
|
+
require 'songtradr_api_client_ruby'
|
90
|
+
# setup authorization
|
91
|
+
SongtradrApiClientRuby.configure do |config|
|
92
|
+
# Configure Bearer authorization (JWT): bearer-jwt
|
93
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
94
|
+
end
|
95
|
+
|
96
|
+
api_instance = SongtradrApiClientRuby::APIKeysApi.new
|
97
|
+
id = 'id_example' # String |
|
98
|
+
|
99
|
+
begin
|
100
|
+
# delete an API key
|
101
|
+
result = api_instance.delete_api_key(id)
|
102
|
+
p result
|
103
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
104
|
+
puts "Error when calling APIKeysApi->delete_api_key: #{e}"
|
105
|
+
end
|
106
|
+
```
|
107
|
+
|
108
|
+
#### Using the delete_api_key_with_http_info variant
|
109
|
+
|
110
|
+
This returns an Array which contains the response data, status code and headers.
|
111
|
+
|
112
|
+
> <Array(Object, Integer, Hash)> delete_api_key_with_http_info(id)
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
begin
|
116
|
+
# delete an API key
|
117
|
+
data, status_code, headers = api_instance.delete_api_key_with_http_info(id)
|
118
|
+
p status_code # => 2xx
|
119
|
+
p headers # => { ... }
|
120
|
+
p data # => Object
|
121
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
122
|
+
puts "Error when calling APIKeysApi->delete_api_key_with_http_info: #{e}"
|
123
|
+
end
|
124
|
+
```
|
125
|
+
|
126
|
+
### Parameters
|
127
|
+
|
128
|
+
| Name | Type | Description | Notes |
|
129
|
+
| ---- | ---- | ----------- | ----- |
|
130
|
+
| **id** | **String** | | |
|
131
|
+
|
132
|
+
### Return type
|
133
|
+
|
134
|
+
**Object**
|
135
|
+
|
136
|
+
### Authorization
|
137
|
+
|
138
|
+
[bearer-jwt](../README.md#bearer-jwt)
|
139
|
+
|
140
|
+
### HTTP request headers
|
141
|
+
|
142
|
+
- **Content-Type**: Not defined
|
143
|
+
- **Accept**: application/json
|
144
|
+
|
145
|
+
|
146
|
+
## get_api_keys
|
147
|
+
|
148
|
+
> <Array<ApiKeyDTO>> get_api_keys(opts)
|
149
|
+
|
150
|
+
list API keys
|
151
|
+
|
152
|
+
### Examples
|
153
|
+
|
154
|
+
```ruby
|
155
|
+
require 'time'
|
156
|
+
require 'songtradr_api_client_ruby'
|
157
|
+
# setup authorization
|
158
|
+
SongtradrApiClientRuby.configure do |config|
|
159
|
+
# Configure Bearer authorization (JWT): bearer-jwt
|
160
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
161
|
+
end
|
162
|
+
|
163
|
+
api_instance = SongtradrApiClientRuby::APIKeysApi.new
|
164
|
+
opts = {
|
165
|
+
page: 56, # Integer | Zero-based page index (0..N)
|
166
|
+
size: 56, # Integer | The size of the page to be returned
|
167
|
+
sort: ['inner_example'] # Array<String> | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
168
|
+
}
|
169
|
+
|
170
|
+
begin
|
171
|
+
# list API keys
|
172
|
+
result = api_instance.get_api_keys(opts)
|
173
|
+
p result
|
174
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
175
|
+
puts "Error when calling APIKeysApi->get_api_keys: #{e}"
|
176
|
+
end
|
177
|
+
```
|
178
|
+
|
179
|
+
#### Using the get_api_keys_with_http_info variant
|
180
|
+
|
181
|
+
This returns an Array which contains the response data, status code and headers.
|
182
|
+
|
183
|
+
> <Array(<Array<ApiKeyDTO>>, Integer, Hash)> get_api_keys_with_http_info(opts)
|
184
|
+
|
185
|
+
```ruby
|
186
|
+
begin
|
187
|
+
# list API keys
|
188
|
+
data, status_code, headers = api_instance.get_api_keys_with_http_info(opts)
|
189
|
+
p status_code # => 2xx
|
190
|
+
p headers # => { ... }
|
191
|
+
p data # => <Array<ApiKeyDTO>>
|
192
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
193
|
+
puts "Error when calling APIKeysApi->get_api_keys_with_http_info: #{e}"
|
194
|
+
end
|
195
|
+
```
|
196
|
+
|
197
|
+
### Parameters
|
198
|
+
|
199
|
+
| Name | Type | Description | Notes |
|
200
|
+
| ---- | ---- | ----------- | ----- |
|
201
|
+
| **page** | **Integer** | Zero-based page index (0..N) | [optional][default to 0] |
|
202
|
+
| **size** | **Integer** | The size of the page to be returned | [optional][default to 20] |
|
203
|
+
| **sort** | [**Array<String>**](String.md) | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [optional] |
|
204
|
+
|
205
|
+
### Return type
|
206
|
+
|
207
|
+
[**Array<ApiKeyDTO>**](ApiKeyDTO.md)
|
208
|
+
|
209
|
+
### Authorization
|
210
|
+
|
211
|
+
[bearer-jwt](../README.md#bearer-jwt)
|
212
|
+
|
213
|
+
### HTTP request headers
|
214
|
+
|
215
|
+
- **Content-Type**: Not defined
|
216
|
+
- **Accept**: application/json
|
217
|
+
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# SongtradrApiClientRuby::AdminApiUserDTO
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | | [optional] |
|
8
|
+
| **username** | **String** | | [optional] |
|
9
|
+
| **email** | **String** | | [optional] |
|
10
|
+
| **full_name** | **String** | | [optional] |
|
11
|
+
| **language** | **String** | | [optional] |
|
12
|
+
| **is_admin** | **Boolean** | | [optional] |
|
13
|
+
| **widgets_allowed** | **Boolean** | | [optional] |
|
14
|
+
| **full_search_allowed** | **Boolean** | | [optional] |
|
15
|
+
| **voice_search_allowed** | **Boolean** | | [optional] |
|
16
|
+
| **recording_detail_allowed** | **Boolean** | | [optional] |
|
17
|
+
| **artist_detail_allowed** | **Boolean** | | [optional] |
|
18
|
+
| **playlist_prediction_allowed** | **Boolean** | | [optional] |
|
19
|
+
| **signup_allowed** | **Boolean** | | [optional] |
|
20
|
+
| **upload_allowed** | **Boolean** | | [optional] |
|
21
|
+
| **fingerprint_allowed** | **Boolean** | | [optional] |
|
22
|
+
| **audiotagging_allowed** | **Boolean** | | [optional] |
|
23
|
+
| **b2b_allowed** | **Boolean** | | [optional] |
|
24
|
+
| **editor_allowed** | **Boolean** | | [optional] |
|
25
|
+
| **reduced_musical_features** | **Boolean** | | [optional] |
|
26
|
+
| **confirmed** | **Boolean** | | [optional] |
|
27
|
+
| **gdpr_confirmation_timestamp** | **Time** | | [optional] |
|
28
|
+
| **last_login** | **Time** | | [optional] |
|
29
|
+
| **total_logins** | **Integer** | | [optional] |
|
30
|
+
| **total_searches** | **Integer** | | [optional] |
|
31
|
+
| **total_uploads** | **Integer** | | [optional] |
|
32
|
+
| **total_downloads** | **Integer** | | [optional] |
|
33
|
+
| **total_updates** | **Integer** | | [optional] |
|
34
|
+
|
35
|
+
## Example
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
require 'songtradr_api_client_ruby'
|
39
|
+
|
40
|
+
instance = SongtradrApiClientRuby::AdminApiUserDTO.new(
|
41
|
+
id: null,
|
42
|
+
username: null,
|
43
|
+
email: null,
|
44
|
+
full_name: null,
|
45
|
+
language: null,
|
46
|
+
is_admin: null,
|
47
|
+
widgets_allowed: null,
|
48
|
+
full_search_allowed: null,
|
49
|
+
voice_search_allowed: null,
|
50
|
+
recording_detail_allowed: null,
|
51
|
+
artist_detail_allowed: null,
|
52
|
+
playlist_prediction_allowed: null,
|
53
|
+
signup_allowed: null,
|
54
|
+
upload_allowed: null,
|
55
|
+
fingerprint_allowed: null,
|
56
|
+
audiotagging_allowed: null,
|
57
|
+
b2b_allowed: null,
|
58
|
+
editor_allowed: null,
|
59
|
+
reduced_musical_features: null,
|
60
|
+
confirmed: null,
|
61
|
+
gdpr_confirmation_timestamp: null,
|
62
|
+
last_login: null,
|
63
|
+
total_logins: null,
|
64
|
+
total_searches: null,
|
65
|
+
total_uploads: null,
|
66
|
+
total_downloads: null,
|
67
|
+
total_updates: null
|
68
|
+
)
|
69
|
+
```
|
70
|
+
|
data/docs/AllowedValuesApi.md
CHANGED
@@ -86,7 +86,7 @@ require 'time'
|
|
86
86
|
require 'songtradr_api_client_ruby'
|
87
87
|
|
88
88
|
api_instance = SongtradrApiClientRuby::AllowedValuesApi.new
|
89
|
-
genre_type = '
|
89
|
+
genre_type = 'musicubeLevel1Genre' # String | Type of the response should have. Deprecated: level1Genre, level2Genre - use musicubeLevel1Genre, musicubeLevel2Genre instead.
|
90
90
|
|
91
91
|
begin
|
92
92
|
# Allowed values for genres.
|
@@ -119,7 +119,7 @@ end
|
|
119
119
|
|
120
120
|
| Name | Type | Description | Notes |
|
121
121
|
| ---- | ---- | ----------- | ----- |
|
122
|
-
| **genre_type** | **String** | Type of the response should have. | |
|
122
|
+
| **genre_type** | **String** | Type of the response should have. Deprecated: level1Genre, level2Genre - use musicubeLevel1Genre, musicubeLevel2Genre instead. | |
|
123
123
|
|
124
124
|
### Return type
|
125
125
|
|
data/docs/ApiKeyDTO.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# SongtradrApiClientRuby::ApiKeyDTO
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | |
|
8
|
+
| **last_used_at** | **Time** | | [optional] |
|
9
|
+
| **created_at** | **Time** | | |
|
10
|
+
| **id** | **String** | | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'songtradr_api_client_ruby'
|
16
|
+
|
17
|
+
instance = SongtradrApiClientRuby::ApiKeyDTO.new(
|
18
|
+
name: null,
|
19
|
+
last_used_at: null,
|
20
|
+
created_at: null,
|
21
|
+
id: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# SongtradrApiClientRuby::CreateApiKeyDTO
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'songtradr_api_client_ruby'
|
13
|
+
|
14
|
+
instance = SongtradrApiClientRuby::CreateApiKeyDTO.new(
|
15
|
+
name: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/FileSmallDTO.md
CHANGED
@@ -8,17 +8,17 @@
|
|
8
8
|
| **id** | **Integer** | | |
|
9
9
|
| **extension** | **String** | extension of the file | |
|
10
10
|
| **error_message** | **String** | | [optional] |
|
11
|
-
| **
|
12
|
-
| **object_key** | **String** | | |
|
13
|
-
| **upload_start_time** | **Time** | | [optional] |
|
14
|
-
| **upload_end_time** | **Time** | | [optional] |
|
15
|
-
| **fingerprint_status** | **String** | status of the audio recognition | [optional] |
|
16
|
-
| **fingerprint_start_time** | **Time** | | [optional] |
|
11
|
+
| **error_time** | **Time** | | [optional] |
|
17
12
|
| **fingerprint_end_time** | **Time** | | [optional] |
|
18
|
-
| **inference_status** | **String** | status of the auto-tagging | [optional] |
|
19
13
|
| **inference_start_time** | **Time** | | [optional] |
|
14
|
+
| **fingerprint_start_time** | **Time** | | [optional] |
|
15
|
+
| **fingerprint_status** | **String** | status of the audio recognition | [optional] |
|
16
|
+
| **inference_status** | **String** | status of the auto-tagging | [optional] |
|
20
17
|
| **inference_end_time** | **Time** | | [optional] |
|
21
|
-
| **
|
18
|
+
| **folder** | **String** | | |
|
19
|
+
| **upload_end_time** | **Time** | | [optional] |
|
20
|
+
| **upload_start_time** | **Time** | | [optional] |
|
21
|
+
| **object_key** | **String** | | |
|
22
22
|
|
23
23
|
## Example
|
24
24
|
|
@@ -30,17 +30,17 @@ instance = SongtradrApiClientRuby::FileSmallDTO.new(
|
|
30
30
|
id: null,
|
31
31
|
extension: null,
|
32
32
|
error_message: null,
|
33
|
-
|
34
|
-
object_key: null,
|
35
|
-
upload_start_time: null,
|
36
|
-
upload_end_time: null,
|
37
|
-
fingerprint_status: null,
|
38
|
-
fingerprint_start_time: null,
|
33
|
+
error_time: null,
|
39
34
|
fingerprint_end_time: null,
|
40
|
-
inference_status: null,
|
41
35
|
inference_start_time: null,
|
36
|
+
fingerprint_start_time: null,
|
37
|
+
fingerprint_status: null,
|
38
|
+
inference_status: null,
|
42
39
|
inference_end_time: null,
|
43
|
-
|
40
|
+
folder: null,
|
41
|
+
upload_end_time: null,
|
42
|
+
upload_start_time: null,
|
43
|
+
object_key: null
|
44
44
|
)
|
45
45
|
```
|
46
46
|
|