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
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.12.
|
6
|
+
The version of the OpenAPI document: 1.12.24
|
7
7
|
Contact: info@songtradr.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
@@ -68,6 +68,8 @@ module SongtradrApiClientRuby
|
|
68
68
|
|
69
69
|
if attributes.key?(:'track_no')
|
70
70
|
self.track_no = attributes[:'track_no']
|
71
|
+
else
|
72
|
+
self.track_no = nil
|
71
73
|
end
|
72
74
|
|
73
75
|
if attributes.key?(:'set_no')
|
@@ -76,12 +78,15 @@ module SongtradrApiClientRuby
|
|
76
78
|
|
77
79
|
if attributes.key?(:'product')
|
78
80
|
self.product = attributes[:'product']
|
81
|
+
else
|
82
|
+
self.product = nil
|
79
83
|
end
|
80
84
|
end
|
81
85
|
|
82
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
83
87
|
# @return Array for valid properties with the reasons
|
84
88
|
def list_invalid_properties
|
89
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
85
90
|
invalid_properties = Array.new
|
86
91
|
if @track_no.nil?
|
87
92
|
invalid_properties.push('invalid value for "track_no", track_no cannot be nil.')
|
@@ -97,6 +102,7 @@ module SongtradrApiClientRuby
|
|
97
102
|
# Check to see if the all the properties in the model are valid
|
98
103
|
# @return true if the model is valid
|
99
104
|
def valid?
|
105
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
100
106
|
return false if @track_no.nil?
|
101
107
|
return false if @product.nil?
|
102
108
|
true
|
@@ -128,37 +134,30 @@ module SongtradrApiClientRuby
|
|
128
134
|
# @param [Hash] attributes Model attributes in the form of hash
|
129
135
|
# @return [Object] Returns the model itself
|
130
136
|
def self.build_from_hash(attributes)
|
131
|
-
new.build_from_hash(attributes)
|
132
|
-
end
|
133
|
-
|
134
|
-
# Builds the object from hash
|
135
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
-
# @return [Object] Returns the model itself
|
137
|
-
def build_from_hash(attributes)
|
138
137
|
return nil unless attributes.is_a?(Hash)
|
139
138
|
attributes = attributes.transform_keys(&:to_sym)
|
140
|
-
|
141
|
-
|
142
|
-
|
139
|
+
transformed_hash = {}
|
140
|
+
openapi_types.each_pair do |key, type|
|
141
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
142
|
+
transformed_hash["#{key}"] = nil
|
143
143
|
elsif type =~ /\AArray<(.*)>/i
|
144
144
|
# check to ensure the input is an array given that the attribute
|
145
145
|
# is documented as an array but the input is not
|
146
|
-
if attributes[
|
147
|
-
|
146
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
147
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
148
148
|
end
|
149
|
-
elsif !attributes[
|
150
|
-
|
149
|
+
elsif !attributes[attribute_map[key]].nil?
|
150
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
151
151
|
end
|
152
152
|
end
|
153
|
-
|
154
|
-
self
|
153
|
+
new(transformed_hash)
|
155
154
|
end
|
156
155
|
|
157
156
|
# Deserializes the data based on type
|
158
157
|
# @param string type Data type
|
159
158
|
# @param string value Value to be deserialized
|
160
159
|
# @return [Object] Deserialized data
|
161
|
-
def _deserialize(type, value)
|
160
|
+
def self._deserialize(type, value)
|
162
161
|
case type.to_sym
|
163
162
|
when :Time
|
164
163
|
Time.parse(value)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.12.
|
6
|
+
The version of the OpenAPI document: 1.12.24
|
7
7
|
Contact: info@songtradr.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
@@ -63,16 +63,21 @@ module SongtradrApiClientRuby
|
|
63
63
|
|
64
64
|
if attributes.key?(:'token')
|
65
65
|
self.token = attributes[:'token']
|
66
|
+
else
|
67
|
+
self.token = nil
|
66
68
|
end
|
67
69
|
|
68
70
|
if attributes.key?(:'password')
|
69
71
|
self.password = attributes[:'password']
|
72
|
+
else
|
73
|
+
self.password = nil
|
70
74
|
end
|
71
75
|
end
|
72
76
|
|
73
77
|
# Show invalid properties with the reasons. Usually used together with valid?
|
74
78
|
# @return Array for valid properties with the reasons
|
75
79
|
def list_invalid_properties
|
80
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
76
81
|
invalid_properties = Array.new
|
77
82
|
if @token.nil?
|
78
83
|
invalid_properties.push('invalid value for "token", token cannot be nil.')
|
@@ -88,6 +93,7 @@ module SongtradrApiClientRuby
|
|
88
93
|
# Check to see if the all the properties in the model are valid
|
89
94
|
# @return true if the model is valid
|
90
95
|
def valid?
|
96
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
91
97
|
return false if @token.nil?
|
92
98
|
return false if @password.nil?
|
93
99
|
true
|
@@ -118,37 +124,30 @@ module SongtradrApiClientRuby
|
|
118
124
|
# @param [Hash] attributes Model attributes in the form of hash
|
119
125
|
# @return [Object] Returns the model itself
|
120
126
|
def self.build_from_hash(attributes)
|
121
|
-
new.build_from_hash(attributes)
|
122
|
-
end
|
123
|
-
|
124
|
-
# Builds the object from hash
|
125
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
126
|
-
# @return [Object] Returns the model itself
|
127
|
-
def build_from_hash(attributes)
|
128
127
|
return nil unless attributes.is_a?(Hash)
|
129
128
|
attributes = attributes.transform_keys(&:to_sym)
|
130
|
-
|
131
|
-
|
132
|
-
|
129
|
+
transformed_hash = {}
|
130
|
+
openapi_types.each_pair do |key, type|
|
131
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
132
|
+
transformed_hash["#{key}"] = nil
|
133
133
|
elsif type =~ /\AArray<(.*)>/i
|
134
134
|
# check to ensure the input is an array given that the attribute
|
135
135
|
# is documented as an array but the input is not
|
136
|
-
if attributes[
|
137
|
-
|
136
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
137
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
138
138
|
end
|
139
|
-
elsif !attributes[
|
140
|
-
|
139
|
+
elsif !attributes[attribute_map[key]].nil?
|
140
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
141
141
|
end
|
142
142
|
end
|
143
|
-
|
144
|
-
self
|
143
|
+
new(transformed_hash)
|
145
144
|
end
|
146
145
|
|
147
146
|
# Deserializes the data based on type
|
148
147
|
# @param string type Data type
|
149
148
|
# @param string value Value to be deserialized
|
150
149
|
# @return [Object] Deserialized data
|
151
|
-
def _deserialize(type, value)
|
150
|
+
def self._deserialize(type, value)
|
152
151
|
case type.to_sym
|
153
152
|
when :Time
|
154
153
|
Time.parse(value)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.12.
|
6
|
+
The version of the OpenAPI document: 1.12.24
|
7
7
|
Contact: info@songtradr.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
@@ -66,6 +66,7 @@ module SongtradrApiClientRuby
|
|
66
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
67
67
|
# @return Array for valid properties with the reasons
|
68
68
|
def list_invalid_properties
|
69
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
69
70
|
invalid_properties = Array.new
|
70
71
|
invalid_properties
|
71
72
|
end
|
@@ -73,6 +74,7 @@ module SongtradrApiClientRuby
|
|
73
74
|
# Check to see if the all the properties in the model are valid
|
74
75
|
# @return true if the model is valid
|
75
76
|
def valid?
|
77
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
76
78
|
true
|
77
79
|
end
|
78
80
|
|
@@ -100,37 +102,30 @@ module SongtradrApiClientRuby
|
|
100
102
|
# @param [Hash] attributes Model attributes in the form of hash
|
101
103
|
# @return [Object] Returns the model itself
|
102
104
|
def self.build_from_hash(attributes)
|
103
|
-
new.build_from_hash(attributes)
|
104
|
-
end
|
105
|
-
|
106
|
-
# Builds the object from hash
|
107
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
-
# @return [Object] Returns the model itself
|
109
|
-
def build_from_hash(attributes)
|
110
105
|
return nil unless attributes.is_a?(Hash)
|
111
106
|
attributes = attributes.transform_keys(&:to_sym)
|
112
|
-
|
113
|
-
|
114
|
-
|
107
|
+
transformed_hash = {}
|
108
|
+
openapi_types.each_pair do |key, type|
|
109
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
110
|
+
transformed_hash["#{key}"] = nil
|
115
111
|
elsif type =~ /\AArray<(.*)>/i
|
116
112
|
# check to ensure the input is an array given that the attribute
|
117
113
|
# is documented as an array but the input is not
|
118
|
-
if attributes[
|
119
|
-
|
114
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
115
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
120
116
|
end
|
121
|
-
elsif !attributes[
|
122
|
-
|
117
|
+
elsif !attributes[attribute_map[key]].nil?
|
118
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
123
119
|
end
|
124
120
|
end
|
125
|
-
|
126
|
-
self
|
121
|
+
new(transformed_hash)
|
127
122
|
end
|
128
123
|
|
129
124
|
# Deserializes the data based on type
|
130
125
|
# @param string type Data type
|
131
126
|
# @param string value Value to be deserialized
|
132
127
|
# @return [Object] Deserialized data
|
133
|
-
def _deserialize(type, value)
|
128
|
+
def self._deserialize(type, value)
|
134
129
|
case type.to_sym
|
135
130
|
when :Time
|
136
131
|
Time.parse(value)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.12.
|
6
|
+
The version of the OpenAPI document: 1.12.24
|
7
7
|
Contact: info@songtradr.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
@@ -48,6 +48,26 @@ module SongtradrApiClientRuby
|
|
48
48
|
|
49
49
|
attr_accessor :editor_allowed
|
50
50
|
|
51
|
+
attr_accessor :insights_allowed
|
52
|
+
|
53
|
+
attr_accessor :genres_allowed
|
54
|
+
|
55
|
+
attr_accessor :moods_allowed
|
56
|
+
|
57
|
+
attr_accessor :instrumentation_allowed
|
58
|
+
|
59
|
+
attr_accessor :sound_features_allowed
|
60
|
+
|
61
|
+
attr_accessor :tonal_features_allowed
|
62
|
+
|
63
|
+
attr_accessor :rhythm_features_allowed
|
64
|
+
|
65
|
+
attr_accessor :audience_allowed
|
66
|
+
|
67
|
+
attr_accessor :origin_allowed
|
68
|
+
|
69
|
+
attr_accessor :quality_allowed
|
70
|
+
|
51
71
|
attr_accessor :reduced_musical_features
|
52
72
|
|
53
73
|
attr_accessor :confirmed
|
@@ -75,6 +95,16 @@ module SongtradrApiClientRuby
|
|
75
95
|
:'audiotagging_allowed' => :'audiotaggingAllowed',
|
76
96
|
:'b2b_allowed' => :'b2bAllowed',
|
77
97
|
:'editor_allowed' => :'editorAllowed',
|
98
|
+
:'insights_allowed' => :'insightsAllowed',
|
99
|
+
:'genres_allowed' => :'genresAllowed',
|
100
|
+
:'moods_allowed' => :'moodsAllowed',
|
101
|
+
:'instrumentation_allowed' => :'instrumentationAllowed',
|
102
|
+
:'sound_features_allowed' => :'soundFeaturesAllowed',
|
103
|
+
:'tonal_features_allowed' => :'tonalFeaturesAllowed',
|
104
|
+
:'rhythm_features_allowed' => :'rhythmFeaturesAllowed',
|
105
|
+
:'audience_allowed' => :'audienceAllowed',
|
106
|
+
:'origin_allowed' => :'originAllowed',
|
107
|
+
:'quality_allowed' => :'qualityAllowed',
|
78
108
|
:'reduced_musical_features' => :'reducedMusicalFeatures',
|
79
109
|
:'confirmed' => :'confirmed',
|
80
110
|
:'language' => :'language',
|
@@ -106,6 +136,16 @@ module SongtradrApiClientRuby
|
|
106
136
|
:'audiotagging_allowed' => :'Boolean',
|
107
137
|
:'b2b_allowed' => :'Boolean',
|
108
138
|
:'editor_allowed' => :'Boolean',
|
139
|
+
:'insights_allowed' => :'Boolean',
|
140
|
+
:'genres_allowed' => :'Boolean',
|
141
|
+
:'moods_allowed' => :'Boolean',
|
142
|
+
:'instrumentation_allowed' => :'Boolean',
|
143
|
+
:'sound_features_allowed' => :'Boolean',
|
144
|
+
:'tonal_features_allowed' => :'Boolean',
|
145
|
+
:'rhythm_features_allowed' => :'Boolean',
|
146
|
+
:'audience_allowed' => :'Boolean',
|
147
|
+
:'origin_allowed' => :'Boolean',
|
148
|
+
:'quality_allowed' => :'Boolean',
|
109
149
|
:'reduced_musical_features' => :'Boolean',
|
110
150
|
:'confirmed' => :'Boolean',
|
111
151
|
:'language' => :'String',
|
@@ -136,10 +176,14 @@ module SongtradrApiClientRuby
|
|
136
176
|
|
137
177
|
if attributes.key?(:'username')
|
138
178
|
self.username = attributes[:'username']
|
179
|
+
else
|
180
|
+
self.username = nil
|
139
181
|
end
|
140
182
|
|
141
183
|
if attributes.key?(:'email_address')
|
142
184
|
self.email_address = attributes[:'email_address']
|
185
|
+
else
|
186
|
+
self.email_address = nil
|
143
187
|
end
|
144
188
|
|
145
189
|
if attributes.key?(:'company_name')
|
@@ -148,66 +192,158 @@ module SongtradrApiClientRuby
|
|
148
192
|
|
149
193
|
if attributes.key?(:'is_admin')
|
150
194
|
self.is_admin = attributes[:'is_admin']
|
195
|
+
else
|
196
|
+
self.is_admin = nil
|
151
197
|
end
|
152
198
|
|
153
199
|
if attributes.key?(:'full_search_allowed')
|
154
200
|
self.full_search_allowed = attributes[:'full_search_allowed']
|
201
|
+
else
|
202
|
+
self.full_search_allowed = nil
|
155
203
|
end
|
156
204
|
|
157
205
|
if attributes.key?(:'voice_search_allowed')
|
158
206
|
self.voice_search_allowed = attributes[:'voice_search_allowed']
|
207
|
+
else
|
208
|
+
self.voice_search_allowed = nil
|
159
209
|
end
|
160
210
|
|
161
211
|
if attributes.key?(:'recording_detail_allowed')
|
162
212
|
self.recording_detail_allowed = attributes[:'recording_detail_allowed']
|
213
|
+
else
|
214
|
+
self.recording_detail_allowed = nil
|
163
215
|
end
|
164
216
|
|
165
217
|
if attributes.key?(:'artist_detail_allowed')
|
166
218
|
self.artist_detail_allowed = attributes[:'artist_detail_allowed']
|
219
|
+
else
|
220
|
+
self.artist_detail_allowed = nil
|
167
221
|
end
|
168
222
|
|
169
223
|
if attributes.key?(:'playlist_prediction_allowed')
|
170
224
|
self.playlist_prediction_allowed = attributes[:'playlist_prediction_allowed']
|
225
|
+
else
|
226
|
+
self.playlist_prediction_allowed = nil
|
171
227
|
end
|
172
228
|
|
173
229
|
if attributes.key?(:'widgets_allowed')
|
174
230
|
self.widgets_allowed = attributes[:'widgets_allowed']
|
231
|
+
else
|
232
|
+
self.widgets_allowed = nil
|
175
233
|
end
|
176
234
|
|
177
235
|
if attributes.key?(:'signup_allowed')
|
178
236
|
self.signup_allowed = attributes[:'signup_allowed']
|
237
|
+
else
|
238
|
+
self.signup_allowed = nil
|
179
239
|
end
|
180
240
|
|
181
241
|
if attributes.key?(:'upload_allowed')
|
182
242
|
self.upload_allowed = attributes[:'upload_allowed']
|
243
|
+
else
|
244
|
+
self.upload_allowed = nil
|
183
245
|
end
|
184
246
|
|
185
247
|
if attributes.key?(:'fingerprint_allowed')
|
186
248
|
self.fingerprint_allowed = attributes[:'fingerprint_allowed']
|
249
|
+
else
|
250
|
+
self.fingerprint_allowed = nil
|
187
251
|
end
|
188
252
|
|
189
253
|
if attributes.key?(:'audiotagging_allowed')
|
190
254
|
self.audiotagging_allowed = attributes[:'audiotagging_allowed']
|
255
|
+
else
|
256
|
+
self.audiotagging_allowed = nil
|
191
257
|
end
|
192
258
|
|
193
259
|
if attributes.key?(:'b2b_allowed')
|
194
260
|
self.b2b_allowed = attributes[:'b2b_allowed']
|
261
|
+
else
|
262
|
+
self.b2b_allowed = nil
|
195
263
|
end
|
196
264
|
|
197
265
|
if attributes.key?(:'editor_allowed')
|
198
266
|
self.editor_allowed = attributes[:'editor_allowed']
|
267
|
+
else
|
268
|
+
self.editor_allowed = nil
|
269
|
+
end
|
270
|
+
|
271
|
+
if attributes.key?(:'insights_allowed')
|
272
|
+
self.insights_allowed = attributes[:'insights_allowed']
|
273
|
+
else
|
274
|
+
self.insights_allowed = nil
|
275
|
+
end
|
276
|
+
|
277
|
+
if attributes.key?(:'genres_allowed')
|
278
|
+
self.genres_allowed = attributes[:'genres_allowed']
|
279
|
+
else
|
280
|
+
self.genres_allowed = nil
|
281
|
+
end
|
282
|
+
|
283
|
+
if attributes.key?(:'moods_allowed')
|
284
|
+
self.moods_allowed = attributes[:'moods_allowed']
|
285
|
+
else
|
286
|
+
self.moods_allowed = nil
|
287
|
+
end
|
288
|
+
|
289
|
+
if attributes.key?(:'instrumentation_allowed')
|
290
|
+
self.instrumentation_allowed = attributes[:'instrumentation_allowed']
|
291
|
+
else
|
292
|
+
self.instrumentation_allowed = nil
|
293
|
+
end
|
294
|
+
|
295
|
+
if attributes.key?(:'sound_features_allowed')
|
296
|
+
self.sound_features_allowed = attributes[:'sound_features_allowed']
|
297
|
+
else
|
298
|
+
self.sound_features_allowed = nil
|
299
|
+
end
|
300
|
+
|
301
|
+
if attributes.key?(:'tonal_features_allowed')
|
302
|
+
self.tonal_features_allowed = attributes[:'tonal_features_allowed']
|
303
|
+
else
|
304
|
+
self.tonal_features_allowed = nil
|
305
|
+
end
|
306
|
+
|
307
|
+
if attributes.key?(:'rhythm_features_allowed')
|
308
|
+
self.rhythm_features_allowed = attributes[:'rhythm_features_allowed']
|
309
|
+
else
|
310
|
+
self.rhythm_features_allowed = nil
|
311
|
+
end
|
312
|
+
|
313
|
+
if attributes.key?(:'audience_allowed')
|
314
|
+
self.audience_allowed = attributes[:'audience_allowed']
|
315
|
+
else
|
316
|
+
self.audience_allowed = nil
|
317
|
+
end
|
318
|
+
|
319
|
+
if attributes.key?(:'origin_allowed')
|
320
|
+
self.origin_allowed = attributes[:'origin_allowed']
|
321
|
+
else
|
322
|
+
self.origin_allowed = nil
|
323
|
+
end
|
324
|
+
|
325
|
+
if attributes.key?(:'quality_allowed')
|
326
|
+
self.quality_allowed = attributes[:'quality_allowed']
|
327
|
+
else
|
328
|
+
self.quality_allowed = nil
|
199
329
|
end
|
200
330
|
|
201
331
|
if attributes.key?(:'reduced_musical_features')
|
202
332
|
self.reduced_musical_features = attributes[:'reduced_musical_features']
|
333
|
+
else
|
334
|
+
self.reduced_musical_features = nil
|
203
335
|
end
|
204
336
|
|
205
337
|
if attributes.key?(:'confirmed')
|
206
338
|
self.confirmed = attributes[:'confirmed']
|
339
|
+
else
|
340
|
+
self.confirmed = nil
|
207
341
|
end
|
208
342
|
|
209
343
|
if attributes.key?(:'language')
|
210
344
|
self.language = attributes[:'language']
|
345
|
+
else
|
346
|
+
self.language = nil
|
211
347
|
end
|
212
348
|
|
213
349
|
if attributes.key?(:'admin')
|
@@ -218,6 +354,7 @@ module SongtradrApiClientRuby
|
|
218
354
|
# Show invalid properties with the reasons. Usually used together with valid?
|
219
355
|
# @return Array for valid properties with the reasons
|
220
356
|
def list_invalid_properties
|
357
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
221
358
|
invalid_properties = Array.new
|
222
359
|
if @username.nil?
|
223
360
|
invalid_properties.push('invalid value for "username", username cannot be nil.')
|
@@ -279,6 +416,46 @@ module SongtradrApiClientRuby
|
|
279
416
|
invalid_properties.push('invalid value for "editor_allowed", editor_allowed cannot be nil.')
|
280
417
|
end
|
281
418
|
|
419
|
+
if @insights_allowed.nil?
|
420
|
+
invalid_properties.push('invalid value for "insights_allowed", insights_allowed cannot be nil.')
|
421
|
+
end
|
422
|
+
|
423
|
+
if @genres_allowed.nil?
|
424
|
+
invalid_properties.push('invalid value for "genres_allowed", genres_allowed cannot be nil.')
|
425
|
+
end
|
426
|
+
|
427
|
+
if @moods_allowed.nil?
|
428
|
+
invalid_properties.push('invalid value for "moods_allowed", moods_allowed cannot be nil.')
|
429
|
+
end
|
430
|
+
|
431
|
+
if @instrumentation_allowed.nil?
|
432
|
+
invalid_properties.push('invalid value for "instrumentation_allowed", instrumentation_allowed cannot be nil.')
|
433
|
+
end
|
434
|
+
|
435
|
+
if @sound_features_allowed.nil?
|
436
|
+
invalid_properties.push('invalid value for "sound_features_allowed", sound_features_allowed cannot be nil.')
|
437
|
+
end
|
438
|
+
|
439
|
+
if @tonal_features_allowed.nil?
|
440
|
+
invalid_properties.push('invalid value for "tonal_features_allowed", tonal_features_allowed cannot be nil.')
|
441
|
+
end
|
442
|
+
|
443
|
+
if @rhythm_features_allowed.nil?
|
444
|
+
invalid_properties.push('invalid value for "rhythm_features_allowed", rhythm_features_allowed cannot be nil.')
|
445
|
+
end
|
446
|
+
|
447
|
+
if @audience_allowed.nil?
|
448
|
+
invalid_properties.push('invalid value for "audience_allowed", audience_allowed cannot be nil.')
|
449
|
+
end
|
450
|
+
|
451
|
+
if @origin_allowed.nil?
|
452
|
+
invalid_properties.push('invalid value for "origin_allowed", origin_allowed cannot be nil.')
|
453
|
+
end
|
454
|
+
|
455
|
+
if @quality_allowed.nil?
|
456
|
+
invalid_properties.push('invalid value for "quality_allowed", quality_allowed cannot be nil.')
|
457
|
+
end
|
458
|
+
|
282
459
|
if @reduced_musical_features.nil?
|
283
460
|
invalid_properties.push('invalid value for "reduced_musical_features", reduced_musical_features cannot be nil.')
|
284
461
|
end
|
@@ -297,6 +474,7 @@ module SongtradrApiClientRuby
|
|
297
474
|
# Check to see if the all the properties in the model are valid
|
298
475
|
# @return true if the model is valid
|
299
476
|
def valid?
|
477
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
300
478
|
return false if @username.nil?
|
301
479
|
return false if @email_address.nil?
|
302
480
|
return false if @is_admin.nil?
|
@@ -312,6 +490,16 @@ module SongtradrApiClientRuby
|
|
312
490
|
return false if @audiotagging_allowed.nil?
|
313
491
|
return false if @b2b_allowed.nil?
|
314
492
|
return false if @editor_allowed.nil?
|
493
|
+
return false if @insights_allowed.nil?
|
494
|
+
return false if @genres_allowed.nil?
|
495
|
+
return false if @moods_allowed.nil?
|
496
|
+
return false if @instrumentation_allowed.nil?
|
497
|
+
return false if @sound_features_allowed.nil?
|
498
|
+
return false if @tonal_features_allowed.nil?
|
499
|
+
return false if @rhythm_features_allowed.nil?
|
500
|
+
return false if @audience_allowed.nil?
|
501
|
+
return false if @origin_allowed.nil?
|
502
|
+
return false if @quality_allowed.nil?
|
315
503
|
return false if @reduced_musical_features.nil?
|
316
504
|
return false if @confirmed.nil?
|
317
505
|
return false if @language.nil?
|
@@ -339,6 +527,16 @@ module SongtradrApiClientRuby
|
|
339
527
|
audiotagging_allowed == o.audiotagging_allowed &&
|
340
528
|
b2b_allowed == o.b2b_allowed &&
|
341
529
|
editor_allowed == o.editor_allowed &&
|
530
|
+
insights_allowed == o.insights_allowed &&
|
531
|
+
genres_allowed == o.genres_allowed &&
|
532
|
+
moods_allowed == o.moods_allowed &&
|
533
|
+
instrumentation_allowed == o.instrumentation_allowed &&
|
534
|
+
sound_features_allowed == o.sound_features_allowed &&
|
535
|
+
tonal_features_allowed == o.tonal_features_allowed &&
|
536
|
+
rhythm_features_allowed == o.rhythm_features_allowed &&
|
537
|
+
audience_allowed == o.audience_allowed &&
|
538
|
+
origin_allowed == o.origin_allowed &&
|
539
|
+
quality_allowed == o.quality_allowed &&
|
342
540
|
reduced_musical_features == o.reduced_musical_features &&
|
343
541
|
confirmed == o.confirmed &&
|
344
542
|
language == o.language &&
|
@@ -354,44 +552,37 @@ module SongtradrApiClientRuby
|
|
354
552
|
# Calculates hash code according to all attributes.
|
355
553
|
# @return [Integer] Hash code
|
356
554
|
def hash
|
357
|
-
[username, email_address, company_name, is_admin, full_search_allowed, voice_search_allowed, recording_detail_allowed, artist_detail_allowed, playlist_prediction_allowed, widgets_allowed, signup_allowed, upload_allowed, fingerprint_allowed, audiotagging_allowed, b2b_allowed, editor_allowed, reduced_musical_features, confirmed, language, admin].hash
|
555
|
+
[username, email_address, company_name, is_admin, full_search_allowed, voice_search_allowed, recording_detail_allowed, artist_detail_allowed, playlist_prediction_allowed, widgets_allowed, signup_allowed, upload_allowed, fingerprint_allowed, audiotagging_allowed, b2b_allowed, editor_allowed, insights_allowed, genres_allowed, moods_allowed, instrumentation_allowed, sound_features_allowed, tonal_features_allowed, rhythm_features_allowed, audience_allowed, origin_allowed, quality_allowed, reduced_musical_features, confirmed, language, admin].hash
|
358
556
|
end
|
359
557
|
|
360
558
|
# Builds the object from hash
|
361
559
|
# @param [Hash] attributes Model attributes in the form of hash
|
362
560
|
# @return [Object] Returns the model itself
|
363
561
|
def self.build_from_hash(attributes)
|
364
|
-
new.build_from_hash(attributes)
|
365
|
-
end
|
366
|
-
|
367
|
-
# Builds the object from hash
|
368
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
369
|
-
# @return [Object] Returns the model itself
|
370
|
-
def build_from_hash(attributes)
|
371
562
|
return nil unless attributes.is_a?(Hash)
|
372
563
|
attributes = attributes.transform_keys(&:to_sym)
|
373
|
-
|
374
|
-
|
375
|
-
|
564
|
+
transformed_hash = {}
|
565
|
+
openapi_types.each_pair do |key, type|
|
566
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
567
|
+
transformed_hash["#{key}"] = nil
|
376
568
|
elsif type =~ /\AArray<(.*)>/i
|
377
569
|
# check to ensure the input is an array given that the attribute
|
378
570
|
# is documented as an array but the input is not
|
379
|
-
if attributes[
|
380
|
-
|
571
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
572
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
381
573
|
end
|
382
|
-
elsif !attributes[
|
383
|
-
|
574
|
+
elsif !attributes[attribute_map[key]].nil?
|
575
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
384
576
|
end
|
385
577
|
end
|
386
|
-
|
387
|
-
self
|
578
|
+
new(transformed_hash)
|
388
579
|
end
|
389
580
|
|
390
581
|
# Deserializes the data based on type
|
391
582
|
# @param string type Data type
|
392
583
|
# @param string value Value to be deserialized
|
393
584
|
# @return [Object] Deserialized data
|
394
|
-
def _deserialize(type, value)
|
585
|
+
def self._deserialize(type, value)
|
395
586
|
case type.to_sym
|
396
587
|
when :Time
|
397
588
|
Time.parse(value)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.12.
|
6
|
+
The version of the OpenAPI document: 1.12.24
|
7
7
|
Contact: info@songtradr.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module SongtradrApiClientRuby
|
14
|
-
VERSION = '1.12.
|
14
|
+
VERSION = '1.12.24'
|
15
15
|
end
|