songtradr_api_client_ruby 1.12.23 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +6 -5
- data/docs/AllowedValuesApi.md +2 -2
- data/docs/ApiKeyDTO.md +2 -2
- data/docs/CategoryMediumDTO.md +3 -3
- data/docs/FileSmallDTO.md +3 -3
- data/docs/MusicalFeaturesDTO.md +38 -38
- data/docs/PlaylistLargeDTO.md +2 -2
- data/docs/ProductMediumDTO.md +4 -4
- data/docs/RecordingApi.md +6 -0
- data/docs/RecordingLargeDTO.md +5 -5
- data/docs/RecordingMediumDTO.md +5 -3
- data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +3 -3
- data/docs/TrackDTO.md +18 -0
- 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 +10 -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 +30 -31
- 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 +41 -36
- 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 +354 -359
- 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 +25 -28
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +46 -39
- 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 +19 -18
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +57 -40
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +55 -31
- 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 +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_dto.rb +215 -0
- 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 +2 -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 +4 -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 +3 -3
- 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 +7 -7
- 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 +163 -163
- 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 +4 -4
- 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 +1 -1
- data/spec/models/recording_large_dto_spec.rb +9 -9
- data/spec/models/recording_list_dto_spec.rb +1 -1
- data/spec/models/recording_medium_dto_spec.rb +10 -4
- 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 +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_dto_spec.rb +34 -0
- 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 +62 -58
|
@@ -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.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -68,10 +68,14 @@ module SongtradrApiClientRuby
|
|
|
68
68
|
|
|
69
69
|
if attributes.key?(:'id')
|
|
70
70
|
self.id = attributes[:'id']
|
|
71
|
+
else
|
|
72
|
+
self.id = nil
|
|
71
73
|
end
|
|
72
74
|
|
|
73
75
|
if attributes.key?(:'name')
|
|
74
76
|
self.name = attributes[:'name']
|
|
77
|
+
else
|
|
78
|
+
self.name = nil
|
|
75
79
|
end
|
|
76
80
|
|
|
77
81
|
if attributes.key?(:'categories')
|
|
@@ -84,6 +88,7 @@ module SongtradrApiClientRuby
|
|
|
84
88
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
89
|
# @return Array for valid properties with the reasons
|
|
86
90
|
def list_invalid_properties
|
|
91
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
87
92
|
invalid_properties = Array.new
|
|
88
93
|
if @id.nil?
|
|
89
94
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
@@ -99,6 +104,7 @@ module SongtradrApiClientRuby
|
|
|
99
104
|
# Check to see if the all the properties in the model are valid
|
|
100
105
|
# @return true if the model is valid
|
|
101
106
|
def valid?
|
|
107
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
102
108
|
return false if @id.nil?
|
|
103
109
|
return false if @name.nil?
|
|
104
110
|
true
|
|
@@ -130,37 +136,30 @@ module SongtradrApiClientRuby
|
|
|
130
136
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
137
|
# @return [Object] Returns the model itself
|
|
132
138
|
def self.build_from_hash(attributes)
|
|
133
|
-
new.build_from_hash(attributes)
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# Builds the object from hash
|
|
137
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
|
-
# @return [Object] Returns the model itself
|
|
139
|
-
def build_from_hash(attributes)
|
|
140
139
|
return nil unless attributes.is_a?(Hash)
|
|
141
140
|
attributes = attributes.transform_keys(&:to_sym)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
transformed_hash = {}
|
|
142
|
+
openapi_types.each_pair do |key, type|
|
|
143
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
144
|
+
transformed_hash["#{key}"] = nil
|
|
145
145
|
elsif type =~ /\AArray<(.*)>/i
|
|
146
146
|
# check to ensure the input is an array given that the attribute
|
|
147
147
|
# is documented as an array but the input is not
|
|
148
|
-
if attributes[
|
|
149
|
-
|
|
148
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
149
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
150
150
|
end
|
|
151
|
-
elsif !attributes[
|
|
152
|
-
|
|
151
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
152
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
153
153
|
end
|
|
154
154
|
end
|
|
155
|
-
|
|
156
|
-
self
|
|
155
|
+
new(transformed_hash)
|
|
157
156
|
end
|
|
158
157
|
|
|
159
158
|
# Deserializes the data based on type
|
|
160
159
|
# @param string type Data type
|
|
161
160
|
# @param string value Value to be deserialized
|
|
162
161
|
# @return [Object] Deserialized data
|
|
163
|
-
def _deserialize(type, value)
|
|
162
|
+
def self._deserialize(type, value)
|
|
164
163
|
case type.to_sym
|
|
165
164
|
when :Time
|
|
166
165
|
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.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -64,16 +64,21 @@ module SongtradrApiClientRuby
|
|
|
64
64
|
|
|
65
65
|
if attributes.key?(:'id')
|
|
66
66
|
self.id = attributes[:'id']
|
|
67
|
+
else
|
|
68
|
+
self.id = nil
|
|
67
69
|
end
|
|
68
70
|
|
|
69
71
|
if attributes.key?(:'name')
|
|
70
72
|
self.name = attributes[:'name']
|
|
73
|
+
else
|
|
74
|
+
self.name = nil
|
|
71
75
|
end
|
|
72
76
|
end
|
|
73
77
|
|
|
74
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
75
79
|
# @return Array for valid properties with the reasons
|
|
76
80
|
def list_invalid_properties
|
|
81
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
82
|
invalid_properties = Array.new
|
|
78
83
|
if @id.nil?
|
|
79
84
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
@@ -89,6 +94,7 @@ module SongtradrApiClientRuby
|
|
|
89
94
|
# Check to see if the all the properties in the model are valid
|
|
90
95
|
# @return true if the model is valid
|
|
91
96
|
def valid?
|
|
97
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
92
98
|
return false if @id.nil?
|
|
93
99
|
return false if @name.nil?
|
|
94
100
|
true
|
|
@@ -119,37 +125,30 @@ module SongtradrApiClientRuby
|
|
|
119
125
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
120
126
|
# @return [Object] Returns the model itself
|
|
121
127
|
def self.build_from_hash(attributes)
|
|
122
|
-
new.build_from_hash(attributes)
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
# Builds the object from hash
|
|
126
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
127
|
-
# @return [Object] Returns the model itself
|
|
128
|
-
def build_from_hash(attributes)
|
|
129
128
|
return nil unless attributes.is_a?(Hash)
|
|
130
129
|
attributes = attributes.transform_keys(&:to_sym)
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
transformed_hash = {}
|
|
131
|
+
openapi_types.each_pair do |key, type|
|
|
132
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
133
|
+
transformed_hash["#{key}"] = nil
|
|
134
134
|
elsif type =~ /\AArray<(.*)>/i
|
|
135
135
|
# check to ensure the input is an array given that the attribute
|
|
136
136
|
# is documented as an array but the input is not
|
|
137
|
-
if attributes[
|
|
138
|
-
|
|
137
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
138
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
139
139
|
end
|
|
140
|
-
elsif !attributes[
|
|
141
|
-
|
|
140
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
141
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
142
142
|
end
|
|
143
143
|
end
|
|
144
|
-
|
|
145
|
-
self
|
|
144
|
+
new(transformed_hash)
|
|
146
145
|
end
|
|
147
146
|
|
|
148
147
|
# Deserializes the data based on type
|
|
149
148
|
# @param string type Data type
|
|
150
149
|
# @param string value Value to be deserialized
|
|
151
150
|
# @return [Object] Deserialized data
|
|
152
|
-
def _deserialize(type, value)
|
|
151
|
+
def self._deserialize(type, value)
|
|
153
152
|
case type.to_sym
|
|
154
153
|
when :Time
|
|
155
154
|
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.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -79,10 +79,14 @@ module SongtradrApiClientRuby
|
|
|
79
79
|
if (value = attributes[:'timeseries']).is_a?(Array)
|
|
80
80
|
self.timeseries = value
|
|
81
81
|
end
|
|
82
|
+
else
|
|
83
|
+
self.timeseries = nil
|
|
82
84
|
end
|
|
83
85
|
|
|
84
86
|
if attributes.key?(:'category_name')
|
|
85
87
|
self.category_name = attributes[:'category_name']
|
|
88
|
+
else
|
|
89
|
+
self.category_name = nil
|
|
86
90
|
end
|
|
87
91
|
|
|
88
92
|
if attributes.key?(:'tag_name')
|
|
@@ -103,6 +107,7 @@ module SongtradrApiClientRuby
|
|
|
103
107
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
104
108
|
# @return Array for valid properties with the reasons
|
|
105
109
|
def list_invalid_properties
|
|
110
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
106
111
|
invalid_properties = Array.new
|
|
107
112
|
if @timeseries.nil?
|
|
108
113
|
invalid_properties.push('invalid value for "timeseries", timeseries cannot be nil.')
|
|
@@ -118,6 +123,7 @@ module SongtradrApiClientRuby
|
|
|
118
123
|
# Check to see if the all the properties in the model are valid
|
|
119
124
|
# @return true if the model is valid
|
|
120
125
|
def valid?
|
|
126
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
121
127
|
return false if @timeseries.nil?
|
|
122
128
|
return false if @category_name.nil?
|
|
123
129
|
true
|
|
@@ -151,37 +157,30 @@ module SongtradrApiClientRuby
|
|
|
151
157
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
152
158
|
# @return [Object] Returns the model itself
|
|
153
159
|
def self.build_from_hash(attributes)
|
|
154
|
-
new.build_from_hash(attributes)
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
# Builds the object from hash
|
|
158
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
159
|
-
# @return [Object] Returns the model itself
|
|
160
|
-
def build_from_hash(attributes)
|
|
161
160
|
return nil unless attributes.is_a?(Hash)
|
|
162
161
|
attributes = attributes.transform_keys(&:to_sym)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
transformed_hash = {}
|
|
163
|
+
openapi_types.each_pair do |key, type|
|
|
164
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
165
|
+
transformed_hash["#{key}"] = nil
|
|
166
166
|
elsif type =~ /\AArray<(.*)>/i
|
|
167
167
|
# check to ensure the input is an array given that the attribute
|
|
168
168
|
# is documented as an array but the input is not
|
|
169
|
-
if attributes[
|
|
170
|
-
|
|
169
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
170
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
171
171
|
end
|
|
172
|
-
elsif !attributes[
|
|
173
|
-
|
|
172
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
173
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
|
-
|
|
177
|
-
self
|
|
176
|
+
new(transformed_hash)
|
|
178
177
|
end
|
|
179
178
|
|
|
180
179
|
# Deserializes the data based on type
|
|
181
180
|
# @param string type Data type
|
|
182
181
|
# @param string value Value to be deserialized
|
|
183
182
|
# @return [Object] Deserialized data
|
|
184
|
-
def _deserialize(type, value)
|
|
183
|
+
def self._deserialize(type, value)
|
|
185
184
|
case type.to_sym
|
|
186
185
|
when :Time
|
|
187
186
|
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.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
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?(:'name')
|
|
70
70
|
self.name = attributes[:'name']
|
|
71
|
+
else
|
|
72
|
+
self.name = nil
|
|
71
73
|
end
|
|
72
74
|
|
|
73
75
|
if attributes.key?(:'categories')
|
|
@@ -78,12 +80,15 @@ module SongtradrApiClientRuby
|
|
|
78
80
|
|
|
79
81
|
if attributes.key?(:'total')
|
|
80
82
|
self.total = attributes[:'total']
|
|
83
|
+
else
|
|
84
|
+
self.total = nil
|
|
81
85
|
end
|
|
82
86
|
end
|
|
83
87
|
|
|
84
88
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
89
|
# @return Array for valid properties with the reasons
|
|
86
90
|
def list_invalid_properties
|
|
91
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
87
92
|
invalid_properties = Array.new
|
|
88
93
|
if @name.nil?
|
|
89
94
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
@@ -99,6 +104,7 @@ module SongtradrApiClientRuby
|
|
|
99
104
|
# Check to see if the all the properties in the model are valid
|
|
100
105
|
# @return true if the model is valid
|
|
101
106
|
def valid?
|
|
107
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
102
108
|
return false if @name.nil?
|
|
103
109
|
return false if @total.nil?
|
|
104
110
|
true
|
|
@@ -130,37 +136,30 @@ module SongtradrApiClientRuby
|
|
|
130
136
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
137
|
# @return [Object] Returns the model itself
|
|
132
138
|
def self.build_from_hash(attributes)
|
|
133
|
-
new.build_from_hash(attributes)
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# Builds the object from hash
|
|
137
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
|
-
# @return [Object] Returns the model itself
|
|
139
|
-
def build_from_hash(attributes)
|
|
140
139
|
return nil unless attributes.is_a?(Hash)
|
|
141
140
|
attributes = attributes.transform_keys(&:to_sym)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
transformed_hash = {}
|
|
142
|
+
openapi_types.each_pair do |key, type|
|
|
143
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
144
|
+
transformed_hash["#{key}"] = nil
|
|
145
145
|
elsif type =~ /\AArray<(.*)>/i
|
|
146
146
|
# check to ensure the input is an array given that the attribute
|
|
147
147
|
# is documented as an array but the input is not
|
|
148
|
-
if attributes[
|
|
149
|
-
|
|
148
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
149
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
150
150
|
end
|
|
151
|
-
elsif !attributes[
|
|
152
|
-
|
|
151
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
152
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
153
153
|
end
|
|
154
154
|
end
|
|
155
|
-
|
|
156
|
-
self
|
|
155
|
+
new(transformed_hash)
|
|
157
156
|
end
|
|
158
157
|
|
|
159
158
|
# Deserializes the data based on type
|
|
160
159
|
# @param string type Data type
|
|
161
160
|
# @param string value Value to be deserialized
|
|
162
161
|
# @return [Object] Deserialized data
|
|
163
|
-
def _deserialize(type, value)
|
|
162
|
+
def self._deserialize(type, value)
|
|
164
163
|
case type.to_sym
|
|
165
164
|
when :Time
|
|
166
165
|
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.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -77,10 +77,14 @@ module SongtradrApiClientRuby
|
|
|
77
77
|
|
|
78
78
|
if attributes.key?(:'strength')
|
|
79
79
|
self.strength = attributes[:'strength']
|
|
80
|
+
else
|
|
81
|
+
self.strength = nil
|
|
80
82
|
end
|
|
81
83
|
|
|
82
84
|
if attributes.key?(:'category_name')
|
|
83
85
|
self.category_name = attributes[:'category_name']
|
|
86
|
+
else
|
|
87
|
+
self.category_name = nil
|
|
84
88
|
end
|
|
85
89
|
|
|
86
90
|
if attributes.key?(:'tag_name')
|
|
@@ -101,6 +105,7 @@ module SongtradrApiClientRuby
|
|
|
101
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
102
106
|
# @return Array for valid properties with the reasons
|
|
103
107
|
def list_invalid_properties
|
|
108
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
104
109
|
invalid_properties = Array.new
|
|
105
110
|
if @strength.nil?
|
|
106
111
|
invalid_properties.push('invalid value for "strength", strength cannot be nil.')
|
|
@@ -116,6 +121,7 @@ module SongtradrApiClientRuby
|
|
|
116
121
|
# Check to see if the all the properties in the model are valid
|
|
117
122
|
# @return true if the model is valid
|
|
118
123
|
def valid?
|
|
124
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
119
125
|
return false if @strength.nil?
|
|
120
126
|
return false if @category_name.nil?
|
|
121
127
|
true
|
|
@@ -149,37 +155,30 @@ module SongtradrApiClientRuby
|
|
|
149
155
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
150
156
|
# @return [Object] Returns the model itself
|
|
151
157
|
def self.build_from_hash(attributes)
|
|
152
|
-
new.build_from_hash(attributes)
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
# Builds the object from hash
|
|
156
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
157
|
-
# @return [Object] Returns the model itself
|
|
158
|
-
def build_from_hash(attributes)
|
|
159
158
|
return nil unless attributes.is_a?(Hash)
|
|
160
159
|
attributes = attributes.transform_keys(&:to_sym)
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
transformed_hash = {}
|
|
161
|
+
openapi_types.each_pair do |key, type|
|
|
162
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
163
|
+
transformed_hash["#{key}"] = nil
|
|
164
164
|
elsif type =~ /\AArray<(.*)>/i
|
|
165
165
|
# check to ensure the input is an array given that the attribute
|
|
166
166
|
# is documented as an array but the input is not
|
|
167
|
-
if attributes[
|
|
168
|
-
|
|
167
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
168
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
169
169
|
end
|
|
170
|
-
elsif !attributes[
|
|
171
|
-
|
|
170
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
171
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
172
172
|
end
|
|
173
173
|
end
|
|
174
|
-
|
|
175
|
-
self
|
|
174
|
+
new(transformed_hash)
|
|
176
175
|
end
|
|
177
176
|
|
|
178
177
|
# Deserializes the data based on type
|
|
179
178
|
# @param string type Data type
|
|
180
179
|
# @param string value Value to be deserialized
|
|
181
180
|
# @return [Object] Deserialized data
|
|
182
|
-
def _deserialize(type, value)
|
|
181
|
+
def self._deserialize(type, value)
|
|
183
182
|
case type.to_sym
|
|
184
183
|
when :Time
|
|
185
184
|
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.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -60,12 +60,15 @@ module SongtradrApiClientRuby
|
|
|
60
60
|
|
|
61
61
|
if attributes.key?(:'title_text')
|
|
62
62
|
self.title_text = attributes[:'title_text']
|
|
63
|
+
else
|
|
64
|
+
self.title_text = nil
|
|
63
65
|
end
|
|
64
66
|
end
|
|
65
67
|
|
|
66
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
67
69
|
# @return Array for valid properties with the reasons
|
|
68
70
|
def list_invalid_properties
|
|
71
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
69
72
|
invalid_properties = Array.new
|
|
70
73
|
if @title_text.nil?
|
|
71
74
|
invalid_properties.push('invalid value for "title_text", title_text cannot be nil.')
|
|
@@ -77,6 +80,7 @@ module SongtradrApiClientRuby
|
|
|
77
80
|
# Check to see if the all the properties in the model are valid
|
|
78
81
|
# @return true if the model is valid
|
|
79
82
|
def valid?
|
|
83
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
80
84
|
return false if @title_text.nil?
|
|
81
85
|
true
|
|
82
86
|
end
|
|
@@ -105,37 +109,30 @@ module SongtradrApiClientRuby
|
|
|
105
109
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
106
110
|
# @return [Object] Returns the model itself
|
|
107
111
|
def self.build_from_hash(attributes)
|
|
108
|
-
new.build_from_hash(attributes)
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
# Builds the object from hash
|
|
112
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
113
|
-
# @return [Object] Returns the model itself
|
|
114
|
-
def build_from_hash(attributes)
|
|
115
112
|
return nil unless attributes.is_a?(Hash)
|
|
116
113
|
attributes = attributes.transform_keys(&:to_sym)
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
transformed_hash = {}
|
|
115
|
+
openapi_types.each_pair do |key, type|
|
|
116
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
117
|
+
transformed_hash["#{key}"] = nil
|
|
120
118
|
elsif type =~ /\AArray<(.*)>/i
|
|
121
119
|
# check to ensure the input is an array given that the attribute
|
|
122
120
|
# is documented as an array but the input is not
|
|
123
|
-
if attributes[
|
|
124
|
-
|
|
121
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
122
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
125
123
|
end
|
|
126
|
-
elsif !attributes[
|
|
127
|
-
|
|
124
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
125
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
128
126
|
end
|
|
129
127
|
end
|
|
130
|
-
|
|
131
|
-
self
|
|
128
|
+
new(transformed_hash)
|
|
132
129
|
end
|
|
133
130
|
|
|
134
131
|
# Deserializes the data based on type
|
|
135
132
|
# @param string type Data type
|
|
136
133
|
# @param string value Value to be deserialized
|
|
137
134
|
# @return [Object] Deserialized data
|
|
138
|
-
def _deserialize(type, value)
|
|
135
|
+
def self._deserialize(type, value)
|
|
139
136
|
case type.to_sym
|
|
140
137
|
when :Time
|
|
141
138
|
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.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -59,12 +59,15 @@ module SongtradrApiClientRuby
|
|
|
59
59
|
|
|
60
60
|
if attributes.key?(:'refresh_token')
|
|
61
61
|
self.refresh_token = attributes[:'refresh_token']
|
|
62
|
+
else
|
|
63
|
+
self.refresh_token = nil
|
|
62
64
|
end
|
|
63
65
|
end
|
|
64
66
|
|
|
65
67
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
66
68
|
# @return Array for valid properties with the reasons
|
|
67
69
|
def list_invalid_properties
|
|
70
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
68
71
|
invalid_properties = Array.new
|
|
69
72
|
if @refresh_token.nil?
|
|
70
73
|
invalid_properties.push('invalid value for "refresh_token", refresh_token cannot be nil.')
|
|
@@ -76,6 +79,7 @@ module SongtradrApiClientRuby
|
|
|
76
79
|
# Check to see if the all the properties in the model are valid
|
|
77
80
|
# @return true if the model is valid
|
|
78
81
|
def valid?
|
|
82
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
79
83
|
return false if @refresh_token.nil?
|
|
80
84
|
true
|
|
81
85
|
end
|
|
@@ -104,37 +108,30 @@ module SongtradrApiClientRuby
|
|
|
104
108
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
105
109
|
# @return [Object] Returns the model itself
|
|
106
110
|
def self.build_from_hash(attributes)
|
|
107
|
-
new.build_from_hash(attributes)
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
# Builds the object from hash
|
|
111
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
112
|
-
# @return [Object] Returns the model itself
|
|
113
|
-
def build_from_hash(attributes)
|
|
114
111
|
return nil unless attributes.is_a?(Hash)
|
|
115
112
|
attributes = attributes.transform_keys(&:to_sym)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
113
|
+
transformed_hash = {}
|
|
114
|
+
openapi_types.each_pair do |key, type|
|
|
115
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
116
|
+
transformed_hash["#{key}"] = nil
|
|
119
117
|
elsif type =~ /\AArray<(.*)>/i
|
|
120
118
|
# check to ensure the input is an array given that the attribute
|
|
121
119
|
# is documented as an array but the input is not
|
|
122
|
-
if attributes[
|
|
123
|
-
|
|
120
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
121
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
124
122
|
end
|
|
125
|
-
elsif !attributes[
|
|
126
|
-
|
|
123
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
124
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
127
125
|
end
|
|
128
126
|
end
|
|
129
|
-
|
|
130
|
-
self
|
|
127
|
+
new(transformed_hash)
|
|
131
128
|
end
|
|
132
129
|
|
|
133
130
|
# Deserializes the data based on type
|
|
134
131
|
# @param string type Data type
|
|
135
132
|
# @param string value Value to be deserialized
|
|
136
133
|
# @return [Object] Deserialized data
|
|
137
|
-
def _deserialize(type, value)
|
|
134
|
+
def self._deserialize(type, value)
|
|
138
135
|
case type.to_sym
|
|
139
136
|
when :Time
|
|
140
137
|
Time.parse(value)
|