songtradr_api_client_ruby 1.13.7 → 1.15.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 +1 -1
- data/README.md +5 -37
- data/docs/FileSmallDTO.md +7 -7
- data/docs/MusicalFeaturesDTO.md +2 -2
- data/docs/PlaylistApi.md +0 -214
- data/docs/RecordingApi.md +0 -204
- data/docs/RecordingMediumDTO.md +2 -2
- data/docs/UserApi.md +0 -456
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +1 -201
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +1 -189
- data/lib/songtradr_api_client_ruby/api/user_api.rb +134 -746
- data/lib/songtradr_api_client_ruby/api_client.rb +37 -35
- data/lib/songtradr_api_client_ruby/api_error.rb +1 -1
- data/lib/songtradr_api_client_ruby/configuration.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/age_range.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/beard.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/bounding_box.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/curate_playlist_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/curate_playlist_response_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/dominant_color.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/emotion.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/error_response.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/eye_direction.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/eye_open.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/eyeglasses.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/face_detail.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/face_detection.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/face_occluded.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +36 -36
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/gender.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/image_quality.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/image_recognition_response.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/instance.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/label.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/label_alias.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/label_category.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/label_detection.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/landmark.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/mouth_open.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +24 -24
- data/lib/songtradr_api_client_ruby/models/mustache.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/parent.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/pose.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +12 -12
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/smile.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/sunglasses.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tag_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/token_request.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/track_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/video_recognition_response.rb +2 -2
- data/lib/songtradr_api_client_ruby/version.rb +2 -2
- data/lib/songtradr_api_client_ruby.rb +1 -22
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +2 -1
- data/spec/api/allowed_values_api_spec.rb +1 -1
- data/spec/api/playlist_api_spec.rb +1 -38
- data/spec/api/recording_api_spec.rb +1 -34
- data/spec/api/user_api_spec.rb +1 -110
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/age_range_spec.rb +1 -1
- data/spec/models/beard_spec.rb +1 -1
- data/spec/models/bounding_box_spec.rb +1 -1
- 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/curate_playlist_dto_spec.rb +1 -1
- data/spec/models/curate_playlist_response_dto_spec.rb +1 -1
- data/spec/models/dominant_color_spec.rb +1 -1
- data/spec/models/emotion_spec.rb +1 -1
- data/spec/models/error_response_spec.rb +1 -1
- data/spec/models/eye_direction_spec.rb +1 -1
- data/spec/models/eye_open_spec.rb +1 -1
- data/spec/models/eyeglasses_spec.rb +1 -1
- data/spec/models/face_detail_spec.rb +1 -1
- data/spec/models/face_detection_spec.rb +1 -1
- data/spec/models/face_occluded_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_small_dto_spec.rb +17 -17
- 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/gender_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/image_quality_spec.rb +1 -1
- data/spec/models/image_recognition_response_spec.rb +1 -1
- data/spec/models/init_put_recording_audio_dto_spec.rb +1 -1
- data/spec/models/instance_spec.rb +1 -1
- data/spec/models/jwt_token_dto_spec.rb +1 -1
- data/spec/models/label_alias_spec.rb +1 -1
- data/spec/models/label_category_spec.rb +1 -1
- data/spec/models/label_detection_spec.rb +1 -1
- data/spec/models/label_spec.rb +1 -1
- data/spec/models/landmark_spec.rb +1 -1
- data/spec/models/login_dto_spec.rb +1 -1
- data/spec/models/mouth_open_spec.rb +1 -1
- data/spec/models/musical_features_dto_spec.rb +11 -11
- data/spec/models/mustache_spec.rb +1 -1
- data/spec/models/parent_spec.rb +1 -1
- data/spec/models/party_small_dto_spec.rb +1 -1
- data/spec/models/pose_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_list_dto_spec.rb +1 -1
- data/spec/models/recording_medium_dto_spec.rb +3 -3
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +1 -1
- 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_small_dto_spec.rb +1 -1
- data/spec/models/recording_tag_small_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_dto_spec.rb +1 -1
- data/spec/models/sign_up_dto_spec.rb +1 -1
- data/spec/models/smile_spec.rb +1 -1
- data/spec/models/sunglasses_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 +1 -1
- data/spec/models/update_password_dto_spec.rb +1 -1
- data/spec/models/user_dto_spec.rb +1 -1
- data/spec/models/video_recognition_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +63 -147
- data/docs/ContextValue.md +0 -18
- data/docs/FileMinimalWithUrlDTO.md +0 -22
- data/docs/PLineDTO.md +0 -20
- data/docs/PartyApi.md +0 -75
- data/docs/PartyLargeDTO.md +0 -32
- data/docs/PlaylistLargeDTO.md +0 -38
- data/docs/ProductMediumDTO.md +0 -34
- data/docs/ProductPartyDTO.md +0 -20
- data/docs/RecordingLargeDTO.md +0 -40
- data/docs/RecordingPlaylistDTO.md +0 -24
- data/docs/SaveFileRecordingDTO.md +0 -240
- data/docs/SavePlaylistDTO.md +0 -34
- data/docs/SaveRecordingGenreDTO.md +0 -22
- data/docs/SaveRecordingPartyDTO.md +0 -20
- data/docs/SaveRecordingPlaylistDTO.md +0 -22
- data/docs/SaveRecordingTagDTO.md +0 -20
- data/docs/SaveReferrerDTO.md +0 -20
- data/docs/SaveTaggramsDTO.md +0 -82
- data/docs/SearchRecordingGranularAbstractionDTO.md +0 -20
- data/docs/TrackToMediumProductDTO.md +0 -22
- data/docs/UsageDTO.md +0 -18
- data/lib/songtradr_api_client_ruby/api/party_api.rb +0 -84
- data/lib/songtradr_api_client_ruby/models/context_value.rb +0 -216
- data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +0 -254
- data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +0 -231
- data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +0 -285
- data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +0 -350
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +0 -323
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +0 -233
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +0 -383
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +0 -242
- data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +0 -1864
- data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +0 -353
- data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +0 -240
- data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +0 -272
- data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +0 -247
- data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +0 -231
- data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +0 -224
- data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +0 -569
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +0 -267
- data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +0 -247
- data/lib/songtradr_api_client_ruby/models/usage_dto.rb +0 -215
- data/spec/api/party_api_spec.rb +0 -46
- data/spec/models/context_value_spec.rb +0 -36
- data/spec/models/file_minimal_with_url_dto_spec.rb +0 -48
- data/spec/models/p_line_dto_spec.rb +0 -42
- data/spec/models/party_large_dto_spec.rb +0 -78
- data/spec/models/playlist_large_dto_spec.rb +0 -100
- data/spec/models/product_medium_dto_spec.rb +0 -84
- data/spec/models/product_party_dto_spec.rb +0 -42
- data/spec/models/recording_large_dto_spec.rb +0 -102
- data/spec/models/recording_playlist_dto_spec.rb +0 -54
- data/spec/models/save_file_recording_dto_spec.rb +0 -894
- data/spec/models/save_playlist_dto_spec.rb +0 -88
- data/spec/models/save_recording_genre_dto_spec.rb +0 -48
- data/spec/models/save_recording_party_dto_spec.rb +0 -46
- data/spec/models/save_recording_playlist_dto_spec.rb +0 -48
- data/spec/models/save_recording_tag_dto_spec.rb +0 -42
- data/spec/models/save_referrer_dto_spec.rb +0 -42
- data/spec/models/save_taggrams_dto_spec.rb +0 -228
- data/spec/models/search_recording_granular_abstraction_dto_spec.rb +0 -46
- data/spec/models/track_to_medium_product_dto_spec.rb +0 -48
- data/spec/models/usage_dto_spec.rb +0 -36
|
@@ -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.15.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
|
@@ -19,70 +19,6 @@ module SongtradrApiClientRuby
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# @param save_referrer_dto [SaveReferrerDTO]
|
|
23
|
-
# @param [Hash] opts the optional parameters
|
|
24
|
-
# @return [Object]
|
|
25
|
-
def create_user_referrer(save_referrer_dto, opts = {})
|
|
26
|
-
data, _status_code, _headers = create_user_referrer_with_http_info(save_referrer_dto, opts)
|
|
27
|
-
data
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# @param save_referrer_dto [SaveReferrerDTO]
|
|
31
|
-
# @param [Hash] opts the optional parameters
|
|
32
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
33
|
-
def create_user_referrer_with_http_info(save_referrer_dto, opts = {})
|
|
34
|
-
if @api_client.config.debugging
|
|
35
|
-
@api_client.config.logger.debug 'Calling API: UserApi.create_user_referrer ...'
|
|
36
|
-
end
|
|
37
|
-
# verify the required parameter 'save_referrer_dto' is set
|
|
38
|
-
if @api_client.config.client_side_validation && save_referrer_dto.nil?
|
|
39
|
-
fail ArgumentError, "Missing the required parameter 'save_referrer_dto' when calling UserApi.create_user_referrer"
|
|
40
|
-
end
|
|
41
|
-
# resource path
|
|
42
|
-
local_var_path = '/api/v1/user/referrers/new'
|
|
43
|
-
|
|
44
|
-
# query parameters
|
|
45
|
-
query_params = opts[:query_params] || {}
|
|
46
|
-
|
|
47
|
-
# header parameters
|
|
48
|
-
header_params = opts[:header_params] || {}
|
|
49
|
-
# HTTP header 'Accept' (if needed)
|
|
50
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
51
|
-
# HTTP header 'Content-Type'
|
|
52
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
53
|
-
if !content_type.nil?
|
|
54
|
-
header_params['Content-Type'] = content_type
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# form parameters
|
|
58
|
-
form_params = opts[:form_params] || {}
|
|
59
|
-
|
|
60
|
-
# http body (model)
|
|
61
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(save_referrer_dto)
|
|
62
|
-
|
|
63
|
-
# return_type
|
|
64
|
-
return_type = opts[:debug_return_type] || 'Object'
|
|
65
|
-
|
|
66
|
-
# auth_names
|
|
67
|
-
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
|
68
|
-
|
|
69
|
-
new_options = opts.merge(
|
|
70
|
-
:operation => :"UserApi.create_user_referrer",
|
|
71
|
-
:header_params => header_params,
|
|
72
|
-
:query_params => query_params,
|
|
73
|
-
:form_params => form_params,
|
|
74
|
-
:body => post_body,
|
|
75
|
-
:auth_names => auth_names,
|
|
76
|
-
:return_type => return_type
|
|
77
|
-
)
|
|
78
|
-
|
|
79
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
|
-
if @api_client.config.debugging
|
|
81
|
-
@api_client.config.logger.debug "API called: UserApi#create_user_referrer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
-
end
|
|
83
|
-
return data, status_code, headers
|
|
84
|
-
end
|
|
85
|
-
|
|
86
22
|
# Delete file.
|
|
87
23
|
# @param object_key [String] ObjectKey of the file that should be deleted.
|
|
88
24
|
# @param [Hash] opts the optional parameters
|
|
@@ -1364,78 +1300,6 @@ module SongtradrApiClientRuby
|
|
|
1364
1300
|
return data, status_code, headers
|
|
1365
1301
|
end
|
|
1366
1302
|
|
|
1367
|
-
# Create and edit metadata of your files.
|
|
1368
|
-
# @param object_key [String] ObjectKey of the file that should be edited.
|
|
1369
|
-
# @param save_file_recording_dto [SaveFileRecordingDTO]
|
|
1370
|
-
# @param [Hash] opts the optional parameters
|
|
1371
|
-
# @return [Object]
|
|
1372
|
-
def update_user_file_recording(object_key, save_file_recording_dto, opts = {})
|
|
1373
|
-
data, _status_code, _headers = update_user_file_recording_with_http_info(object_key, save_file_recording_dto, opts)
|
|
1374
|
-
data
|
|
1375
|
-
end
|
|
1376
|
-
|
|
1377
|
-
# Create and edit metadata of your files.
|
|
1378
|
-
# @param object_key [String] ObjectKey of the file that should be edited.
|
|
1379
|
-
# @param save_file_recording_dto [SaveFileRecordingDTO]
|
|
1380
|
-
# @param [Hash] opts the optional parameters
|
|
1381
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
1382
|
-
def update_user_file_recording_with_http_info(object_key, save_file_recording_dto, opts = {})
|
|
1383
|
-
if @api_client.config.debugging
|
|
1384
|
-
@api_client.config.logger.debug 'Calling API: UserApi.update_user_file_recording ...'
|
|
1385
|
-
end
|
|
1386
|
-
# verify the required parameter 'object_key' is set
|
|
1387
|
-
if @api_client.config.client_side_validation && object_key.nil?
|
|
1388
|
-
fail ArgumentError, "Missing the required parameter 'object_key' when calling UserApi.update_user_file_recording"
|
|
1389
|
-
end
|
|
1390
|
-
# verify the required parameter 'save_file_recording_dto' is set
|
|
1391
|
-
if @api_client.config.client_side_validation && save_file_recording_dto.nil?
|
|
1392
|
-
fail ArgumentError, "Missing the required parameter 'save_file_recording_dto' when calling UserApi.update_user_file_recording"
|
|
1393
|
-
end
|
|
1394
|
-
# resource path
|
|
1395
|
-
local_var_path = '/api/v1/user/file/{objectKey}'.sub('{' + 'objectKey' + '}', CGI.escape(object_key.to_s))
|
|
1396
|
-
|
|
1397
|
-
# query parameters
|
|
1398
|
-
query_params = opts[:query_params] || {}
|
|
1399
|
-
|
|
1400
|
-
# header parameters
|
|
1401
|
-
header_params = opts[:header_params] || {}
|
|
1402
|
-
# HTTP header 'Accept' (if needed)
|
|
1403
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1404
|
-
# HTTP header 'Content-Type'
|
|
1405
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1406
|
-
if !content_type.nil?
|
|
1407
|
-
header_params['Content-Type'] = content_type
|
|
1408
|
-
end
|
|
1409
|
-
|
|
1410
|
-
# form parameters
|
|
1411
|
-
form_params = opts[:form_params] || {}
|
|
1412
|
-
|
|
1413
|
-
# http body (model)
|
|
1414
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(save_file_recording_dto)
|
|
1415
|
-
|
|
1416
|
-
# return_type
|
|
1417
|
-
return_type = opts[:debug_return_type] || 'Object'
|
|
1418
|
-
|
|
1419
|
-
# auth_names
|
|
1420
|
-
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
|
1421
|
-
|
|
1422
|
-
new_options = opts.merge(
|
|
1423
|
-
:operation => :"UserApi.update_user_file_recording",
|
|
1424
|
-
:header_params => header_params,
|
|
1425
|
-
:query_params => query_params,
|
|
1426
|
-
:form_params => form_params,
|
|
1427
|
-
:body => post_body,
|
|
1428
|
-
:auth_names => auth_names,
|
|
1429
|
-
:return_type => return_type
|
|
1430
|
-
)
|
|
1431
|
-
|
|
1432
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1433
|
-
if @api_client.config.debugging
|
|
1434
|
-
@api_client.config.logger.debug "API called: UserApi#update_user_file_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1435
|
-
end
|
|
1436
|
-
return data, status_code, headers
|
|
1437
|
-
end
|
|
1438
|
-
|
|
1439
1303
|
# Details and a download link for a file.
|
|
1440
1304
|
# @param object_key [String] ObjectKey of the file that should be edited.
|
|
1441
1305
|
# @param [Hash] opts the optional parameters
|
|
@@ -1880,14 +1744,76 @@ module SongtradrApiClientRuby
|
|
|
1880
1744
|
return data, status_code, headers
|
|
1881
1745
|
end
|
|
1882
1746
|
|
|
1883
|
-
#
|
|
1747
|
+
# Status details for files.
|
|
1748
|
+
# @param object_keys [String] Comma-separated list of objectKeys of the files.
|
|
1749
|
+
# @param [Hash] opts the optional parameters
|
|
1750
|
+
# @return [Array<FileSmallDTO>]
|
|
1751
|
+
def user_files_status(object_keys, opts = {})
|
|
1752
|
+
data, _status_code, _headers = user_files_status_with_http_info(object_keys, opts)
|
|
1753
|
+
data
|
|
1754
|
+
end
|
|
1755
|
+
|
|
1756
|
+
# Status details for files.
|
|
1757
|
+
# @param object_keys [String] Comma-separated list of objectKeys of the files.
|
|
1758
|
+
# @param [Hash] opts the optional parameters
|
|
1759
|
+
# @return [Array<(Array<FileSmallDTO>, Integer, Hash)>] Array<FileSmallDTO> data, response status code and response headers
|
|
1760
|
+
def user_files_status_with_http_info(object_keys, opts = {})
|
|
1761
|
+
if @api_client.config.debugging
|
|
1762
|
+
@api_client.config.logger.debug 'Calling API: UserApi.user_files_status ...'
|
|
1763
|
+
end
|
|
1764
|
+
# verify the required parameter 'object_keys' is set
|
|
1765
|
+
if @api_client.config.client_side_validation && object_keys.nil?
|
|
1766
|
+
fail ArgumentError, "Missing the required parameter 'object_keys' when calling UserApi.user_files_status"
|
|
1767
|
+
end
|
|
1768
|
+
# resource path
|
|
1769
|
+
local_var_path = '/api/v1/user/filesStatus'
|
|
1770
|
+
|
|
1771
|
+
# query parameters
|
|
1772
|
+
query_params = opts[:query_params] || {}
|
|
1773
|
+
query_params[:'objectKeys'] = object_keys
|
|
1774
|
+
|
|
1775
|
+
# header parameters
|
|
1776
|
+
header_params = opts[:header_params] || {}
|
|
1777
|
+
# HTTP header 'Accept' (if needed)
|
|
1778
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1779
|
+
|
|
1780
|
+
# form parameters
|
|
1781
|
+
form_params = opts[:form_params] || {}
|
|
1782
|
+
|
|
1783
|
+
# http body (model)
|
|
1784
|
+
post_body = opts[:debug_body]
|
|
1785
|
+
|
|
1786
|
+
# return_type
|
|
1787
|
+
return_type = opts[:debug_return_type] || 'Array<FileSmallDTO>'
|
|
1788
|
+
|
|
1789
|
+
# auth_names
|
|
1790
|
+
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
|
1791
|
+
|
|
1792
|
+
new_options = opts.merge(
|
|
1793
|
+
:operation => :"UserApi.user_files_status",
|
|
1794
|
+
:header_params => header_params,
|
|
1795
|
+
:query_params => query_params,
|
|
1796
|
+
:form_params => form_params,
|
|
1797
|
+
:body => post_body,
|
|
1798
|
+
:auth_names => auth_names,
|
|
1799
|
+
:return_type => return_type
|
|
1800
|
+
)
|
|
1801
|
+
|
|
1802
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1803
|
+
if @api_client.config.debugging
|
|
1804
|
+
@api_client.config.logger.debug "API called: UserApi#user_files_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1805
|
+
end
|
|
1806
|
+
return data, status_code, headers
|
|
1807
|
+
end
|
|
1808
|
+
|
|
1809
|
+
# Summary fo your files.
|
|
1884
1810
|
# @param [Hash] opts the optional parameters
|
|
1885
|
-
# @option opts [String] :isrc
|
|
1886
|
-
# @option opts [String] :contributor
|
|
1887
|
-
# @option opts [String] :main_artist
|
|
1888
|
-
# @option opts [String] :composer
|
|
1889
|
-
# @option opts [String] :title
|
|
1890
|
-
# @option opts [String] :language
|
|
1811
|
+
# @option opts [String] :isrc Search for a ISRC
|
|
1812
|
+
# @option opts [String] :contributor Search for a name that was involved as any contributor.
|
|
1813
|
+
# @option opts [String] :main_artist Search for a main artist.
|
|
1814
|
+
# @option opts [String] :composer Search for a composer.
|
|
1815
|
+
# @option opts [String] :title Search for a title.
|
|
1816
|
+
# @option opts [String] :language Search for a language of the lyrics.
|
|
1891
1817
|
# @option opts [Array<String>] :genre_names
|
|
1892
1818
|
# @option opts [Array<String>] :tag_names
|
|
1893
1819
|
# @option opts [Time] :release_date
|
|
@@ -1921,35 +1847,37 @@ module SongtradrApiClientRuby
|
|
|
1921
1847
|
# @option opts [String] :audience_age
|
|
1922
1848
|
# @option opts [String] :audience_region
|
|
1923
1849
|
# @option opts [String] :audience_gender
|
|
1850
|
+
# @option opts [String] :origin_decade
|
|
1851
|
+
# @option opts [String] :curateability
|
|
1852
|
+
# @option opts [String] :use_case
|
|
1853
|
+
# @option opts [String] :channel_suitability
|
|
1854
|
+
# @option opts [String] :similar_to_recording
|
|
1924
1855
|
# @option opts [String] :songtradr_track_id
|
|
1925
1856
|
# @option opts [String] :usage_name
|
|
1926
|
-
# @option opts [Integer] :bpm_min
|
|
1927
|
-
# @option opts [Integer] :bpm_max
|
|
1928
|
-
# @option opts [String] :name
|
|
1929
|
-
# @option opts [String] :folder
|
|
1930
|
-
# @option opts [String] :extension
|
|
1857
|
+
# @option opts [Integer] :bpm_min Search for a minimal bpm.
|
|
1858
|
+
# @option opts [Integer] :bpm_max Search for a maximal bpm.
|
|
1859
|
+
# @option opts [String] :name Search for a file name.
|
|
1860
|
+
# @option opts [String] :folder Search for a folder.
|
|
1861
|
+
# @option opts [String] :extension Search for a file extension.
|
|
1931
1862
|
# @option opts [Time] :upload_end_time
|
|
1932
1863
|
# @option opts [Time] :min_upload_end_time
|
|
1933
1864
|
# @option opts [Time] :max_upload_end_time
|
|
1934
|
-
# @option opts [String] :fingerprint_status
|
|
1935
|
-
# @option opts [String] :inference_status
|
|
1936
|
-
# @
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
# @return [Array<FileMinimalWithUrlDTO>]
|
|
1940
|
-
def user_files_download(opts = {})
|
|
1941
|
-
data, _status_code, _headers = user_files_download_with_http_info(opts)
|
|
1865
|
+
# @option opts [String] :fingerprint_status Search for a fingerprint status.
|
|
1866
|
+
# @option opts [String] :inference_status Search for a inference status.
|
|
1867
|
+
# @return [FilesSummaryDTO]
|
|
1868
|
+
def user_files_summary(opts = {})
|
|
1869
|
+
data, _status_code, _headers = user_files_summary_with_http_info(opts)
|
|
1942
1870
|
data
|
|
1943
1871
|
end
|
|
1944
1872
|
|
|
1945
|
-
#
|
|
1873
|
+
# Summary fo your files.
|
|
1946
1874
|
# @param [Hash] opts the optional parameters
|
|
1947
|
-
# @option opts [String] :isrc
|
|
1948
|
-
# @option opts [String] :contributor
|
|
1949
|
-
# @option opts [String] :main_artist
|
|
1950
|
-
# @option opts [String] :composer
|
|
1951
|
-
# @option opts [String] :title
|
|
1952
|
-
# @option opts [String] :language
|
|
1875
|
+
# @option opts [String] :isrc Search for a ISRC
|
|
1876
|
+
# @option opts [String] :contributor Search for a name that was involved as any contributor.
|
|
1877
|
+
# @option opts [String] :main_artist Search for a main artist.
|
|
1878
|
+
# @option opts [String] :composer Search for a composer.
|
|
1879
|
+
# @option opts [String] :title Search for a title.
|
|
1880
|
+
# @option opts [String] :language Search for a language of the lyrics.
|
|
1953
1881
|
# @option opts [Array<String>] :genre_names
|
|
1954
1882
|
# @option opts [Array<String>] :tag_names
|
|
1955
1883
|
# @option opts [Time] :release_date
|
|
@@ -1983,25 +1911,31 @@ module SongtradrApiClientRuby
|
|
|
1983
1911
|
# @option opts [String] :audience_age
|
|
1984
1912
|
# @option opts [String] :audience_region
|
|
1985
1913
|
# @option opts [String] :audience_gender
|
|
1914
|
+
# @option opts [String] :origin_decade
|
|
1915
|
+
# @option opts [String] :curateability
|
|
1916
|
+
# @option opts [String] :use_case
|
|
1917
|
+
# @option opts [String] :channel_suitability
|
|
1918
|
+
# @option opts [String] :similar_to_recording
|
|
1986
1919
|
# @option opts [String] :songtradr_track_id
|
|
1987
1920
|
# @option opts [String] :usage_name
|
|
1988
|
-
# @option opts [Integer] :bpm_min
|
|
1989
|
-
# @option opts [Integer] :bpm_max
|
|
1990
|
-
# @option opts [String] :name
|
|
1991
|
-
# @option opts [String] :folder
|
|
1992
|
-
# @option opts [String] :extension
|
|
1921
|
+
# @option opts [Integer] :bpm_min Search for a minimal bpm.
|
|
1922
|
+
# @option opts [Integer] :bpm_max Search for a maximal bpm.
|
|
1923
|
+
# @option opts [String] :name Search for a file name.
|
|
1924
|
+
# @option opts [String] :folder Search for a folder.
|
|
1925
|
+
# @option opts [String] :extension Search for a file extension.
|
|
1993
1926
|
# @option opts [Time] :upload_end_time
|
|
1994
1927
|
# @option opts [Time] :min_upload_end_time
|
|
1995
1928
|
# @option opts [Time] :max_upload_end_time
|
|
1996
|
-
# @option opts [String] :fingerprint_status
|
|
1997
|
-
# @option opts [String] :inference_status
|
|
1998
|
-
# @
|
|
1999
|
-
|
|
2000
|
-
# @option opts [Array<String>] :sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
2001
|
-
# @return [Array<(Array<FileMinimalWithUrlDTO>, Integer, Hash)>] Array<FileMinimalWithUrlDTO> data, response status code and response headers
|
|
2002
|
-
def user_files_download_with_http_info(opts = {})
|
|
1929
|
+
# @option opts [String] :fingerprint_status Search for a fingerprint status.
|
|
1930
|
+
# @option opts [String] :inference_status Search for a inference status.
|
|
1931
|
+
# @return [Array<(FilesSummaryDTO, Integer, Hash)>] FilesSummaryDTO data, response status code and response headers
|
|
1932
|
+
def user_files_summary_with_http_info(opts = {})
|
|
2003
1933
|
if @api_client.config.debugging
|
|
2004
|
-
@api_client.config.logger.debug 'Calling API: UserApi.
|
|
1934
|
+
@api_client.config.logger.debug 'Calling API: UserApi.user_files_summary ...'
|
|
1935
|
+
end
|
|
1936
|
+
allowable_values = ["en", "es", "fr", "de", "jp", "cn", "IT", "RU"]
|
|
1937
|
+
if @api_client.config.client_side_validation && opts[:'language'] && !allowable_values.include?(opts[:'language'])
|
|
1938
|
+
fail ArgumentError, "invalid value for \"language\", must be one of #{allowable_values}"
|
|
2005
1939
|
end
|
|
2006
1940
|
allowable_values = ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"]
|
|
2007
1941
|
if @api_client.config.client_side_validation && opts[:'primary_mood_cluster'] && !allowable_values.include?(opts[:'primary_mood_cluster'])
|
|
@@ -2123,20 +2057,28 @@ module SongtradrApiClientRuby
|
|
|
2123
2057
|
if @api_client.config.client_side_validation && opts[:'audience_gender'] && !allowable_values.include?(opts[:'audience_gender'])
|
|
2124
2058
|
fail ArgumentError, "invalid value for \"audience_gender\", must be one of #{allowable_values}"
|
|
2125
2059
|
end
|
|
2126
|
-
|
|
2127
|
-
|
|
2060
|
+
allowable_values = ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"]
|
|
2061
|
+
if @api_client.config.client_side_validation && opts[:'origin_decade'] && !allowable_values.include?(opts[:'origin_decade'])
|
|
2062
|
+
fail ArgumentError, "invalid value for \"origin_decade\", must be one of #{allowable_values}"
|
|
2128
2063
|
end
|
|
2129
|
-
|
|
2130
|
-
if @api_client.config.client_side_validation &&
|
|
2131
|
-
fail ArgumentError,
|
|
2064
|
+
allowable_values = ["curateable", "uncurateable"]
|
|
2065
|
+
if @api_client.config.client_side_validation && opts[:'curateability'] && !allowable_values.include?(opts[:'curateability'])
|
|
2066
|
+
fail ArgumentError, "invalid value for \"curateability\", must be one of #{allowable_values}"
|
|
2067
|
+
end
|
|
2068
|
+
allowable_values = ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"]
|
|
2069
|
+
if @api_client.config.client_side_validation && opts[:'use_case'] && !allowable_values.include?(opts[:'use_case'])
|
|
2070
|
+
fail ArgumentError, "invalid value for \"use_case\", must be one of #{allowable_values}"
|
|
2071
|
+
end
|
|
2072
|
+
allowable_values = ["Spotify", "TikTok", "Unfitting", "YouTube"]
|
|
2073
|
+
if @api_client.config.client_side_validation && opts[:'channel_suitability'] && !allowable_values.include?(opts[:'channel_suitability'])
|
|
2074
|
+
fail ArgumentError, "invalid value for \"channel_suitability\", must be one of #{allowable_values}"
|
|
2132
2075
|
end
|
|
2133
|
-
|
|
2134
2076
|
# resource path
|
|
2135
|
-
local_var_path = '/api/v1/user/
|
|
2077
|
+
local_var_path = '/api/v1/user/filesSummary'
|
|
2136
2078
|
|
|
2137
2079
|
# query parameters
|
|
2138
2080
|
query_params = opts[:query_params] || {}
|
|
2139
|
-
query_params[:'
|
|
2081
|
+
query_params[:'ISRC'] = opts[:'isrc'] if !opts[:'isrc'].nil?
|
|
2140
2082
|
query_params[:'contributor'] = opts[:'contributor'] if !opts[:'contributor'].nil?
|
|
2141
2083
|
query_params[:'mainArtist'] = opts[:'main_artist'] if !opts[:'main_artist'].nil?
|
|
2142
2084
|
query_params[:'composer'] = opts[:'composer'] if !opts[:'composer'].nil?
|
|
@@ -2175,6 +2117,11 @@ module SongtradrApiClientRuby
|
|
|
2175
2117
|
query_params[:'audienceAge'] = opts[:'audience_age'] if !opts[:'audience_age'].nil?
|
|
2176
2118
|
query_params[:'audienceRegion'] = opts[:'audience_region'] if !opts[:'audience_region'].nil?
|
|
2177
2119
|
query_params[:'audienceGender'] = opts[:'audience_gender'] if !opts[:'audience_gender'].nil?
|
|
2120
|
+
query_params[:'originDecade'] = opts[:'origin_decade'] if !opts[:'origin_decade'].nil?
|
|
2121
|
+
query_params[:'curateability'] = opts[:'curateability'] if !opts[:'curateability'].nil?
|
|
2122
|
+
query_params[:'useCase'] = opts[:'use_case'] if !opts[:'use_case'].nil?
|
|
2123
|
+
query_params[:'channelSuitability'] = opts[:'channel_suitability'] if !opts[:'channel_suitability'].nil?
|
|
2124
|
+
query_params[:'similarToRecording'] = opts[:'similar_to_recording'] if !opts[:'similar_to_recording'].nil?
|
|
2178
2125
|
query_params[:'songtradrTrackId'] = opts[:'songtradr_track_id'] if !opts[:'songtradr_track_id'].nil?
|
|
2179
2126
|
query_params[:'usageName'] = opts[:'usage_name'] if !opts[:'usage_name'].nil?
|
|
2180
2127
|
query_params[:'bpmMin'] = opts[:'bpm_min'] if !opts[:'bpm_min'].nil?
|
|
@@ -2187,9 +2134,6 @@ module SongtradrApiClientRuby
|
|
|
2187
2134
|
query_params[:'maxUploadEndTime'] = opts[:'max_upload_end_time'] if !opts[:'max_upload_end_time'].nil?
|
|
2188
2135
|
query_params[:'fingerprintStatus'] = opts[:'fingerprint_status'] if !opts[:'fingerprint_status'].nil?
|
|
2189
2136
|
query_params[:'inferenceStatus'] = opts[:'inference_status'] if !opts[:'inference_status'].nil?
|
|
2190
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
2191
|
-
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
2192
|
-
query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
|
|
2193
2137
|
|
|
2194
2138
|
# header parameters
|
|
2195
2139
|
header_params = opts[:header_params] || {}
|
|
@@ -2203,438 +2147,13 @@ module SongtradrApiClientRuby
|
|
|
2203
2147
|
post_body = opts[:debug_body]
|
|
2204
2148
|
|
|
2205
2149
|
# return_type
|
|
2206
|
-
return_type = opts[:debug_return_type] || '
|
|
2150
|
+
return_type = opts[:debug_return_type] || 'FilesSummaryDTO'
|
|
2207
2151
|
|
|
2208
2152
|
# auth_names
|
|
2209
2153
|
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
|
2210
2154
|
|
|
2211
2155
|
new_options = opts.merge(
|
|
2212
|
-
:operation => :"UserApi.
|
|
2213
|
-
:header_params => header_params,
|
|
2214
|
-
:query_params => query_params,
|
|
2215
|
-
:form_params => form_params,
|
|
2216
|
-
:body => post_body,
|
|
2217
|
-
:auth_names => auth_names,
|
|
2218
|
-
:return_type => return_type
|
|
2219
|
-
)
|
|
2220
|
-
|
|
2221
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2222
|
-
if @api_client.config.debugging
|
|
2223
|
-
@api_client.config.logger.debug "API called: UserApi#user_files_download\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2224
|
-
end
|
|
2225
|
-
return data, status_code, headers
|
|
2226
|
-
end
|
|
2227
|
-
|
|
2228
|
-
# Status details for files.
|
|
2229
|
-
# @param object_keys [String] Comma-separated list of objectKeys of the files.
|
|
2230
|
-
# @param [Hash] opts the optional parameters
|
|
2231
|
-
# @return [Array<FileSmallDTO>]
|
|
2232
|
-
def user_files_status(object_keys, opts = {})
|
|
2233
|
-
data, _status_code, _headers = user_files_status_with_http_info(object_keys, opts)
|
|
2234
|
-
data
|
|
2235
|
-
end
|
|
2236
|
-
|
|
2237
|
-
# Status details for files.
|
|
2238
|
-
# @param object_keys [String] Comma-separated list of objectKeys of the files.
|
|
2239
|
-
# @param [Hash] opts the optional parameters
|
|
2240
|
-
# @return [Array<(Array<FileSmallDTO>, Integer, Hash)>] Array<FileSmallDTO> data, response status code and response headers
|
|
2241
|
-
def user_files_status_with_http_info(object_keys, opts = {})
|
|
2242
|
-
if @api_client.config.debugging
|
|
2243
|
-
@api_client.config.logger.debug 'Calling API: UserApi.user_files_status ...'
|
|
2244
|
-
end
|
|
2245
|
-
# verify the required parameter 'object_keys' is set
|
|
2246
|
-
if @api_client.config.client_side_validation && object_keys.nil?
|
|
2247
|
-
fail ArgumentError, "Missing the required parameter 'object_keys' when calling UserApi.user_files_status"
|
|
2248
|
-
end
|
|
2249
|
-
# resource path
|
|
2250
|
-
local_var_path = '/api/v1/user/filesStatus'
|
|
2251
|
-
|
|
2252
|
-
# query parameters
|
|
2253
|
-
query_params = opts[:query_params] || {}
|
|
2254
|
-
query_params[:'objectKeys'] = object_keys
|
|
2255
|
-
|
|
2256
|
-
# header parameters
|
|
2257
|
-
header_params = opts[:header_params] || {}
|
|
2258
|
-
# HTTP header 'Accept' (if needed)
|
|
2259
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2260
|
-
|
|
2261
|
-
# form parameters
|
|
2262
|
-
form_params = opts[:form_params] || {}
|
|
2263
|
-
|
|
2264
|
-
# http body (model)
|
|
2265
|
-
post_body = opts[:debug_body]
|
|
2266
|
-
|
|
2267
|
-
# return_type
|
|
2268
|
-
return_type = opts[:debug_return_type] || 'Array<FileSmallDTO>'
|
|
2269
|
-
|
|
2270
|
-
# auth_names
|
|
2271
|
-
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
|
2272
|
-
|
|
2273
|
-
new_options = opts.merge(
|
|
2274
|
-
:operation => :"UserApi.user_files_status",
|
|
2275
|
-
:header_params => header_params,
|
|
2276
|
-
:query_params => query_params,
|
|
2277
|
-
:form_params => form_params,
|
|
2278
|
-
:body => post_body,
|
|
2279
|
-
:auth_names => auth_names,
|
|
2280
|
-
:return_type => return_type
|
|
2281
|
-
)
|
|
2282
|
-
|
|
2283
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2284
|
-
if @api_client.config.debugging
|
|
2285
|
-
@api_client.config.logger.debug "API called: UserApi#user_files_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2286
|
-
end
|
|
2287
|
-
return data, status_code, headers
|
|
2288
|
-
end
|
|
2289
|
-
|
|
2290
|
-
# Summary fo your files.
|
|
2291
|
-
# @param [Hash] opts the optional parameters
|
|
2292
|
-
# @option opts [String] :isrc Search for a ISRC
|
|
2293
|
-
# @option opts [String] :contributor Search for a name that was involved as any contributor.
|
|
2294
|
-
# @option opts [String] :main_artist Search for a main artist.
|
|
2295
|
-
# @option opts [String] :composer Search for a composer.
|
|
2296
|
-
# @option opts [String] :title Search for a title.
|
|
2297
|
-
# @option opts [String] :language Search for a language of the lyrics.
|
|
2298
|
-
# @option opts [Array<String>] :genre_names
|
|
2299
|
-
# @option opts [Array<String>] :tag_names
|
|
2300
|
-
# @option opts [Time] :release_date
|
|
2301
|
-
# @option opts [String] :primary_mood_cluster
|
|
2302
|
-
# @option opts [String] :secondary_mood_cluster
|
|
2303
|
-
# @option opts [String] :tertiary_mood_cluster
|
|
2304
|
-
# @option opts [String] :valence
|
|
2305
|
-
# @option opts [String] :arousal
|
|
2306
|
-
# @option opts [String] :pleasantness
|
|
2307
|
-
# @option opts [String] :engagement
|
|
2308
|
-
# @option opts [String] :vocals
|
|
2309
|
-
# @option opts [String] :dominant_instrument
|
|
2310
|
-
# @option opts [String] :secondary_instrument
|
|
2311
|
-
# @option opts [String] :tertiary_instrument
|
|
2312
|
-
# @option opts [String] :energy
|
|
2313
|
-
# @option opts [String] :sound_generation
|
|
2314
|
-
# @option opts [String] :tempo
|
|
2315
|
-
# @option opts [String] :scale
|
|
2316
|
-
# @option opts [String] :rhythm
|
|
2317
|
-
# @option opts [String] :primary_sound_character
|
|
2318
|
-
# @option opts [String] :timbre
|
|
2319
|
-
# @option opts [String] :roughness
|
|
2320
|
-
# @option opts [String] :tonality
|
|
2321
|
-
# @option opts [String] :harmony
|
|
2322
|
-
# @option opts [String] :texture
|
|
2323
|
-
# @option opts [String] :groovyness
|
|
2324
|
-
# @option opts [String] :space
|
|
2325
|
-
# @option opts [String] :production_rating
|
|
2326
|
-
# @option opts [String] :performance_rating
|
|
2327
|
-
# @option opts [String] :song_rating
|
|
2328
|
-
# @option opts [String] :audience_age
|
|
2329
|
-
# @option opts [String] :audience_region
|
|
2330
|
-
# @option opts [String] :audience_gender
|
|
2331
|
-
# @option opts [String] :origin_decade
|
|
2332
|
-
# @option opts [String] :curateability
|
|
2333
|
-
# @option opts [String] :use_case
|
|
2334
|
-
# @option opts [String] :channel_suitability
|
|
2335
|
-
# @option opts [String] :similar_to_recording
|
|
2336
|
-
# @option opts [String] :songtradr_track_id
|
|
2337
|
-
# @option opts [String] :usage_name
|
|
2338
|
-
# @option opts [Integer] :bpm_min Search for a minimal bpm.
|
|
2339
|
-
# @option opts [Integer] :bpm_max Search for a maximal bpm.
|
|
2340
|
-
# @option opts [String] :name Search for a file name.
|
|
2341
|
-
# @option opts [String] :folder Search for a folder.
|
|
2342
|
-
# @option opts [String] :extension Search for a file extension.
|
|
2343
|
-
# @option opts [Time] :upload_end_time
|
|
2344
|
-
# @option opts [Time] :min_upload_end_time
|
|
2345
|
-
# @option opts [Time] :max_upload_end_time
|
|
2346
|
-
# @option opts [String] :fingerprint_status Search for a fingerprint status.
|
|
2347
|
-
# @option opts [String] :inference_status Search for a inference status.
|
|
2348
|
-
# @return [FilesSummaryDTO]
|
|
2349
|
-
def user_files_summary(opts = {})
|
|
2350
|
-
data, _status_code, _headers = user_files_summary_with_http_info(opts)
|
|
2351
|
-
data
|
|
2352
|
-
end
|
|
2353
|
-
|
|
2354
|
-
# Summary fo your files.
|
|
2355
|
-
# @param [Hash] opts the optional parameters
|
|
2356
|
-
# @option opts [String] :isrc Search for a ISRC
|
|
2357
|
-
# @option opts [String] :contributor Search for a name that was involved as any contributor.
|
|
2358
|
-
# @option opts [String] :main_artist Search for a main artist.
|
|
2359
|
-
# @option opts [String] :composer Search for a composer.
|
|
2360
|
-
# @option opts [String] :title Search for a title.
|
|
2361
|
-
# @option opts [String] :language Search for a language of the lyrics.
|
|
2362
|
-
# @option opts [Array<String>] :genre_names
|
|
2363
|
-
# @option opts [Array<String>] :tag_names
|
|
2364
|
-
# @option opts [Time] :release_date
|
|
2365
|
-
# @option opts [String] :primary_mood_cluster
|
|
2366
|
-
# @option opts [String] :secondary_mood_cluster
|
|
2367
|
-
# @option opts [String] :tertiary_mood_cluster
|
|
2368
|
-
# @option opts [String] :valence
|
|
2369
|
-
# @option opts [String] :arousal
|
|
2370
|
-
# @option opts [String] :pleasantness
|
|
2371
|
-
# @option opts [String] :engagement
|
|
2372
|
-
# @option opts [String] :vocals
|
|
2373
|
-
# @option opts [String] :dominant_instrument
|
|
2374
|
-
# @option opts [String] :secondary_instrument
|
|
2375
|
-
# @option opts [String] :tertiary_instrument
|
|
2376
|
-
# @option opts [String] :energy
|
|
2377
|
-
# @option opts [String] :sound_generation
|
|
2378
|
-
# @option opts [String] :tempo
|
|
2379
|
-
# @option opts [String] :scale
|
|
2380
|
-
# @option opts [String] :rhythm
|
|
2381
|
-
# @option opts [String] :primary_sound_character
|
|
2382
|
-
# @option opts [String] :timbre
|
|
2383
|
-
# @option opts [String] :roughness
|
|
2384
|
-
# @option opts [String] :tonality
|
|
2385
|
-
# @option opts [String] :harmony
|
|
2386
|
-
# @option opts [String] :texture
|
|
2387
|
-
# @option opts [String] :groovyness
|
|
2388
|
-
# @option opts [String] :space
|
|
2389
|
-
# @option opts [String] :production_rating
|
|
2390
|
-
# @option opts [String] :performance_rating
|
|
2391
|
-
# @option opts [String] :song_rating
|
|
2392
|
-
# @option opts [String] :audience_age
|
|
2393
|
-
# @option opts [String] :audience_region
|
|
2394
|
-
# @option opts [String] :audience_gender
|
|
2395
|
-
# @option opts [String] :origin_decade
|
|
2396
|
-
# @option opts [String] :curateability
|
|
2397
|
-
# @option opts [String] :use_case
|
|
2398
|
-
# @option opts [String] :channel_suitability
|
|
2399
|
-
# @option opts [String] :similar_to_recording
|
|
2400
|
-
# @option opts [String] :songtradr_track_id
|
|
2401
|
-
# @option opts [String] :usage_name
|
|
2402
|
-
# @option opts [Integer] :bpm_min Search for a minimal bpm.
|
|
2403
|
-
# @option opts [Integer] :bpm_max Search for a maximal bpm.
|
|
2404
|
-
# @option opts [String] :name Search for a file name.
|
|
2405
|
-
# @option opts [String] :folder Search for a folder.
|
|
2406
|
-
# @option opts [String] :extension Search for a file extension.
|
|
2407
|
-
# @option opts [Time] :upload_end_time
|
|
2408
|
-
# @option opts [Time] :min_upload_end_time
|
|
2409
|
-
# @option opts [Time] :max_upload_end_time
|
|
2410
|
-
# @option opts [String] :fingerprint_status Search for a fingerprint status.
|
|
2411
|
-
# @option opts [String] :inference_status Search for a inference status.
|
|
2412
|
-
# @return [Array<(FilesSummaryDTO, Integer, Hash)>] FilesSummaryDTO data, response status code and response headers
|
|
2413
|
-
def user_files_summary_with_http_info(opts = {})
|
|
2414
|
-
if @api_client.config.debugging
|
|
2415
|
-
@api_client.config.logger.debug 'Calling API: UserApi.user_files_summary ...'
|
|
2416
|
-
end
|
|
2417
|
-
allowable_values = ["en", "es", "fr", "de", "jp", "cn", "IT", "RU"]
|
|
2418
|
-
if @api_client.config.client_side_validation && opts[:'language'] && !allowable_values.include?(opts[:'language'])
|
|
2419
|
-
fail ArgumentError, "invalid value for \"language\", must be one of #{allowable_values}"
|
|
2420
|
-
end
|
|
2421
|
-
allowable_values = ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"]
|
|
2422
|
-
if @api_client.config.client_side_validation && opts[:'primary_mood_cluster'] && !allowable_values.include?(opts[:'primary_mood_cluster'])
|
|
2423
|
-
fail ArgumentError, "invalid value for \"primary_mood_cluster\", must be one of #{allowable_values}"
|
|
2424
|
-
end
|
|
2425
|
-
allowable_values = ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"]
|
|
2426
|
-
if @api_client.config.client_side_validation && opts[:'secondary_mood_cluster'] && !allowable_values.include?(opts[:'secondary_mood_cluster'])
|
|
2427
|
-
fail ArgumentError, "invalid value for \"secondary_mood_cluster\", must be one of #{allowable_values}"
|
|
2428
|
-
end
|
|
2429
|
-
allowable_values = ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"]
|
|
2430
|
-
if @api_client.config.client_side_validation && opts[:'tertiary_mood_cluster'] && !allowable_values.include?(opts[:'tertiary_mood_cluster'])
|
|
2431
|
-
fail ArgumentError, "invalid value for \"tertiary_mood_cluster\", must be one of #{allowable_values}"
|
|
2432
|
-
end
|
|
2433
|
-
allowable_values = ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"]
|
|
2434
|
-
if @api_client.config.client_side_validation && opts[:'valence'] && !allowable_values.include?(opts[:'valence'])
|
|
2435
|
-
fail ArgumentError, "invalid value for \"valence\", must be one of #{allowable_values}"
|
|
2436
|
-
end
|
|
2437
|
-
allowable_values = ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"]
|
|
2438
|
-
if @api_client.config.client_side_validation && opts[:'arousal'] && !allowable_values.include?(opts[:'arousal'])
|
|
2439
|
-
fail ArgumentError, "invalid value for \"arousal\", must be one of #{allowable_values}"
|
|
2440
|
-
end
|
|
2441
|
-
allowable_values = ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"]
|
|
2442
|
-
if @api_client.config.client_side_validation && opts[:'pleasantness'] && !allowable_values.include?(opts[:'pleasantness'])
|
|
2443
|
-
fail ArgumentError, "invalid value for \"pleasantness\", must be one of #{allowable_values}"
|
|
2444
|
-
end
|
|
2445
|
-
allowable_values = ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"]
|
|
2446
|
-
if @api_client.config.client_side_validation && opts[:'engagement'] && !allowable_values.include?(opts[:'engagement'])
|
|
2447
|
-
fail ArgumentError, "invalid value for \"engagement\", must be one of #{allowable_values}"
|
|
2448
|
-
end
|
|
2449
|
-
allowable_values = ["instrumental", "female vocals", "male vocals", "mixed vocals", "diverse gender vocals"]
|
|
2450
|
-
if @api_client.config.client_side_validation && opts[:'vocals'] && !allowable_values.include?(opts[:'vocals'])
|
|
2451
|
-
fail ArgumentError, "invalid value for \"vocals\", must be one of #{allowable_values}"
|
|
2452
|
-
end
|
|
2453
|
-
allowable_values = ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"]
|
|
2454
|
-
if @api_client.config.client_side_validation && opts[:'dominant_instrument'] && !allowable_values.include?(opts[:'dominant_instrument'])
|
|
2455
|
-
fail ArgumentError, "invalid value for \"dominant_instrument\", must be one of #{allowable_values}"
|
|
2456
|
-
end
|
|
2457
|
-
allowable_values = ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"]
|
|
2458
|
-
if @api_client.config.client_side_validation && opts[:'secondary_instrument'] && !allowable_values.include?(opts[:'secondary_instrument'])
|
|
2459
|
-
fail ArgumentError, "invalid value for \"secondary_instrument\", must be one of #{allowable_values}"
|
|
2460
|
-
end
|
|
2461
|
-
allowable_values = ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"]
|
|
2462
|
-
if @api_client.config.client_side_validation && opts[:'tertiary_instrument'] && !allowable_values.include?(opts[:'tertiary_instrument'])
|
|
2463
|
-
fail ArgumentError, "invalid value for \"tertiary_instrument\", must be one of #{allowable_values}"
|
|
2464
|
-
end
|
|
2465
|
-
allowable_values = ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"]
|
|
2466
|
-
if @api_client.config.client_side_validation && opts[:'energy'] && !allowable_values.include?(opts[:'energy'])
|
|
2467
|
-
fail ArgumentError, "invalid value for \"energy\", must be one of #{allowable_values}"
|
|
2468
|
-
end
|
|
2469
|
-
allowable_values = ["acoustic", "electric", "electronic", "mixed sound generation"]
|
|
2470
|
-
if @api_client.config.client_side_validation && opts[:'sound_generation'] && !allowable_values.include?(opts[:'sound_generation'])
|
|
2471
|
-
fail ArgumentError, "invalid value for \"sound_generation\", must be one of #{allowable_values}"
|
|
2472
|
-
end
|
|
2473
|
-
allowable_values = ["very slow", "slow", "mid-tempo", "fast", "very fast", "varying tempo"]
|
|
2474
|
-
if @api_client.config.client_side_validation && opts[:'tempo'] && !allowable_values.include?(opts[:'tempo'])
|
|
2475
|
-
fail ArgumentError, "invalid value for \"tempo\", must be one of #{allowable_values}"
|
|
2476
|
-
end
|
|
2477
|
-
allowable_values = ["major key", "minor key", "neutral key"]
|
|
2478
|
-
if @api_client.config.client_side_validation && opts[:'scale'] && !allowable_values.include?(opts[:'scale'])
|
|
2479
|
-
fail ArgumentError, "invalid value for \"scale\", must be one of #{allowable_values}"
|
|
2480
|
-
end
|
|
2481
|
-
allowable_values = ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"]
|
|
2482
|
-
if @api_client.config.client_side_validation && opts[:'rhythm'] && !allowable_values.include?(opts[:'rhythm'])
|
|
2483
|
-
fail ArgumentError, "invalid value for \"rhythm\", must be one of #{allowable_values}"
|
|
2484
|
-
end
|
|
2485
|
-
allowable_values = ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"]
|
|
2486
|
-
if @api_client.config.client_side_validation && opts[:'primary_sound_character'] && !allowable_values.include?(opts[:'primary_sound_character'])
|
|
2487
|
-
fail ArgumentError, "invalid value for \"primary_sound_character\", must be one of #{allowable_values}"
|
|
2488
|
-
end
|
|
2489
|
-
allowable_values = ["very warm", "warm", "moderate timbre", "bright", "very bright"]
|
|
2490
|
-
if @api_client.config.client_side_validation && opts[:'timbre'] && !allowable_values.include?(opts[:'timbre'])
|
|
2491
|
-
fail ArgumentError, "invalid value for \"timbre\", must be one of #{allowable_values}"
|
|
2492
|
-
end
|
|
2493
|
-
allowable_values = ["very clear", "clear", "moderate roughness", "distorted", "very distorted"]
|
|
2494
|
-
if @api_client.config.client_side_validation && opts[:'roughness'] && !allowable_values.include?(opts[:'roughness'])
|
|
2495
|
-
fail ArgumentError, "invalid value for \"roughness\", must be one of #{allowable_values}"
|
|
2496
|
-
end
|
|
2497
|
-
allowable_values = ["monotonous", "moderate melodiousness", "melodious", "atonal"]
|
|
2498
|
-
if @api_client.config.client_side_validation && opts[:'tonality'] && !allowable_values.include?(opts[:'tonality'])
|
|
2499
|
-
fail ArgumentError, "invalid value for \"tonality\", must be one of #{allowable_values}"
|
|
2500
|
-
end
|
|
2501
|
-
allowable_values = ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"]
|
|
2502
|
-
if @api_client.config.client_side_validation && opts[:'harmony'] && !allowable_values.include?(opts[:'harmony'])
|
|
2503
|
-
fail ArgumentError, "invalid value for \"harmony\", must be one of #{allowable_values}"
|
|
2504
|
-
end
|
|
2505
|
-
allowable_values = ["very thin", "thin", "moderate texture", "full", "very full"]
|
|
2506
|
-
if @api_client.config.client_side_validation && opts[:'texture'] && !allowable_values.include?(opts[:'texture'])
|
|
2507
|
-
fail ArgumentError, "invalid value for \"texture\", must be one of #{allowable_values}"
|
|
2508
|
-
end
|
|
2509
|
-
allowable_values = ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"]
|
|
2510
|
-
if @api_client.config.client_side_validation && opts[:'groovyness'] && !allowable_values.include?(opts[:'groovyness'])
|
|
2511
|
-
fail ArgumentError, "invalid value for \"groovyness\", must be one of #{allowable_values}"
|
|
2512
|
-
end
|
|
2513
|
-
allowable_values = ["very compact", "compact", "moderate space", "wide", "very wide"]
|
|
2514
|
-
if @api_client.config.client_side_validation && opts[:'space'] && !allowable_values.include?(opts[:'space'])
|
|
2515
|
-
fail ArgumentError, "invalid value for \"space\", must be one of #{allowable_values}"
|
|
2516
|
-
end
|
|
2517
|
-
allowable_values = ["low production quality", "medium production quality", "high production quality"]
|
|
2518
|
-
if @api_client.config.client_side_validation && opts[:'production_rating'] && !allowable_values.include?(opts[:'production_rating'])
|
|
2519
|
-
fail ArgumentError, "invalid value for \"production_rating\", must be one of #{allowable_values}"
|
|
2520
|
-
end
|
|
2521
|
-
allowable_values = ["low performance quality", "medium performance quality", "high performance quality"]
|
|
2522
|
-
if @api_client.config.client_side_validation && opts[:'performance_rating'] && !allowable_values.include?(opts[:'performance_rating'])
|
|
2523
|
-
fail ArgumentError, "invalid value for \"performance_rating\", must be one of #{allowable_values}"
|
|
2524
|
-
end
|
|
2525
|
-
allowable_values = ["low song quality", "medium song quality", "high song quality"]
|
|
2526
|
-
if @api_client.config.client_side_validation && opts[:'song_rating'] && !allowable_values.include?(opts[:'song_rating'])
|
|
2527
|
-
fail ArgumentError, "invalid value for \"song_rating\", must be one of #{allowable_values}"
|
|
2528
|
-
end
|
|
2529
|
-
allowable_values = ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"]
|
|
2530
|
-
if @api_client.config.client_side_validation && opts[:'audience_age'] && !allowable_values.include?(opts[:'audience_age'])
|
|
2531
|
-
fail ArgumentError, "invalid value for \"audience_age\", must be one of #{allowable_values}"
|
|
2532
|
-
end
|
|
2533
|
-
allowable_values = ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"]
|
|
2534
|
-
if @api_client.config.client_side_validation && opts[:'audience_region'] && !allowable_values.include?(opts[:'audience_region'])
|
|
2535
|
-
fail ArgumentError, "invalid value for \"audience_region\", must be one of #{allowable_values}"
|
|
2536
|
-
end
|
|
2537
|
-
allowable_values = ["male", "female"]
|
|
2538
|
-
if @api_client.config.client_side_validation && opts[:'audience_gender'] && !allowable_values.include?(opts[:'audience_gender'])
|
|
2539
|
-
fail ArgumentError, "invalid value for \"audience_gender\", must be one of #{allowable_values}"
|
|
2540
|
-
end
|
|
2541
|
-
allowable_values = ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"]
|
|
2542
|
-
if @api_client.config.client_side_validation && opts[:'origin_decade'] && !allowable_values.include?(opts[:'origin_decade'])
|
|
2543
|
-
fail ArgumentError, "invalid value for \"origin_decade\", must be one of #{allowable_values}"
|
|
2544
|
-
end
|
|
2545
|
-
allowable_values = ["curateable", "uncurateable"]
|
|
2546
|
-
if @api_client.config.client_side_validation && opts[:'curateability'] && !allowable_values.include?(opts[:'curateability'])
|
|
2547
|
-
fail ArgumentError, "invalid value for \"curateability\", must be one of #{allowable_values}"
|
|
2548
|
-
end
|
|
2549
|
-
allowable_values = ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"]
|
|
2550
|
-
if @api_client.config.client_side_validation && opts[:'use_case'] && !allowable_values.include?(opts[:'use_case'])
|
|
2551
|
-
fail ArgumentError, "invalid value for \"use_case\", must be one of #{allowable_values}"
|
|
2552
|
-
end
|
|
2553
|
-
allowable_values = ["Spotify", "TikTok", "Unfitting", "YouTube"]
|
|
2554
|
-
if @api_client.config.client_side_validation && opts[:'channel_suitability'] && !allowable_values.include?(opts[:'channel_suitability'])
|
|
2555
|
-
fail ArgumentError, "invalid value for \"channel_suitability\", must be one of #{allowable_values}"
|
|
2556
|
-
end
|
|
2557
|
-
# resource path
|
|
2558
|
-
local_var_path = '/api/v1/user/filesSummary'
|
|
2559
|
-
|
|
2560
|
-
# query parameters
|
|
2561
|
-
query_params = opts[:query_params] || {}
|
|
2562
|
-
query_params[:'ISRC'] = opts[:'isrc'] if !opts[:'isrc'].nil?
|
|
2563
|
-
query_params[:'contributor'] = opts[:'contributor'] if !opts[:'contributor'].nil?
|
|
2564
|
-
query_params[:'mainArtist'] = opts[:'main_artist'] if !opts[:'main_artist'].nil?
|
|
2565
|
-
query_params[:'composer'] = opts[:'composer'] if !opts[:'composer'].nil?
|
|
2566
|
-
query_params[:'title'] = opts[:'title'] if !opts[:'title'].nil?
|
|
2567
|
-
query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil?
|
|
2568
|
-
query_params[:'genreNames'] = @api_client.build_collection_param(opts[:'genre_names'], :multi) if !opts[:'genre_names'].nil?
|
|
2569
|
-
query_params[:'tagNames'] = @api_client.build_collection_param(opts[:'tag_names'], :multi) if !opts[:'tag_names'].nil?
|
|
2570
|
-
query_params[:'releaseDate'] = opts[:'release_date'] if !opts[:'release_date'].nil?
|
|
2571
|
-
query_params[:'primaryMoodCluster'] = opts[:'primary_mood_cluster'] if !opts[:'primary_mood_cluster'].nil?
|
|
2572
|
-
query_params[:'secondaryMoodCluster'] = opts[:'secondary_mood_cluster'] if !opts[:'secondary_mood_cluster'].nil?
|
|
2573
|
-
query_params[:'tertiaryMoodCluster'] = opts[:'tertiary_mood_cluster'] if !opts[:'tertiary_mood_cluster'].nil?
|
|
2574
|
-
query_params[:'valence'] = opts[:'valence'] if !opts[:'valence'].nil?
|
|
2575
|
-
query_params[:'arousal'] = opts[:'arousal'] if !opts[:'arousal'].nil?
|
|
2576
|
-
query_params[:'pleasantness'] = opts[:'pleasantness'] if !opts[:'pleasantness'].nil?
|
|
2577
|
-
query_params[:'engagement'] = opts[:'engagement'] if !opts[:'engagement'].nil?
|
|
2578
|
-
query_params[:'vocals'] = opts[:'vocals'] if !opts[:'vocals'].nil?
|
|
2579
|
-
query_params[:'dominantInstrument'] = opts[:'dominant_instrument'] if !opts[:'dominant_instrument'].nil?
|
|
2580
|
-
query_params[:'secondaryInstrument'] = opts[:'secondary_instrument'] if !opts[:'secondary_instrument'].nil?
|
|
2581
|
-
query_params[:'tertiaryInstrument'] = opts[:'tertiary_instrument'] if !opts[:'tertiary_instrument'].nil?
|
|
2582
|
-
query_params[:'energy'] = opts[:'energy'] if !opts[:'energy'].nil?
|
|
2583
|
-
query_params[:'soundGeneration'] = opts[:'sound_generation'] if !opts[:'sound_generation'].nil?
|
|
2584
|
-
query_params[:'tempo'] = opts[:'tempo'] if !opts[:'tempo'].nil?
|
|
2585
|
-
query_params[:'scale'] = opts[:'scale'] if !opts[:'scale'].nil?
|
|
2586
|
-
query_params[:'rhythm'] = opts[:'rhythm'] if !opts[:'rhythm'].nil?
|
|
2587
|
-
query_params[:'primarySoundCharacter'] = opts[:'primary_sound_character'] if !opts[:'primary_sound_character'].nil?
|
|
2588
|
-
query_params[:'timbre'] = opts[:'timbre'] if !opts[:'timbre'].nil?
|
|
2589
|
-
query_params[:'roughness'] = opts[:'roughness'] if !opts[:'roughness'].nil?
|
|
2590
|
-
query_params[:'tonality'] = opts[:'tonality'] if !opts[:'tonality'].nil?
|
|
2591
|
-
query_params[:'harmony'] = opts[:'harmony'] if !opts[:'harmony'].nil?
|
|
2592
|
-
query_params[:'texture'] = opts[:'texture'] if !opts[:'texture'].nil?
|
|
2593
|
-
query_params[:'groovyness'] = opts[:'groovyness'] if !opts[:'groovyness'].nil?
|
|
2594
|
-
query_params[:'space'] = opts[:'space'] if !opts[:'space'].nil?
|
|
2595
|
-
query_params[:'productionRating'] = opts[:'production_rating'] if !opts[:'production_rating'].nil?
|
|
2596
|
-
query_params[:'performanceRating'] = opts[:'performance_rating'] if !opts[:'performance_rating'].nil?
|
|
2597
|
-
query_params[:'songRating'] = opts[:'song_rating'] if !opts[:'song_rating'].nil?
|
|
2598
|
-
query_params[:'audienceAge'] = opts[:'audience_age'] if !opts[:'audience_age'].nil?
|
|
2599
|
-
query_params[:'audienceRegion'] = opts[:'audience_region'] if !opts[:'audience_region'].nil?
|
|
2600
|
-
query_params[:'audienceGender'] = opts[:'audience_gender'] if !opts[:'audience_gender'].nil?
|
|
2601
|
-
query_params[:'originDecade'] = opts[:'origin_decade'] if !opts[:'origin_decade'].nil?
|
|
2602
|
-
query_params[:'curateability'] = opts[:'curateability'] if !opts[:'curateability'].nil?
|
|
2603
|
-
query_params[:'useCase'] = opts[:'use_case'] if !opts[:'use_case'].nil?
|
|
2604
|
-
query_params[:'channelSuitability'] = opts[:'channel_suitability'] if !opts[:'channel_suitability'].nil?
|
|
2605
|
-
query_params[:'similarToRecording'] = opts[:'similar_to_recording'] if !opts[:'similar_to_recording'].nil?
|
|
2606
|
-
query_params[:'songtradrTrackId'] = opts[:'songtradr_track_id'] if !opts[:'songtradr_track_id'].nil?
|
|
2607
|
-
query_params[:'usageName'] = opts[:'usage_name'] if !opts[:'usage_name'].nil?
|
|
2608
|
-
query_params[:'bpmMin'] = opts[:'bpm_min'] if !opts[:'bpm_min'].nil?
|
|
2609
|
-
query_params[:'bpmMax'] = opts[:'bpm_max'] if !opts[:'bpm_max'].nil?
|
|
2610
|
-
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
2611
|
-
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
|
2612
|
-
query_params[:'extension'] = opts[:'extension'] if !opts[:'extension'].nil?
|
|
2613
|
-
query_params[:'uploadEndTime'] = opts[:'upload_end_time'] if !opts[:'upload_end_time'].nil?
|
|
2614
|
-
query_params[:'minUploadEndTime'] = opts[:'min_upload_end_time'] if !opts[:'min_upload_end_time'].nil?
|
|
2615
|
-
query_params[:'maxUploadEndTime'] = opts[:'max_upload_end_time'] if !opts[:'max_upload_end_time'].nil?
|
|
2616
|
-
query_params[:'fingerprintStatus'] = opts[:'fingerprint_status'] if !opts[:'fingerprint_status'].nil?
|
|
2617
|
-
query_params[:'inferenceStatus'] = opts[:'inference_status'] if !opts[:'inference_status'].nil?
|
|
2618
|
-
|
|
2619
|
-
# header parameters
|
|
2620
|
-
header_params = opts[:header_params] || {}
|
|
2621
|
-
# HTTP header 'Accept' (if needed)
|
|
2622
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2623
|
-
|
|
2624
|
-
# form parameters
|
|
2625
|
-
form_params = opts[:form_params] || {}
|
|
2626
|
-
|
|
2627
|
-
# http body (model)
|
|
2628
|
-
post_body = opts[:debug_body]
|
|
2629
|
-
|
|
2630
|
-
# return_type
|
|
2631
|
-
return_type = opts[:debug_return_type] || 'FilesSummaryDTO'
|
|
2632
|
-
|
|
2633
|
-
# auth_names
|
|
2634
|
-
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
|
2635
|
-
|
|
2636
|
-
new_options = opts.merge(
|
|
2637
|
-
:operation => :"UserApi.user_files_summary",
|
|
2156
|
+
:operation => :"UserApi.user_files_summary",
|
|
2638
2157
|
:header_params => header_params,
|
|
2639
2158
|
:query_params => query_params,
|
|
2640
2159
|
:form_params => form_params,
|
|
@@ -2649,136 +2168,5 @@ module SongtradrApiClientRuby
|
|
|
2649
2168
|
end
|
|
2650
2169
|
return data, status_code, headers
|
|
2651
2170
|
end
|
|
2652
|
-
|
|
2653
|
-
# Your Folders
|
|
2654
|
-
# @param [Hash] opts the optional parameters
|
|
2655
|
-
# @option opts [Integer] :page Zero-based page index (0..N) (default to 0)
|
|
2656
|
-
# @option opts [Integer] :size The size of the page to be returned (default to 20)
|
|
2657
|
-
# @option opts [Array<String>] :sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
2658
|
-
# @return [Array<String>]
|
|
2659
|
-
def user_folders(opts = {})
|
|
2660
|
-
data, _status_code, _headers = user_folders_with_http_info(opts)
|
|
2661
|
-
data
|
|
2662
|
-
end
|
|
2663
|
-
|
|
2664
|
-
# Your Folders
|
|
2665
|
-
# @param [Hash] opts the optional parameters
|
|
2666
|
-
# @option opts [Integer] :page Zero-based page index (0..N) (default to 0)
|
|
2667
|
-
# @option opts [Integer] :size The size of the page to be returned (default to 20)
|
|
2668
|
-
# @option opts [Array<String>] :sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
2669
|
-
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
|
2670
|
-
def user_folders_with_http_info(opts = {})
|
|
2671
|
-
if @api_client.config.debugging
|
|
2672
|
-
@api_client.config.logger.debug 'Calling API: UserApi.user_folders ...'
|
|
2673
|
-
end
|
|
2674
|
-
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
|
|
2675
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling UserApi.user_folders, must be greater than or equal to 0.'
|
|
2676
|
-
end
|
|
2677
|
-
|
|
2678
|
-
if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] < 1
|
|
2679
|
-
fail ArgumentError, 'invalid value for "opts[:"size"]" when calling UserApi.user_folders, must be greater than or equal to 1.'
|
|
2680
|
-
end
|
|
2681
|
-
|
|
2682
|
-
# resource path
|
|
2683
|
-
local_var_path = '/api/v1/user/folders'
|
|
2684
|
-
|
|
2685
|
-
# query parameters
|
|
2686
|
-
query_params = opts[:query_params] || {}
|
|
2687
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
2688
|
-
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
2689
|
-
query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
|
|
2690
|
-
|
|
2691
|
-
# header parameters
|
|
2692
|
-
header_params = opts[:header_params] || {}
|
|
2693
|
-
# HTTP header 'Accept' (if needed)
|
|
2694
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2695
|
-
|
|
2696
|
-
# form parameters
|
|
2697
|
-
form_params = opts[:form_params] || {}
|
|
2698
|
-
|
|
2699
|
-
# http body (model)
|
|
2700
|
-
post_body = opts[:debug_body]
|
|
2701
|
-
|
|
2702
|
-
# return_type
|
|
2703
|
-
return_type = opts[:debug_return_type] || 'Array<String>'
|
|
2704
|
-
|
|
2705
|
-
# auth_names
|
|
2706
|
-
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
|
2707
|
-
|
|
2708
|
-
new_options = opts.merge(
|
|
2709
|
-
:operation => :"UserApi.user_folders",
|
|
2710
|
-
:header_params => header_params,
|
|
2711
|
-
:query_params => query_params,
|
|
2712
|
-
:form_params => form_params,
|
|
2713
|
-
:body => post_body,
|
|
2714
|
-
:auth_names => auth_names,
|
|
2715
|
-
:return_type => return_type
|
|
2716
|
-
)
|
|
2717
|
-
|
|
2718
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2719
|
-
if @api_client.config.debugging
|
|
2720
|
-
@api_client.config.logger.debug "API called: UserApi#user_folders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2721
|
-
end
|
|
2722
|
-
return data, status_code, headers
|
|
2723
|
-
end
|
|
2724
|
-
|
|
2725
|
-
# @param username [String]
|
|
2726
|
-
# @param [Hash] opts the optional parameters
|
|
2727
|
-
# @return [Array<String>]
|
|
2728
|
-
def user_referrers(username, opts = {})
|
|
2729
|
-
data, _status_code, _headers = user_referrers_with_http_info(username, opts)
|
|
2730
|
-
data
|
|
2731
|
-
end
|
|
2732
|
-
|
|
2733
|
-
# @param username [String]
|
|
2734
|
-
# @param [Hash] opts the optional parameters
|
|
2735
|
-
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
|
2736
|
-
def user_referrers_with_http_info(username, opts = {})
|
|
2737
|
-
if @api_client.config.debugging
|
|
2738
|
-
@api_client.config.logger.debug 'Calling API: UserApi.user_referrers ...'
|
|
2739
|
-
end
|
|
2740
|
-
# verify the required parameter 'username' is set
|
|
2741
|
-
if @api_client.config.client_side_validation && username.nil?
|
|
2742
|
-
fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.user_referrers"
|
|
2743
|
-
end
|
|
2744
|
-
# resource path
|
|
2745
|
-
local_var_path = '/api/v1/user/referrers/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s))
|
|
2746
|
-
|
|
2747
|
-
# query parameters
|
|
2748
|
-
query_params = opts[:query_params] || {}
|
|
2749
|
-
|
|
2750
|
-
# header parameters
|
|
2751
|
-
header_params = opts[:header_params] || {}
|
|
2752
|
-
# HTTP header 'Accept' (if needed)
|
|
2753
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2754
|
-
|
|
2755
|
-
# form parameters
|
|
2756
|
-
form_params = opts[:form_params] || {}
|
|
2757
|
-
|
|
2758
|
-
# http body (model)
|
|
2759
|
-
post_body = opts[:debug_body]
|
|
2760
|
-
|
|
2761
|
-
# return_type
|
|
2762
|
-
return_type = opts[:debug_return_type] || 'Array<String>'
|
|
2763
|
-
|
|
2764
|
-
# auth_names
|
|
2765
|
-
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
|
2766
|
-
|
|
2767
|
-
new_options = opts.merge(
|
|
2768
|
-
:operation => :"UserApi.user_referrers",
|
|
2769
|
-
:header_params => header_params,
|
|
2770
|
-
:query_params => query_params,
|
|
2771
|
-
:form_params => form_params,
|
|
2772
|
-
:body => post_body,
|
|
2773
|
-
:auth_names => auth_names,
|
|
2774
|
-
:return_type => return_type
|
|
2775
|
-
)
|
|
2776
|
-
|
|
2777
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2778
|
-
if @api_client.config.debugging
|
|
2779
|
-
@api_client.config.logger.debug "API called: UserApi#user_referrers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2780
|
-
end
|
|
2781
|
-
return data, status_code, headers
|
|
2782
|
-
end
|
|
2783
2171
|
end
|
|
2784
2172
|
end
|