songtradr_api_client_ruby 1.16.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +26 -24
- data/README.md +7 -34
- data/docs/CategoryMediumDTO.md +3 -3
- data/docs/ImageRecognitionResponse.md +2 -2
- data/docs/MusicalFeaturesDTO.md +41 -37
- data/docs/RecordingApi.md +71 -1
- data/docs/RecordingGenrePredictionDTO.md +3 -3
- data/docs/RecordingMediumDTO.md +4 -4
- data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +5 -5
- data/docs/SearchFilterValuesDTO.md +2 -0
- data/docs/UserApi.md +67 -187
- data/docs/UserDTO.md +2 -0
- data/docs/VideoRecognitionResponse.md +2 -2
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +74 -5
- data/lib/songtradr_api_client_ruby/api/user_api.rb +86 -403
- data/lib/songtradr_api_client_ruby/api_client.rb +7 -6
- data/lib/songtradr_api_client_ruby/api_error.rb +2 -2
- data/lib/songtradr_api_client_ruby/configuration.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +17 -17
- 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/error_response.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 +2 -2
- 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/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_recognition_response.rb +4 -4
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +346 -315
- data/lib/songtradr_api_client_ruby/models/party_small_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 +22 -22
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +35 -35
- 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_small_dto.rb +38 -38
- 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 +21 -3
- 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/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 +19 -3
- data/lib/songtradr_api_client_ruby/models/video_recognition_response.rb +4 -4
- data/lib/songtradr_api_client_ruby/version.rb +3 -3
- data/lib/songtradr_api_client_ruby.rb +2 -30
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +3 -2
- data/spec/api/allowed_values_api_spec.rb +2 -2
- data/spec/api/recording_api_spec.rb +14 -2
- data/spec/api/user_api_spec.rb +15 -74
- data/spec/models/category_medium_dto_spec.rb +4 -4
- data/spec/models/category_minimal_dto_spec.rb +2 -2
- data/spec/models/config_access_dto_spec.rb +2 -2
- data/spec/models/config_identifier_dto_spec.rb +2 -2
- data/spec/models/contributor_type_dto_spec.rb +2 -2
- data/spec/models/error_response_spec.rb +2 -2
- data/spec/models/field_summary_dto_spec.rb +2 -2
- data/spec/models/file_dto_spec.rb +2 -2
- data/spec/models/file_list_dto_spec.rb +2 -2
- data/spec/models/file_small_dto_spec.rb +2 -2
- data/spec/models/file_upload_dto_spec.rb +2 -2
- data/spec/models/file_w_ith_url_dto_spec.rb +2 -2
- data/spec/models/files_summary_dto_spec.rb +2 -2
- data/spec/models/forgot_password_dto_spec.rb +2 -2
- data/spec/models/genre_dto_spec.rb +2 -2
- data/spec/models/genre_minimal_dto_spec.rb +2 -2
- data/spec/models/genres_summary_dto_spec.rb +2 -2
- data/spec/models/image_recognition_response_spec.rb +2 -2
- data/spec/models/init_put_recording_audio_dto_spec.rb +2 -2
- data/spec/models/jwt_token_dto_spec.rb +2 -2
- data/spec/models/login_dto_spec.rb +2 -2
- data/spec/models/musical_features_dto_spec.rb +111 -95
- data/spec/models/party_small_dto_spec.rb +2 -2
- data/spec/models/recording_for_similarity_search_dto_spec.rb +2 -2
- data/spec/models/recording_genre_prediction_dto_spec.rb +5 -5
- data/spec/models/recording_list_dto_spec.rb +2 -2
- data/spec/models/recording_medium_dto_spec.rb +10 -10
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +4 -4
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +2 -2
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +2 -2
- data/spec/models/recording_party_dto_spec.rb +2 -2
- data/spec/models/recording_small_dto_spec.rb +6 -6
- data/spec/models/recording_tag_small_dto_spec.rb +2 -2
- data/spec/models/save_user_dto_spec.rb +2 -2
- data/spec/models/search_filter_values_dto_spec.rb +8 -2
- data/spec/models/search_recording_granular_dto_spec.rb +2 -2
- data/spec/models/sign_up_dto_spec.rb +2 -2
- data/spec/models/tag_dto_spec.rb +2 -2
- data/spec/models/tag_small_dto_spec.rb +2 -2
- data/spec/models/taggram_dto_spec.rb +2 -2
- data/spec/models/tags_summary_dto_spec.rb +2 -2
- data/spec/models/tagstrength_dto_spec.rb +2 -2
- data/spec/models/title_dto_spec.rb +2 -2
- data/spec/models/token_request_spec.rb +2 -2
- data/spec/models/track_dto_spec.rb +2 -2
- data/spec/models/update_password_dto_spec.rb +2 -2
- data/spec/models/user_dto_spec.rb +8 -2
- data/spec/models/video_recognition_response_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +56 -158
- data/docs/AgeRange.md +0 -20
- data/docs/Beard.md +0 -20
- data/docs/BoundingBox.md +0 -24
- data/docs/CuratePlaylistDTO.md +0 -26
- data/docs/CuratePlaylistResponseDTO.md +0 -18
- data/docs/DominantColor.md +0 -30
- data/docs/Emotion.md +0 -20
- data/docs/EyeDirection.md +0 -22
- data/docs/EyeOpen.md +0 -20
- data/docs/Eyeglasses.md +0 -20
- data/docs/FaceDetail.md +0 -50
- data/docs/FaceDetection.md +0 -20
- data/docs/FaceOccluded.md +0 -20
- data/docs/Gender.md +0 -20
- data/docs/ImageQuality.md +0 -20
- data/docs/Instance.md +0 -22
- data/docs/Label.md +0 -28
- data/docs/LabelAlias.md +0 -18
- data/docs/LabelCategory.md +0 -18
- data/docs/LabelDetection.md +0 -26
- data/docs/Landmark.md +0 -22
- data/docs/MouthOpen.md +0 -20
- data/docs/Mustache.md +0 -20
- data/docs/Parent.md +0 -18
- data/docs/PlaylistApi.md +0 -77
- data/docs/Pose.md +0 -22
- data/docs/Smile.md +0 -20
- data/docs/Sunglasses.md +0 -20
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +0 -99
- data/lib/songtradr_api_client_ruby/models/age_range.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/beard.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/bounding_box.rb +0 -241
- data/lib/songtradr_api_client_ruby/models/curate_playlist_dto.rb +0 -256
- data/lib/songtradr_api_client_ruby/models/curate_playlist_response_dto.rb +0 -216
- data/lib/songtradr_api_client_ruby/models/dominant_color.rb +0 -268
- data/lib/songtradr_api_client_ruby/models/emotion.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/eye_direction.rb +0 -232
- data/lib/songtradr_api_client_ruby/models/eye_open.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/eyeglasses.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/face_detail.rb +0 -362
- data/lib/songtradr_api_client_ruby/models/face_detection.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/face_occluded.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/gender.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/image_quality.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/instance.rb +0 -234
- data/lib/songtradr_api_client_ruby/models/label.rb +0 -267
- data/lib/songtradr_api_client_ruby/models/label_alias.rb +0 -214
- data/lib/songtradr_api_client_ruby/models/label_category.rb +0 -214
- data/lib/songtradr_api_client_ruby/models/label_detection.rb +0 -250
- data/lib/songtradr_api_client_ruby/models/landmark.rb +0 -232
- data/lib/songtradr_api_client_ruby/models/mouth_open.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/mustache.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/parent.rb +0 -214
- data/lib/songtradr_api_client_ruby/models/pose.rb +0 -232
- data/lib/songtradr_api_client_ruby/models/smile.rb +0 -223
- data/lib/songtradr_api_client_ruby/models/sunglasses.rb +0 -223
- data/spec/api/playlist_api_spec.rb +0 -47
- data/spec/api_client_spec.rb +0 -223
- data/spec/configuration_spec.rb +0 -82
- data/spec/models/age_range_spec.rb +0 -42
- data/spec/models/beard_spec.rb +0 -42
- data/spec/models/bounding_box_spec.rb +0 -54
- data/spec/models/curate_playlist_dto_spec.rb +0 -60
- data/spec/models/curate_playlist_response_dto_spec.rb +0 -36
- data/spec/models/dominant_color_spec.rb +0 -72
- data/spec/models/emotion_spec.rb +0 -42
- data/spec/models/eye_direction_spec.rb +0 -48
- data/spec/models/eye_open_spec.rb +0 -42
- data/spec/models/eyeglasses_spec.rb +0 -42
- data/spec/models/face_detail_spec.rb +0 -132
- data/spec/models/face_detection_spec.rb +0 -42
- data/spec/models/face_occluded_spec.rb +0 -42
- data/spec/models/gender_spec.rb +0 -42
- data/spec/models/image_quality_spec.rb +0 -42
- data/spec/models/instance_spec.rb +0 -48
- data/spec/models/label_alias_spec.rb +0 -36
- data/spec/models/label_category_spec.rb +0 -36
- data/spec/models/label_detection_spec.rb +0 -60
- data/spec/models/label_spec.rb +0 -66
- data/spec/models/landmark_spec.rb +0 -48
- data/spec/models/mouth_open_spec.rb +0 -42
- data/spec/models/mustache_spec.rb +0 -42
- data/spec/models/parent_spec.rb +0 -36
- data/spec/models/pose_spec.rb +0 -48
- data/spec/models/smile_spec.rb +0 -42
- data/spec/models/sunglasses_spec.rb +0 -42
data/docs/Gender.md
DELETED
@@ -1,20 +0,0 @@
|
|
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
|
-
|
data/docs/ImageQuality.md
DELETED
@@ -1,20 +0,0 @@
|
|
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
|
-
|
data/docs/Instance.md
DELETED
@@ -1,22 +0,0 @@
|
|
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
|
-
|
data/docs/Label.md
DELETED
@@ -1,28 +0,0 @@
|
|
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
DELETED
@@ -1,18 +0,0 @@
|
|
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
|
-
|
data/docs/LabelCategory.md
DELETED
@@ -1,18 +0,0 @@
|
|
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
|
-
|
data/docs/LabelDetection.md
DELETED
@@ -1,26 +0,0 @@
|
|
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
DELETED
@@ -1,22 +0,0 @@
|
|
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
DELETED
@@ -1,20 +0,0 @@
|
|
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/Mustache.md
DELETED
@@ -1,20 +0,0 @@
|
|
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
DELETED
@@ -1,18 +0,0 @@
|
|
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
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
# SongtradrApiClientRuby::PlaylistApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.songtradr.com*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**curate_playlist**](PlaylistApi.md#curate_playlist) | **POST** /api/v1/playlist/{methodName} | Curate playlist. |
|
8
|
-
|
9
|
-
|
10
|
-
## curate_playlist
|
11
|
-
|
12
|
-
> <CuratePlaylistResponseDTO> curate_playlist(method_name, curate_playlist_dto)
|
13
|
-
|
14
|
-
Curate playlist.
|
15
|
-
|
16
|
-
### Examples
|
17
|
-
|
18
|
-
```ruby
|
19
|
-
require 'time'
|
20
|
-
require 'songtradr_api_client_ruby'
|
21
|
-
# setup authorization
|
22
|
-
SongtradrApiClientRuby.configure do |config|
|
23
|
-
# Configure Bearer authorization (JWT): bearer-jwt
|
24
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
25
|
-
end
|
26
|
-
|
27
|
-
api_instance = SongtradrApiClientRuby::PlaylistApi.new
|
28
|
-
method_name = 'recommend' # String | Name of the curation task that should be executed
|
29
|
-
curate_playlist_dto = SongtradrApiClientRuby::CuratePlaylistDTO.new # CuratePlaylistDTO |
|
30
|
-
|
31
|
-
begin
|
32
|
-
# Curate playlist.
|
33
|
-
result = api_instance.curate_playlist(method_name, curate_playlist_dto)
|
34
|
-
p result
|
35
|
-
rescue SongtradrApiClientRuby::ApiError => e
|
36
|
-
puts "Error when calling PlaylistApi->curate_playlist: #{e}"
|
37
|
-
end
|
38
|
-
```
|
39
|
-
|
40
|
-
#### Using the curate_playlist_with_http_info variant
|
41
|
-
|
42
|
-
This returns an Array which contains the response data, status code and headers.
|
43
|
-
|
44
|
-
> <Array(<CuratePlaylistResponseDTO>, Integer, Hash)> curate_playlist_with_http_info(method_name, curate_playlist_dto)
|
45
|
-
|
46
|
-
```ruby
|
47
|
-
begin
|
48
|
-
# Curate playlist.
|
49
|
-
data, status_code, headers = api_instance.curate_playlist_with_http_info(method_name, curate_playlist_dto)
|
50
|
-
p status_code # => 2xx
|
51
|
-
p headers # => { ... }
|
52
|
-
p data # => <CuratePlaylistResponseDTO>
|
53
|
-
rescue SongtradrApiClientRuby::ApiError => e
|
54
|
-
puts "Error when calling PlaylistApi->curate_playlist_with_http_info: #{e}"
|
55
|
-
end
|
56
|
-
```
|
57
|
-
|
58
|
-
### Parameters
|
59
|
-
|
60
|
-
| Name | Type | Description | Notes |
|
61
|
-
| ---- | ---- | ----------- | ----- |
|
62
|
-
| **method_name** | **String** | Name of the curation task that should be executed | |
|
63
|
-
| **curate_playlist_dto** | [**CuratePlaylistDTO**](CuratePlaylistDTO.md) | | |
|
64
|
-
|
65
|
-
### Return type
|
66
|
-
|
67
|
-
[**CuratePlaylistResponseDTO**](CuratePlaylistResponseDTO.md)
|
68
|
-
|
69
|
-
### Authorization
|
70
|
-
|
71
|
-
[bearer-jwt](../README.md#bearer-jwt)
|
72
|
-
|
73
|
-
### HTTP request headers
|
74
|
-
|
75
|
-
- **Content-Type**: application/json
|
76
|
-
- **Accept**: application/json
|
77
|
-
|
data/docs/Pose.md
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# SongtradrApiClientRuby::Pose
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **roll** | **Float** | | [optional] |
|
8
|
-
| **yaw** | **Float** | | [optional] |
|
9
|
-
| **pitch** | **Float** | | [optional] |
|
10
|
-
|
11
|
-
## Example
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'songtradr_api_client_ruby'
|
15
|
-
|
16
|
-
instance = SongtradrApiClientRuby::Pose.new(
|
17
|
-
roll: null,
|
18
|
-
yaw: null,
|
19
|
-
pitch: null
|
20
|
-
)
|
21
|
-
```
|
22
|
-
|
data/docs/Smile.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# SongtradrApiClientRuby::Smile
|
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::Smile.new(
|
16
|
-
value: null,
|
17
|
-
confidence: null
|
18
|
-
)
|
19
|
-
```
|
20
|
-
|
data/docs/Sunglasses.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# SongtradrApiClientRuby::Sunglasses
|
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::Sunglasses.new(
|
16
|
-
value: null,
|
17
|
-
confidence: null
|
18
|
-
)
|
19
|
-
```
|
20
|
-
|
@@ -1,99 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Songtradr API
|
3
|
-
|
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
|
-
|
6
|
-
The version of the OpenAPI document: 1.16.0
|
7
|
-
Contact: info@songtradr.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module SongtradrApiClientRuby
|
16
|
-
class PlaylistApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Curate playlist.
|
23
|
-
# @param method_name [String] Name of the curation task that should be executed
|
24
|
-
# @param curate_playlist_dto [CuratePlaylistDTO]
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [CuratePlaylistResponseDTO]
|
27
|
-
def curate_playlist(method_name, curate_playlist_dto, opts = {})
|
28
|
-
data, _status_code, _headers = curate_playlist_with_http_info(method_name, curate_playlist_dto, opts)
|
29
|
-
data
|
30
|
-
end
|
31
|
-
|
32
|
-
# Curate playlist.
|
33
|
-
# @param method_name [String] Name of the curation task that should be executed
|
34
|
-
# @param curate_playlist_dto [CuratePlaylistDTO]
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(CuratePlaylistResponseDTO, Integer, Hash)>] CuratePlaylistResponseDTO data, response status code and response headers
|
37
|
-
def curate_playlist_with_http_info(method_name, curate_playlist_dto, opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: PlaylistApi.curate_playlist ...'
|
40
|
-
end
|
41
|
-
# verify the required parameter 'method_name' is set
|
42
|
-
if @api_client.config.client_side_validation && method_name.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'method_name' when calling PlaylistApi.curate_playlist"
|
44
|
-
end
|
45
|
-
# verify enum value
|
46
|
-
allowable_values = ["recommend", "replaceSimilar", "replaceDifferent", "order"]
|
47
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(method_name)
|
48
|
-
fail ArgumentError, "invalid value for \"method_name\", must be one of #{allowable_values}"
|
49
|
-
end
|
50
|
-
# verify the required parameter 'curate_playlist_dto' is set
|
51
|
-
if @api_client.config.client_side_validation && curate_playlist_dto.nil?
|
52
|
-
fail ArgumentError, "Missing the required parameter 'curate_playlist_dto' when calling PlaylistApi.curate_playlist"
|
53
|
-
end
|
54
|
-
# resource path
|
55
|
-
local_var_path = '/api/v1/playlist/{methodName}'.sub('{' + 'methodName' + '}', CGI.escape(method_name.to_s))
|
56
|
-
|
57
|
-
# query parameters
|
58
|
-
query_params = opts[:query_params] || {}
|
59
|
-
|
60
|
-
# header parameters
|
61
|
-
header_params = opts[:header_params] || {}
|
62
|
-
# HTTP header 'Accept' (if needed)
|
63
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
|
-
# HTTP header 'Content-Type'
|
65
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
66
|
-
if !content_type.nil?
|
67
|
-
header_params['Content-Type'] = content_type
|
68
|
-
end
|
69
|
-
|
70
|
-
# form parameters
|
71
|
-
form_params = opts[:form_params] || {}
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(curate_playlist_dto)
|
75
|
-
|
76
|
-
# return_type
|
77
|
-
return_type = opts[:debug_return_type] || 'CuratePlaylistResponseDTO'
|
78
|
-
|
79
|
-
# auth_names
|
80
|
-
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
81
|
-
|
82
|
-
new_options = opts.merge(
|
83
|
-
:operation => :"PlaylistApi.curate_playlist",
|
84
|
-
:header_params => header_params,
|
85
|
-
:query_params => query_params,
|
86
|
-
:form_params => form_params,
|
87
|
-
:body => post_body,
|
88
|
-
:auth_names => auth_names,
|
89
|
-
:return_type => return_type
|
90
|
-
)
|
91
|
-
|
92
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
93
|
-
if @api_client.config.debugging
|
94
|
-
@api_client.config.logger.debug "API called: PlaylistApi#curate_playlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
95
|
-
end
|
96
|
-
return data, status_code, headers
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|