songtradr_api_client_ruby 1.12.23 → 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 +1 -1
- data/README.md +5 -5
- data/docs/AllowedValuesApi.md +2 -2
- data/docs/ApiKeyDTO.md +2 -2
- data/docs/FileSmallDTO.md +15 -15
- data/docs/MusicalFeaturesDTO.md +68 -68
- data/docs/PlaylistLargeDTO.md +7 -7
- data/docs/ProductMediumDTO.md +7 -7
- data/docs/ProductPartyDTO.md +3 -3
- data/docs/RecordingApi.md +2 -0
- data/docs/RecordingGenrePredictionDTO.md +4 -4
- data/docs/RecordingLargeDTO.md +8 -8
- data/docs/RecordingMediumDTO.md +6 -6
- data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
- data/docs/RecordingPartyDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +3 -3
- data/docs/UserApi.md +4 -0
- data/docs/UserDTO.md +18 -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 +1 -1
- 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 +13 -18
- data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +29 -28
- 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 +13 -18
- 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 +84 -79
- 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 +448 -453
- 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 +45 -48
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +66 -59
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +28 -31
- 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 +38 -37
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +74 -57
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +61 -48
- 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 +28 -31
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +13 -18
- 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 +196 -19
- data/lib/songtradr_api_client_ruby/version.rb +2 -2
- data/lib/songtradr_api_client_ruby.rb +1 -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 +1 -1
- 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 +1 -1
- data/spec/models/api_key_dto_spec.rb +3 -3
- 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 +1 -1
- 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 +19 -19
- 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 +121 -121
- 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 +9 -9
- data/spec/models/product_party_dto_spec.rb +3 -3
- 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 +3 -3
- data/spec/models/recording_playlist_dto_spec.rb +1 -1
- 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 +55 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
@@ -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
|
@@ -50,6 +50,24 @@ module SongtradrApiClientRuby
|
|
50
50
|
|
51
51
|
attr_accessor :insights_allowed
|
52
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
|
+
|
53
71
|
attr_accessor :reduced_musical_features
|
54
72
|
|
55
73
|
attr_accessor :confirmed
|
@@ -78,6 +96,15 @@ module SongtradrApiClientRuby
|
|
78
96
|
:'b2b_allowed' => :'b2bAllowed',
|
79
97
|
:'editor_allowed' => :'editorAllowed',
|
80
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',
|
81
108
|
:'reduced_musical_features' => :'reducedMusicalFeatures',
|
82
109
|
:'confirmed' => :'confirmed',
|
83
110
|
:'language' => :'language',
|
@@ -110,6 +137,15 @@ module SongtradrApiClientRuby
|
|
110
137
|
:'b2b_allowed' => :'Boolean',
|
111
138
|
:'editor_allowed' => :'Boolean',
|
112
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',
|
113
149
|
:'reduced_musical_features' => :'Boolean',
|
114
150
|
:'confirmed' => :'Boolean',
|
115
151
|
:'language' => :'String',
|
@@ -140,10 +176,14 @@ module SongtradrApiClientRuby
|
|
140
176
|
|
141
177
|
if attributes.key?(:'username')
|
142
178
|
self.username = attributes[:'username']
|
179
|
+
else
|
180
|
+
self.username = nil
|
143
181
|
end
|
144
182
|
|
145
183
|
if attributes.key?(:'email_address')
|
146
184
|
self.email_address = attributes[:'email_address']
|
185
|
+
else
|
186
|
+
self.email_address = nil
|
147
187
|
end
|
148
188
|
|
149
189
|
if attributes.key?(:'company_name')
|
@@ -152,70 +192,158 @@ module SongtradrApiClientRuby
|
|
152
192
|
|
153
193
|
if attributes.key?(:'is_admin')
|
154
194
|
self.is_admin = attributes[:'is_admin']
|
195
|
+
else
|
196
|
+
self.is_admin = nil
|
155
197
|
end
|
156
198
|
|
157
199
|
if attributes.key?(:'full_search_allowed')
|
158
200
|
self.full_search_allowed = attributes[:'full_search_allowed']
|
201
|
+
else
|
202
|
+
self.full_search_allowed = nil
|
159
203
|
end
|
160
204
|
|
161
205
|
if attributes.key?(:'voice_search_allowed')
|
162
206
|
self.voice_search_allowed = attributes[:'voice_search_allowed']
|
207
|
+
else
|
208
|
+
self.voice_search_allowed = nil
|
163
209
|
end
|
164
210
|
|
165
211
|
if attributes.key?(:'recording_detail_allowed')
|
166
212
|
self.recording_detail_allowed = attributes[:'recording_detail_allowed']
|
213
|
+
else
|
214
|
+
self.recording_detail_allowed = nil
|
167
215
|
end
|
168
216
|
|
169
217
|
if attributes.key?(:'artist_detail_allowed')
|
170
218
|
self.artist_detail_allowed = attributes[:'artist_detail_allowed']
|
219
|
+
else
|
220
|
+
self.artist_detail_allowed = nil
|
171
221
|
end
|
172
222
|
|
173
223
|
if attributes.key?(:'playlist_prediction_allowed')
|
174
224
|
self.playlist_prediction_allowed = attributes[:'playlist_prediction_allowed']
|
225
|
+
else
|
226
|
+
self.playlist_prediction_allowed = nil
|
175
227
|
end
|
176
228
|
|
177
229
|
if attributes.key?(:'widgets_allowed')
|
178
230
|
self.widgets_allowed = attributes[:'widgets_allowed']
|
231
|
+
else
|
232
|
+
self.widgets_allowed = nil
|
179
233
|
end
|
180
234
|
|
181
235
|
if attributes.key?(:'signup_allowed')
|
182
236
|
self.signup_allowed = attributes[:'signup_allowed']
|
237
|
+
else
|
238
|
+
self.signup_allowed = nil
|
183
239
|
end
|
184
240
|
|
185
241
|
if attributes.key?(:'upload_allowed')
|
186
242
|
self.upload_allowed = attributes[:'upload_allowed']
|
243
|
+
else
|
244
|
+
self.upload_allowed = nil
|
187
245
|
end
|
188
246
|
|
189
247
|
if attributes.key?(:'fingerprint_allowed')
|
190
248
|
self.fingerprint_allowed = attributes[:'fingerprint_allowed']
|
249
|
+
else
|
250
|
+
self.fingerprint_allowed = nil
|
191
251
|
end
|
192
252
|
|
193
253
|
if attributes.key?(:'audiotagging_allowed')
|
194
254
|
self.audiotagging_allowed = attributes[:'audiotagging_allowed']
|
255
|
+
else
|
256
|
+
self.audiotagging_allowed = nil
|
195
257
|
end
|
196
258
|
|
197
259
|
if attributes.key?(:'b2b_allowed')
|
198
260
|
self.b2b_allowed = attributes[:'b2b_allowed']
|
261
|
+
else
|
262
|
+
self.b2b_allowed = nil
|
199
263
|
end
|
200
264
|
|
201
265
|
if attributes.key?(:'editor_allowed')
|
202
266
|
self.editor_allowed = attributes[:'editor_allowed']
|
267
|
+
else
|
268
|
+
self.editor_allowed = nil
|
203
269
|
end
|
204
270
|
|
205
271
|
if attributes.key?(:'insights_allowed')
|
206
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
|
207
329
|
end
|
208
330
|
|
209
331
|
if attributes.key?(:'reduced_musical_features')
|
210
332
|
self.reduced_musical_features = attributes[:'reduced_musical_features']
|
333
|
+
else
|
334
|
+
self.reduced_musical_features = nil
|
211
335
|
end
|
212
336
|
|
213
337
|
if attributes.key?(:'confirmed')
|
214
338
|
self.confirmed = attributes[:'confirmed']
|
339
|
+
else
|
340
|
+
self.confirmed = nil
|
215
341
|
end
|
216
342
|
|
217
343
|
if attributes.key?(:'language')
|
218
344
|
self.language = attributes[:'language']
|
345
|
+
else
|
346
|
+
self.language = nil
|
219
347
|
end
|
220
348
|
|
221
349
|
if attributes.key?(:'admin')
|
@@ -226,6 +354,7 @@ module SongtradrApiClientRuby
|
|
226
354
|
# Show invalid properties with the reasons. Usually used together with valid?
|
227
355
|
# @return Array for valid properties with the reasons
|
228
356
|
def list_invalid_properties
|
357
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
229
358
|
invalid_properties = Array.new
|
230
359
|
if @username.nil?
|
231
360
|
invalid_properties.push('invalid value for "username", username cannot be nil.')
|
@@ -291,6 +420,42 @@ module SongtradrApiClientRuby
|
|
291
420
|
invalid_properties.push('invalid value for "insights_allowed", insights_allowed cannot be nil.')
|
292
421
|
end
|
293
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
|
+
|
294
459
|
if @reduced_musical_features.nil?
|
295
460
|
invalid_properties.push('invalid value for "reduced_musical_features", reduced_musical_features cannot be nil.')
|
296
461
|
end
|
@@ -309,6 +474,7 @@ module SongtradrApiClientRuby
|
|
309
474
|
# Check to see if the all the properties in the model are valid
|
310
475
|
# @return true if the model is valid
|
311
476
|
def valid?
|
477
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
312
478
|
return false if @username.nil?
|
313
479
|
return false if @email_address.nil?
|
314
480
|
return false if @is_admin.nil?
|
@@ -325,6 +491,15 @@ module SongtradrApiClientRuby
|
|
325
491
|
return false if @b2b_allowed.nil?
|
326
492
|
return false if @editor_allowed.nil?
|
327
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?
|
328
503
|
return false if @reduced_musical_features.nil?
|
329
504
|
return false if @confirmed.nil?
|
330
505
|
return false if @language.nil?
|
@@ -353,6 +528,15 @@ module SongtradrApiClientRuby
|
|
353
528
|
b2b_allowed == o.b2b_allowed &&
|
354
529
|
editor_allowed == o.editor_allowed &&
|
355
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 &&
|
356
540
|
reduced_musical_features == o.reduced_musical_features &&
|
357
541
|
confirmed == o.confirmed &&
|
358
542
|
language == o.language &&
|
@@ -368,44 +552,37 @@ module SongtradrApiClientRuby
|
|
368
552
|
# Calculates hash code according to all attributes.
|
369
553
|
# @return [Integer] Hash code
|
370
554
|
def hash
|
371
|
-
[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, 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
|
372
556
|
end
|
373
557
|
|
374
558
|
# Builds the object from hash
|
375
559
|
# @param [Hash] attributes Model attributes in the form of hash
|
376
560
|
# @return [Object] Returns the model itself
|
377
561
|
def self.build_from_hash(attributes)
|
378
|
-
new.build_from_hash(attributes)
|
379
|
-
end
|
380
|
-
|
381
|
-
# Builds the object from hash
|
382
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
383
|
-
# @return [Object] Returns the model itself
|
384
|
-
def build_from_hash(attributes)
|
385
562
|
return nil unless attributes.is_a?(Hash)
|
386
563
|
attributes = attributes.transform_keys(&:to_sym)
|
387
|
-
|
388
|
-
|
389
|
-
|
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
|
390
568
|
elsif type =~ /\AArray<(.*)>/i
|
391
569
|
# check to ensure the input is an array given that the attribute
|
392
570
|
# is documented as an array but the input is not
|
393
|
-
if attributes[
|
394
|
-
|
571
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
572
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
395
573
|
end
|
396
|
-
elsif !attributes[
|
397
|
-
|
574
|
+
elsif !attributes[attribute_map[key]].nil?
|
575
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
398
576
|
end
|
399
577
|
end
|
400
|
-
|
401
|
-
self
|
578
|
+
new(transformed_hash)
|
402
579
|
end
|
403
580
|
|
404
581
|
# Deserializes the data based on type
|
405
582
|
# @param string type Data type
|
406
583
|
# @param string value Value to be deserialized
|
407
584
|
# @return [Object] Deserialized data
|
408
|
-
def _deserialize(type, value)
|
585
|
+
def self._deserialize(type, value)
|
409
586
|
case type.to_sym
|
410
587
|
when :Time
|
411
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
|