songtradr_api_client_ruby 1.13.3 → 1.13.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +48 -5
- data/docs/AdminApiCreateUserDTO.md +76 -0
- data/docs/AdminApiUpdateUserDTO.md +76 -0
- data/docs/AdminUsersControllerApi.md +355 -0
- data/docs/AgeRange.md +20 -0
- data/docs/Beard.md +20 -0
- data/docs/BoundingBox.md +24 -0
- data/docs/ContextValue.md +18 -0
- data/docs/CuratePlaylistDTO.md +26 -0
- data/docs/CuratePlaylistResponseDTO.md +18 -0
- data/docs/DominantColor.md +30 -0
- data/docs/Emotion.md +20 -0
- data/docs/EyeDirection.md +22 -0
- data/docs/EyeOpen.md +20 -0
- data/docs/Eyeglasses.md +20 -0
- data/docs/FaceDetail.md +50 -0
- data/docs/FaceDetection.md +20 -0
- data/docs/FaceOccluded.md +20 -0
- data/docs/FileSmallDTO.md +5 -5
- data/docs/Gender.md +20 -0
- data/docs/ImageQuality.md +20 -0
- data/docs/ImageRecognitionResponse.md +20 -0
- data/docs/Instance.md +22 -0
- data/docs/InternalApiApi.md +149 -0
- data/docs/Label.md +28 -0
- data/docs/LabelAlias.md +18 -0
- data/docs/LabelCategory.md +18 -0
- data/docs/LabelDetection.md +26 -0
- data/docs/Landmark.md +22 -0
- data/docs/MouthOpen.md +20 -0
- data/docs/MusicalFeaturesDTO.md +38 -38
- data/docs/Mustache.md +20 -0
- data/docs/Parent.md +18 -0
- data/docs/PlaylistApi.md +70 -0
- data/docs/PlaylistLargeDTO.md +5 -5
- data/docs/Pose.md +22 -0
- data/docs/ProductMediumDTO.md +3 -3
- data/docs/RecordingGenrePredictionDTO.md +4 -4
- data/docs/RecordingLargeDTO.md +5 -5
- data/docs/RecordingMediumDTO.md +2 -2
- data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +3 -3
- data/docs/SaveFileDTO.md +42 -0
- data/docs/SaveFileRecordingDTO.md +5 -1
- data/docs/Smile.md +20 -0
- data/docs/Sunglasses.md +20 -0
- data/docs/UserApi.md +140 -0
- data/docs/VideoRecognitionResponse.md +20 -0
- data/lib/songtradr_api_client_ruby/api/admin_users_controller_api.rb +346 -0
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/internal_api_api.rb +169 -0
- data/lib/songtradr_api_client_ruby/api/party_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +79 -2
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/user_api.rb +138 -2
- data/lib/songtradr_api_client_ruby/api_client.rb +4 -3
- data/lib/songtradr_api_client_ruby/api_error.rb +2 -2
- data/lib/songtradr_api_client_ruby/configuration.rb +3 -2
- data/lib/songtradr_api_client_ruby/models/admin_api_create_user_dto.rb +489 -0
- data/lib/songtradr_api_client_ruby/models/admin_api_update_user_dto.rb +475 -0
- data/lib/songtradr_api_client_ruby/models/admin_api_user_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/age_range.rb +223 -0
- data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/beard.rb +223 -0
- data/lib/songtradr_api_client_ruby/models/bounding_box.rb +241 -0
- 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/context_value.rb +216 -0
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/create_api_key_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/curate_playlist_dto.rb +256 -0
- data/lib/songtradr_api_client_ruby/models/curate_playlist_response_dto.rb +216 -0
- data/lib/songtradr_api_client_ruby/models/dominant_color.rb +268 -0
- data/lib/songtradr_api_client_ruby/models/emotion.rb +223 -0
- data/lib/songtradr_api_client_ruby/models/error_response.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/eye_direction.rb +232 -0
- data/lib/songtradr_api_client_ruby/models/eye_open.rb +223 -0
- data/lib/songtradr_api_client_ruby/models/eyeglasses.rb +223 -0
- data/lib/songtradr_api_client_ruby/models/face_detail.rb +362 -0
- data/lib/songtradr_api_client_ruby/models/face_detection.rb +223 -0
- data/lib/songtradr_api_client_ruby/models/face_occluded.rb +223 -0
- 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_minimal_with_url_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +24 -24
- 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 +223 -0
- 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 +223 -0
- data/lib/songtradr_api_client_ruby/models/image_recognition_response.rb +227 -0
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/instance.rb +234 -0
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/label.rb +267 -0
- data/lib/songtradr_api_client_ruby/models/label_alias.rb +214 -0
- data/lib/songtradr_api_client_ruby/models/label_category.rb +214 -0
- data/lib/songtradr_api_client_ruby/models/label_detection.rb +250 -0
- data/lib/songtradr_api_client_ruby/models/landmark.rb +232 -0
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/mouth_open.rb +223 -0
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +285 -285
- data/lib/songtradr_api_client_ruby/models/mustache.rb +223 -0
- data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/parent.rb +214 -0
- data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +24 -24
- data/lib/songtradr_api_client_ruby/models/pose.rb +232 -0
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +15 -15
- data/lib/songtradr_api_client_ruby/models/product_party_dto.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 +23 -23
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +26 -26
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +14 -14
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +17 -17
- 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_playlist_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +17 -17
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_file_dto.rb +323 -0
- data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +30 -12
- data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_taggrams_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_abstraction_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 +223 -0
- data/lib/songtradr_api_client_ruby/models/sunglasses.rb +223 -0
- 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/track_to_medium_product_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/usage_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 +227 -0
- data/lib/songtradr_api_client_ruby/version.rb +3 -3
- data/lib/songtradr_api_client_ruby.rb +37 -2
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +2 -2
- data/spec/api/admin_users_controller_api_spec.rb +93 -0
- data/spec/api/allowed_values_api_spec.rb +2 -2
- data/spec/api/api_keys_api_spec.rb +2 -2
- data/spec/api/internal_api_api_spec.rb +58 -0
- data/spec/api/party_api_spec.rb +2 -2
- data/spec/api/playlist_api_spec.rb +14 -2
- data/spec/api/recording_api_spec.rb +2 -2
- data/spec/api/user_api_spec.rb +26 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/admin_api_create_user_dto_spec.rb +210 -0
- data/spec/models/admin_api_update_user_dto_spec.rb +210 -0
- data/spec/models/admin_api_user_dto_spec.rb +5 -3
- data/spec/models/age_range_spec.rb +42 -0
- data/spec/models/api_key_dto_spec.rb +5 -3
- data/spec/models/beard_spec.rb +42 -0
- data/spec/models/bounding_box_spec.rb +54 -0
- data/spec/models/category_medium_dto_spec.rb +5 -3
- data/spec/models/category_minimal_dto_spec.rb +5 -3
- data/spec/models/config_access_dto_spec.rb +5 -3
- data/spec/models/config_identifier_dto_spec.rb +5 -3
- data/spec/models/context_value_spec.rb +36 -0
- data/spec/models/contributor_type_dto_spec.rb +5 -3
- data/spec/models/create_api_key_dto_spec.rb +5 -3
- data/spec/models/curate_playlist_dto_spec.rb +60 -0
- data/spec/models/curate_playlist_response_dto_spec.rb +36 -0
- data/spec/models/dominant_color_spec.rb +72 -0
- data/spec/models/emotion_spec.rb +42 -0
- data/spec/models/error_response_spec.rb +5 -3
- data/spec/models/eye_direction_spec.rb +48 -0
- data/spec/models/eye_open_spec.rb +42 -0
- data/spec/models/eyeglasses_spec.rb +42 -0
- data/spec/models/face_detail_spec.rb +132 -0
- data/spec/models/face_detection_spec.rb +42 -0
- data/spec/models/face_occluded_spec.rb +42 -0
- data/spec/models/field_summary_dto_spec.rb +5 -3
- data/spec/models/file_dto_spec.rb +5 -3
- data/spec/models/file_list_dto_spec.rb +5 -3
- data/spec/models/file_minimal_with_url_dto_spec.rb +5 -3
- data/spec/models/file_small_dto_spec.rb +17 -15
- data/spec/models/file_upload_dto_spec.rb +5 -3
- data/spec/models/file_w_ith_url_dto_spec.rb +5 -3
- data/spec/models/files_summary_dto_spec.rb +5 -3
- data/spec/models/forgot_password_dto_spec.rb +5 -3
- data/spec/models/gender_spec.rb +42 -0
- data/spec/models/genre_dto_spec.rb +5 -3
- data/spec/models/genre_minimal_dto_spec.rb +5 -3
- data/spec/models/genres_summary_dto_spec.rb +5 -3
- data/spec/models/image_quality_spec.rb +42 -0
- data/spec/models/image_recognition_response_spec.rb +42 -0
- data/spec/models/init_put_recording_audio_dto_spec.rb +5 -3
- data/spec/models/instance_spec.rb +48 -0
- data/spec/models/jwt_token_dto_spec.rb +5 -3
- data/spec/models/label_alias_spec.rb +36 -0
- data/spec/models/label_category_spec.rb +36 -0
- data/spec/models/label_detection_spec.rb +60 -0
- data/spec/models/label_spec.rb +66 -0
- data/spec/models/landmark_spec.rb +48 -0
- data/spec/models/login_dto_spec.rb +5 -3
- data/spec/models/mouth_open_spec.rb +42 -0
- data/spec/models/musical_features_dto_spec.rb +114 -112
- data/spec/models/mustache_spec.rb +42 -0
- data/spec/models/p_line_dto_spec.rb +5 -3
- data/spec/models/parent_spec.rb +36 -0
- data/spec/models/party_large_dto_spec.rb +5 -3
- data/spec/models/party_small_dto_spec.rb +5 -3
- data/spec/models/playlist_large_dto_spec.rb +14 -12
- data/spec/models/pose_spec.rb +48 -0
- data/spec/models/product_medium_dto_spec.rb +11 -9
- data/spec/models/product_party_dto_spec.rb +5 -3
- data/spec/models/recording_for_similarity_search_dto_spec.rb +5 -3
- data/spec/models/recording_genre_prediction_dto_spec.rb +7 -5
- data/spec/models/recording_large_dto_spec.rb +13 -11
- data/spec/models/recording_list_dto_spec.rb +5 -3
- data/spec/models/recording_medium_dto_spec.rb +10 -8
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +7 -5
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +5 -3
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +5 -3
- data/spec/models/recording_party_dto_spec.rb +5 -3
- data/spec/models/recording_playlist_dto_spec.rb +5 -3
- data/spec/models/recording_small_dto_spec.rb +8 -6
- data/spec/models/recording_tag_small_dto_spec.rb +5 -3
- data/spec/models/save_file_dto_spec.rb +108 -0
- data/spec/models/save_file_recording_dto_spec.rb +20 -6
- data/spec/models/save_playlist_dto_spec.rb +5 -3
- data/spec/models/save_recording_genre_dto_spec.rb +5 -3
- data/spec/models/save_recording_party_dto_spec.rb +5 -3
- data/spec/models/save_recording_playlist_dto_spec.rb +5 -3
- data/spec/models/save_recording_tag_dto_spec.rb +5 -3
- data/spec/models/save_referrer_dto_spec.rb +5 -3
- data/spec/models/save_taggrams_dto_spec.rb +5 -3
- data/spec/models/save_user_dto_spec.rb +5 -3
- data/spec/models/search_filter_values_dto_spec.rb +5 -3
- data/spec/models/search_recording_granular_abstraction_dto_spec.rb +5 -3
- data/spec/models/search_recording_granular_dto_spec.rb +5 -3
- data/spec/models/sign_up_dto_spec.rb +5 -3
- data/spec/models/smile_spec.rb +42 -0
- data/spec/models/sunglasses_spec.rb +42 -0
- data/spec/models/tag_dto_spec.rb +5 -3
- data/spec/models/tag_small_dto_spec.rb +5 -3
- data/spec/models/taggram_dto_spec.rb +5 -3
- data/spec/models/tags_summary_dto_spec.rb +5 -3
- data/spec/models/tagstrength_dto_spec.rb +5 -3
- data/spec/models/title_dto_spec.rb +5 -3
- data/spec/models/token_request_spec.rb +5 -3
- data/spec/models/track_dto_spec.rb +5 -3
- data/spec/models/track_to_medium_product_dto_spec.rb +5 -3
- data/spec/models/update_password_dto_spec.rb +5 -3
- data/spec/models/usage_dto_spec.rb +5 -3
- data/spec/models/user_dto_spec.rb +5 -3
- data/spec/models/video_recognition_response_spec.rb +42 -0
- data/spec/spec_helper.rb +2 -2
- metadata +201 -61
data/docs/FileSmallDTO.md
CHANGED
@@ -9,6 +9,8 @@
|
|
9
9
|
| **extension** | **String** | extension of the file | |
|
10
10
|
| **error_message** | **String** | | [optional] |
|
11
11
|
| **folder** | **String** | | |
|
12
|
+
| **inference_start_time** | **Time** | | [optional] |
|
13
|
+
| **inference_end_time** | **Time** | | [optional] |
|
12
14
|
| **error_time** | **Time** | | [optional] |
|
13
15
|
| **object_key** | **String** | | |
|
14
16
|
| **upload_start_time** | **Time** | | [optional] |
|
@@ -17,8 +19,6 @@
|
|
17
19
|
| **fingerprint_start_time** | **Time** | | [optional] |
|
18
20
|
| **fingerprint_end_time** | **Time** | | [optional] |
|
19
21
|
| **inference_status** | **String** | status of the auto-tagging | [optional] |
|
20
|
-
| **inference_start_time** | **Time** | | [optional] |
|
21
|
-
| **inference_end_time** | **Time** | | [optional] |
|
22
22
|
|
23
23
|
## Example
|
24
24
|
|
@@ -31,6 +31,8 @@ instance = SongtradrApiClientRuby::FileSmallDTO.new(
|
|
31
31
|
extension: null,
|
32
32
|
error_message: null,
|
33
33
|
folder: null,
|
34
|
+
inference_start_time: null,
|
35
|
+
inference_end_time: null,
|
34
36
|
error_time: null,
|
35
37
|
object_key: null,
|
36
38
|
upload_start_time: null,
|
@@ -38,9 +40,7 @@ instance = SongtradrApiClientRuby::FileSmallDTO.new(
|
|
38
40
|
fingerprint_status: null,
|
39
41
|
fingerprint_start_time: null,
|
40
42
|
fingerprint_end_time: null,
|
41
|
-
inference_status: null
|
42
|
-
inference_start_time: null,
|
43
|
-
inference_end_time: null
|
43
|
+
inference_status: null
|
44
44
|
)
|
45
45
|
```
|
46
46
|
|
data/docs/Gender.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# SongtradrApiClientRuby::Gender
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **value** | **String** | | [optional] |
|
8
|
+
| **confidence** | **Float** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'songtradr_api_client_ruby'
|
14
|
+
|
15
|
+
instance = SongtradrApiClientRuby::Gender.new(
|
16
|
+
value: null,
|
17
|
+
confidence: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# SongtradrApiClientRuby::ImageQuality
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **brightness** | **Float** | | [optional] |
|
8
|
+
| **sharpness** | **Float** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'songtradr_api_client_ruby'
|
14
|
+
|
15
|
+
instance = SongtradrApiClientRuby::ImageQuality.new(
|
16
|
+
brightness: null,
|
17
|
+
sharpness: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# SongtradrApiClientRuby::ImageRecognitionResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **labels** | [**Array<Label>**](Label.md) | | [optional] |
|
8
|
+
| **faces** | [**Array<FaceDetail>**](FaceDetail.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'songtradr_api_client_ruby'
|
14
|
+
|
15
|
+
instance = SongtradrApiClientRuby::ImageRecognitionResponse.new(
|
16
|
+
labels: null,
|
17
|
+
faces: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/Instance.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# SongtradrApiClientRuby::Instance
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **bounding_box** | [**BoundingBox**](BoundingBox.md) | | [optional] |
|
8
|
+
| **confidence** | **Float** | | [optional] |
|
9
|
+
| **dominant_colors** | [**Array<DominantColor>**](DominantColor.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'songtradr_api_client_ruby'
|
15
|
+
|
16
|
+
instance = SongtradrApiClientRuby::Instance.new(
|
17
|
+
bounding_box: null,
|
18
|
+
confidence: null,
|
19
|
+
dominant_colors: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,149 @@
|
|
1
|
+
# SongtradrApiClientRuby::InternalApiApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.songtradr.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**internal_create_inference**](InternalApiApi.md#internal_create_inference) | **POST** /api/v1/internal/inference | |
|
8
|
+
| [**internal_update_file**](InternalApiApi.md#internal_update_file) | **PATCH** /api/v1/internal/file/{customerName}/{objectKey} | |
|
9
|
+
|
10
|
+
|
11
|
+
## internal_create_inference
|
12
|
+
|
13
|
+
> Object internal_create_inference(authorization, save_file_recording_dto)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'songtradr_api_client_ruby'
|
22
|
+
# setup authorization
|
23
|
+
SongtradrApiClientRuby.configure do |config|
|
24
|
+
# Configure Bearer authorization (JWT): bearer-jwt
|
25
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = SongtradrApiClientRuby::InternalApiApi.new
|
29
|
+
authorization = 'authorization_example' # String |
|
30
|
+
save_file_recording_dto = [SongtradrApiClientRuby::SaveFileRecordingDTO.new({isrc: 'isrc_example', created_by_version: 'created_by_version_example'})] # Array<SaveFileRecordingDTO> |
|
31
|
+
|
32
|
+
begin
|
33
|
+
|
34
|
+
result = api_instance.internal_create_inference(authorization, save_file_recording_dto)
|
35
|
+
p result
|
36
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
37
|
+
puts "Error when calling InternalApiApi->internal_create_inference: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
#### Using the internal_create_inference_with_http_info variant
|
42
|
+
|
43
|
+
This returns an Array which contains the response data, status code and headers.
|
44
|
+
|
45
|
+
> <Array(Object, Integer, Hash)> internal_create_inference_with_http_info(authorization, save_file_recording_dto)
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
begin
|
49
|
+
|
50
|
+
data, status_code, headers = api_instance.internal_create_inference_with_http_info(authorization, save_file_recording_dto)
|
51
|
+
p status_code # => 2xx
|
52
|
+
p headers # => { ... }
|
53
|
+
p data # => Object
|
54
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
55
|
+
puts "Error when calling InternalApiApi->internal_create_inference_with_http_info: #{e}"
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
### Parameters
|
60
|
+
|
61
|
+
| Name | Type | Description | Notes |
|
62
|
+
| ---- | ---- | ----------- | ----- |
|
63
|
+
| **authorization** | **String** | | |
|
64
|
+
| **save_file_recording_dto** | [**Array<SaveFileRecordingDTO>**](SaveFileRecordingDTO.md) | | |
|
65
|
+
|
66
|
+
### Return type
|
67
|
+
|
68
|
+
**Object**
|
69
|
+
|
70
|
+
### Authorization
|
71
|
+
|
72
|
+
[bearer-jwt](../README.md#bearer-jwt)
|
73
|
+
|
74
|
+
### HTTP request headers
|
75
|
+
|
76
|
+
- **Content-Type**: application/json
|
77
|
+
- **Accept**: application/json
|
78
|
+
|
79
|
+
|
80
|
+
## internal_update_file
|
81
|
+
|
82
|
+
> Object internal_update_file(customer_name, object_key, save_file_dto)
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
### Examples
|
87
|
+
|
88
|
+
```ruby
|
89
|
+
require 'time'
|
90
|
+
require 'songtradr_api_client_ruby'
|
91
|
+
# setup authorization
|
92
|
+
SongtradrApiClientRuby.configure do |config|
|
93
|
+
# Configure Bearer authorization (JWT): bearer-jwt
|
94
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
95
|
+
end
|
96
|
+
|
97
|
+
api_instance = SongtradrApiClientRuby::InternalApiApi.new
|
98
|
+
customer_name = 'customer_name_example' # String |
|
99
|
+
object_key = 'object_key_example' # String |
|
100
|
+
save_file_dto = SongtradrApiClientRuby::SaveFileDTO.new # SaveFileDTO |
|
101
|
+
|
102
|
+
begin
|
103
|
+
|
104
|
+
result = api_instance.internal_update_file(customer_name, object_key, save_file_dto)
|
105
|
+
p result
|
106
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
107
|
+
puts "Error when calling InternalApiApi->internal_update_file: #{e}"
|
108
|
+
end
|
109
|
+
```
|
110
|
+
|
111
|
+
#### Using the internal_update_file_with_http_info variant
|
112
|
+
|
113
|
+
This returns an Array which contains the response data, status code and headers.
|
114
|
+
|
115
|
+
> <Array(Object, Integer, Hash)> internal_update_file_with_http_info(customer_name, object_key, save_file_dto)
|
116
|
+
|
117
|
+
```ruby
|
118
|
+
begin
|
119
|
+
|
120
|
+
data, status_code, headers = api_instance.internal_update_file_with_http_info(customer_name, object_key, save_file_dto)
|
121
|
+
p status_code # => 2xx
|
122
|
+
p headers # => { ... }
|
123
|
+
p data # => Object
|
124
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
125
|
+
puts "Error when calling InternalApiApi->internal_update_file_with_http_info: #{e}"
|
126
|
+
end
|
127
|
+
```
|
128
|
+
|
129
|
+
### Parameters
|
130
|
+
|
131
|
+
| Name | Type | Description | Notes |
|
132
|
+
| ---- | ---- | ----------- | ----- |
|
133
|
+
| **customer_name** | **String** | | |
|
134
|
+
| **object_key** | **String** | | |
|
135
|
+
| **save_file_dto** | [**SaveFileDTO**](SaveFileDTO.md) | | |
|
136
|
+
|
137
|
+
### Return type
|
138
|
+
|
139
|
+
**Object**
|
140
|
+
|
141
|
+
### Authorization
|
142
|
+
|
143
|
+
[bearer-jwt](../README.md#bearer-jwt)
|
144
|
+
|
145
|
+
### HTTP request headers
|
146
|
+
|
147
|
+
- **Content-Type**: application/json
|
148
|
+
- **Accept**: application/json
|
149
|
+
|
data/docs/Label.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# SongtradrApiClientRuby::Label
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | [optional] |
|
8
|
+
| **confidence** | **Float** | | [optional] |
|
9
|
+
| **instances** | [**Array<Instance>**](Instance.md) | | [optional] |
|
10
|
+
| **parents** | [**Array<Parent>**](Parent.md) | | [optional] |
|
11
|
+
| **aliases** | [**Array<LabelAlias>**](LabelAlias.md) | | [optional] |
|
12
|
+
| **categories** | [**Array<LabelCategory>**](LabelCategory.md) | | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'songtradr_api_client_ruby'
|
18
|
+
|
19
|
+
instance = SongtradrApiClientRuby::Label.new(
|
20
|
+
name: null,
|
21
|
+
confidence: null,
|
22
|
+
instances: null,
|
23
|
+
parents: null,
|
24
|
+
aliases: null,
|
25
|
+
categories: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
data/docs/LabelAlias.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# SongtradrApiClientRuby::LabelAlias
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'songtradr_api_client_ruby'
|
13
|
+
|
14
|
+
instance = SongtradrApiClientRuby::LabelAlias.new(
|
15
|
+
name: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# SongtradrApiClientRuby::LabelCategory
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'songtradr_api_client_ruby'
|
13
|
+
|
14
|
+
instance = SongtradrApiClientRuby::LabelCategory.new(
|
15
|
+
name: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# SongtradrApiClientRuby::LabelDetection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **timestamp** | **Integer** | | [optional] |
|
8
|
+
| **label** | [**Label**](Label.md) | | [optional] |
|
9
|
+
| **start_timestamp_millis** | **Integer** | | [optional] |
|
10
|
+
| **end_timestamp_millis** | **Integer** | | [optional] |
|
11
|
+
| **duration_millis** | **Integer** | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'songtradr_api_client_ruby'
|
17
|
+
|
18
|
+
instance = SongtradrApiClientRuby::LabelDetection.new(
|
19
|
+
timestamp: null,
|
20
|
+
label: null,
|
21
|
+
start_timestamp_millis: null,
|
22
|
+
end_timestamp_millis: null,
|
23
|
+
duration_millis: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
data/docs/Landmark.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# SongtradrApiClientRuby::Landmark
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | | [optional] |
|
8
|
+
| **x** | **Float** | | [optional] |
|
9
|
+
| **y** | **Float** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'songtradr_api_client_ruby'
|
15
|
+
|
16
|
+
instance = SongtradrApiClientRuby::Landmark.new(
|
17
|
+
type: null,
|
18
|
+
x: null,
|
19
|
+
y: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/MouthOpen.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# SongtradrApiClientRuby::MouthOpen
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **value** | **Boolean** | | [optional] |
|
8
|
+
| **confidence** | **Float** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'songtradr_api_client_ruby'
|
14
|
+
|
15
|
+
instance = SongtradrApiClientRuby::MouthOpen.new(
|
16
|
+
value: null,
|
17
|
+
confidence: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/MusicalFeaturesDTO.md
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **space** | **String** | Search for space | [optional] |
|
8
|
-
| **harmony_affinity** | **Float** | | [optional] |
|
9
8
|
| **language_of_performance** | **String** | | [optional] |
|
10
9
|
| **arousal** | **String** | Search for an arousal | [optional] |
|
11
10
|
| **dominant_instrument** | **String** | Search for a dominant instrument | [optional] |
|
@@ -21,15 +20,6 @@
|
|
21
20
|
| **scale** | **String** | Search for a tonal scale | [optional] |
|
22
21
|
| **sound_generation** | **String** | Search for type of sound generation | [optional] |
|
23
22
|
| **tempo** | **String** | Search for tempo | [optional] |
|
24
|
-
| **texture** | **String** | Search for texture | [optional] |
|
25
|
-
| **timbre** | **String** | Search for timbre | [optional] |
|
26
|
-
| **tonality** | **String** | Search for tonality | [optional] |
|
27
|
-
| **valence** | **String** | Search for a valence | [optional] |
|
28
|
-
| **vocals** | **String** | Search for a vocal gender or instrumental songs | [optional] |
|
29
|
-
| **origin_decade** | **String** | Search for origin decade | [optional] |
|
30
|
-
| **curateability** | **String** | Search for curatebility | [optional] |
|
31
|
-
| **use_case** | **String** | Search for use case | [optional] |
|
32
|
-
| **channel_suitability** | **String** | Search for social media suitability | [optional] |
|
33
23
|
| **primary_mood_cluster_affinity** | **Float** | | [optional] |
|
34
24
|
| **secondary_mood_cluster** | **String** | Search for a language of the lyrics | [optional] |
|
35
25
|
| **secondary_mood_cluster_affinity** | **Float** | | [optional] |
|
@@ -74,21 +64,31 @@
|
|
74
64
|
| **industry_suitability** | **String** | Search for Industry suitability | [optional] |
|
75
65
|
| **industry_suitability_affinity** | **Float** | | [optional] |
|
76
66
|
| **audience_region** | **String** | | [optional] |
|
67
|
+
| **texture** | **String** | Search for texture | [optional] |
|
68
|
+
| **timbre** | **String** | Search for timbre | [optional] |
|
69
|
+
| **tonality** | **String** | Search for tonality | [optional] |
|
70
|
+
| **valence** | **String** | Search for a valence | [optional] |
|
71
|
+
| **vocals** | **String** | Search for a vocal gender or instrumental songs | [optional] |
|
72
|
+
| **origin_decade** | **String** | Search for origin decade | [optional] |
|
73
|
+
| **curateability** | **String** | Search for curatebility | [optional] |
|
74
|
+
| **use_case** | **String** | Search for use case | [optional] |
|
75
|
+
| **channel_suitability** | **String** | Search for social media suitability | [optional] |
|
76
|
+
| **valence_affinity** | **Float** | | [optional] |
|
77
77
|
| **arousal_affinity** | **Float** | | [optional] |
|
78
|
-
| **channel_suitability_affinity** | **Float** | | [optional] |
|
79
|
-
| **key** | **String** | Search for a harmonic key | [optional] |
|
80
|
-
| **energy_affinity** | **Float** | | [optional] |
|
81
|
-
| **key_affinity** | **Float** | | [optional] |
|
82
78
|
| **pleasantness_affinity** | **Float** | | [optional] |
|
83
79
|
| **engagement_affinity** | **Float** | | [optional] |
|
84
|
-
| **
|
80
|
+
| **energy_affinity** | **Float** | | [optional] |
|
81
|
+
| **tempo_affinity** | **Float** | | [optional] |
|
82
|
+
| **scale_affinity** | **Float** | | [optional] |
|
85
83
|
| **timbre_affinity** | **Float** | | [optional] |
|
84
|
+
| **roughness_affinity** | **Float** | | [optional] |
|
85
|
+
| **harmony_affinity** | **Float** | | [optional] |
|
86
86
|
| **texture_affinity** | **Float** | | [optional] |
|
87
|
-
| **space_affinity** | **Float** | | [optional] |
|
88
87
|
| **groovyness_affinity** | **Float** | | [optional] |
|
89
|
-
| **
|
90
|
-
| **
|
91
|
-
| **
|
88
|
+
| **space_affinity** | **Float** | | [optional] |
|
89
|
+
| **key_affinity** | **Float** | | [optional] |
|
90
|
+
| **channel_suitability_affinity** | **Float** | | [optional] |
|
91
|
+
| **key** | **String** | Search for a harmonic key | [optional] |
|
92
92
|
|
93
93
|
## Example
|
94
94
|
|
@@ -97,7 +97,6 @@ require 'songtradr_api_client_ruby'
|
|
97
97
|
|
98
98
|
instance = SongtradrApiClientRuby::MusicalFeaturesDTO.new(
|
99
99
|
space: null,
|
100
|
-
harmony_affinity: null,
|
101
100
|
language_of_performance: null,
|
102
101
|
arousal: null,
|
103
102
|
dominant_instrument: null,
|
@@ -113,15 +112,6 @@ instance = SongtradrApiClientRuby::MusicalFeaturesDTO.new(
|
|
113
112
|
scale: null,
|
114
113
|
sound_generation: null,
|
115
114
|
tempo: null,
|
116
|
-
texture: null,
|
117
|
-
timbre: null,
|
118
|
-
tonality: null,
|
119
|
-
valence: null,
|
120
|
-
vocals: null,
|
121
|
-
origin_decade: null,
|
122
|
-
curateability: null,
|
123
|
-
use_case: null,
|
124
|
-
channel_suitability: null,
|
125
115
|
primary_mood_cluster_affinity: null,
|
126
116
|
secondary_mood_cluster: null,
|
127
117
|
secondary_mood_cluster_affinity: null,
|
@@ -166,21 +156,31 @@ instance = SongtradrApiClientRuby::MusicalFeaturesDTO.new(
|
|
166
156
|
industry_suitability: null,
|
167
157
|
industry_suitability_affinity: null,
|
168
158
|
audience_region: null,
|
159
|
+
texture: null,
|
160
|
+
timbre: null,
|
161
|
+
tonality: null,
|
162
|
+
valence: null,
|
163
|
+
vocals: null,
|
164
|
+
origin_decade: null,
|
165
|
+
curateability: null,
|
166
|
+
use_case: null,
|
167
|
+
channel_suitability: null,
|
168
|
+
valence_affinity: null,
|
169
169
|
arousal_affinity: null,
|
170
|
-
channel_suitability_affinity: null,
|
171
|
-
key: null,
|
172
|
-
energy_affinity: null,
|
173
|
-
key_affinity: null,
|
174
170
|
pleasantness_affinity: null,
|
175
171
|
engagement_affinity: null,
|
176
|
-
|
172
|
+
energy_affinity: null,
|
173
|
+
tempo_affinity: null,
|
174
|
+
scale_affinity: null,
|
177
175
|
timbre_affinity: null,
|
176
|
+
roughness_affinity: null,
|
177
|
+
harmony_affinity: null,
|
178
178
|
texture_affinity: null,
|
179
|
-
space_affinity: null,
|
180
179
|
groovyness_affinity: null,
|
181
|
-
|
182
|
-
|
183
|
-
|
180
|
+
space_affinity: null,
|
181
|
+
key_affinity: null,
|
182
|
+
channel_suitability_affinity: null,
|
183
|
+
key: null
|
184
184
|
)
|
185
185
|
```
|
186
186
|
|
data/docs/Mustache.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# SongtradrApiClientRuby::Mustache
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **value** | **Boolean** | | [optional] |
|
8
|
+
| **confidence** | **Float** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'songtradr_api_client_ruby'
|
14
|
+
|
15
|
+
instance = SongtradrApiClientRuby::Mustache.new(
|
16
|
+
value: null,
|
17
|
+
confidence: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/Parent.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# SongtradrApiClientRuby::Parent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'songtradr_api_client_ruby'
|
13
|
+
|
14
|
+
instance = SongtradrApiClientRuby::Parent.new(
|
15
|
+
name: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/PlaylistApi.md
CHANGED
@@ -6,6 +6,7 @@ All URIs are relative to *https://api.songtradr.com*
|
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**all_playlists**](PlaylistApi.md#all_playlists) | **GET** /api/v1/playlist | All playlists. |
|
8
8
|
| [**create_or_update_playlist**](PlaylistApi.md#create_or_update_playlist) | **POST** /api/v1/playlist | Create and edit playlist. |
|
9
|
+
| [**curate_playlist**](PlaylistApi.md#curate_playlist) | **POST** /api/v1/playlist/{methodName} | Curate playlist. |
|
9
10
|
| [**delete_playlist**](PlaylistApi.md#delete_playlist) | **DELETE** /api/v1/playlist/{songtradrPlaylistGuid} | Delete playlist. |
|
10
11
|
|
11
12
|
|
@@ -153,6 +154,75 @@ end
|
|
153
154
|
- **Accept**: application/json
|
154
155
|
|
155
156
|
|
157
|
+
## curate_playlist
|
158
|
+
|
159
|
+
> <CuratePlaylistResponseDTO> curate_playlist(method_name, curate_playlist_dto)
|
160
|
+
|
161
|
+
Curate playlist.
|
162
|
+
|
163
|
+
### Examples
|
164
|
+
|
165
|
+
```ruby
|
166
|
+
require 'time'
|
167
|
+
require 'songtradr_api_client_ruby'
|
168
|
+
# setup authorization
|
169
|
+
SongtradrApiClientRuby.configure do |config|
|
170
|
+
# Configure Bearer authorization (JWT): bearer-jwt
|
171
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
172
|
+
end
|
173
|
+
|
174
|
+
api_instance = SongtradrApiClientRuby::PlaylistApi.new
|
175
|
+
method_name = 'RECOMMEND' # String | Name of the curation task that should be executed
|
176
|
+
curate_playlist_dto = SongtradrApiClientRuby::CuratePlaylistDTO.new # CuratePlaylistDTO |
|
177
|
+
|
178
|
+
begin
|
179
|
+
# Curate playlist.
|
180
|
+
result = api_instance.curate_playlist(method_name, curate_playlist_dto)
|
181
|
+
p result
|
182
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
183
|
+
puts "Error when calling PlaylistApi->curate_playlist: #{e}"
|
184
|
+
end
|
185
|
+
```
|
186
|
+
|
187
|
+
#### Using the curate_playlist_with_http_info variant
|
188
|
+
|
189
|
+
This returns an Array which contains the response data, status code and headers.
|
190
|
+
|
191
|
+
> <Array(<CuratePlaylistResponseDTO>, Integer, Hash)> curate_playlist_with_http_info(method_name, curate_playlist_dto)
|
192
|
+
|
193
|
+
```ruby
|
194
|
+
begin
|
195
|
+
# Curate playlist.
|
196
|
+
data, status_code, headers = api_instance.curate_playlist_with_http_info(method_name, curate_playlist_dto)
|
197
|
+
p status_code # => 2xx
|
198
|
+
p headers # => { ... }
|
199
|
+
p data # => <CuratePlaylistResponseDTO>
|
200
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
201
|
+
puts "Error when calling PlaylistApi->curate_playlist_with_http_info: #{e}"
|
202
|
+
end
|
203
|
+
```
|
204
|
+
|
205
|
+
### Parameters
|
206
|
+
|
207
|
+
| Name | Type | Description | Notes |
|
208
|
+
| ---- | ---- | ----------- | ----- |
|
209
|
+
| **method_name** | **String** | Name of the curation task that should be executed | |
|
210
|
+
| **curate_playlist_dto** | [**CuratePlaylistDTO**](CuratePlaylistDTO.md) | | |
|
211
|
+
|
212
|
+
### Return type
|
213
|
+
|
214
|
+
[**CuratePlaylistResponseDTO**](CuratePlaylistResponseDTO.md)
|
215
|
+
|
216
|
+
### Authorization
|
217
|
+
|
218
|
+
[bearer-jwt](../README.md#bearer-jwt)
|
219
|
+
|
220
|
+
### HTTP request headers
|
221
|
+
|
222
|
+
- **Content-Type**: application/json
|
223
|
+
- **Accept**: application/json
|
224
|
+
|
225
|
+
|
156
226
|
## delete_playlist
|
157
227
|
|
158
228
|
> Object delete_playlist(songtradr_playlist_guid)
|