songtradr_api_client_ruby 1.12.21
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 +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +76 -0
- data/README.md +223 -0
- data/Rakefile +10 -0
- data/docs/AllowedValuesApi.md +200 -0
- data/docs/CategoryMediumDTO.md +22 -0
- data/docs/CategoryMinimalDTO.md +18 -0
- data/docs/ConfigAccessDTO.md +20 -0
- data/docs/ConfigIdentifierDTO.md +20 -0
- data/docs/ContributorTypeDTO.md +18 -0
- data/docs/ErrorResponse.md +26 -0
- data/docs/FieldSummaryDTO.md +22 -0
- data/docs/FileDTO.md +50 -0
- data/docs/FileListDTO.md +24 -0
- data/docs/FileMinimalWithUrlDTO.md +22 -0
- data/docs/FileSmallDTO.md +46 -0
- data/docs/FileUploadDTO.md +22 -0
- data/docs/FileWIthUrlDTO.md +20 -0
- data/docs/FilesSummaryDTO.md +30 -0
- data/docs/ForgotPasswordDTO.md +20 -0
- data/docs/GenreDTO.md +20 -0
- data/docs/GenreMinimalDTO.md +18 -0
- data/docs/GenresSummaryDTO.md +22 -0
- data/docs/InitPutRecordingAudioDTO.md +22 -0
- data/docs/JwtTokenDTO.md +22 -0
- data/docs/LoginDTO.md +24 -0
- data/docs/MusicalFeaturesDTO.md +186 -0
- data/docs/PLineDTO.md +20 -0
- data/docs/PartyApi.md +75 -0
- data/docs/PartyLargeDTO.md +32 -0
- data/docs/PartySmallDTO.md +20 -0
- data/docs/PlaylistApi.md +221 -0
- data/docs/PlaylistLargeDTO.md +38 -0
- data/docs/ProductMediumDTO.md +34 -0
- data/docs/ProductPartyDTO.md +20 -0
- data/docs/RecordingApi.md +789 -0
- data/docs/RecordingForSimilaritySearchDTO.md +20 -0
- data/docs/RecordingGenrePredictionDTO.md +22 -0
- data/docs/RecordingLargeDTO.md +40 -0
- data/docs/RecordingListDTO.md +24 -0
- data/docs/RecordingMediumDTO.md +36 -0
- data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +20 -0
- data/docs/RecordingMinimalWithTaggramsDTO.md +22 -0
- data/docs/RecordingMinimalWithTagstrengthsDTO.md +20 -0
- data/docs/RecordingPartyDTO.md +20 -0
- data/docs/RecordingPlaylistDTO.md +24 -0
- data/docs/RecordingSmallDTO.md +24 -0
- data/docs/RecordingTagSmallDTO.md +18 -0
- data/docs/SaveFileRecordingDTO.md +236 -0
- data/docs/SavePlaylistDTO.md +34 -0
- data/docs/SaveRecordingGenreDTO.md +22 -0
- data/docs/SaveRecordingPartyDTO.md +20 -0
- data/docs/SaveRecordingPlaylistDTO.md +22 -0
- data/docs/SaveRecordingTagDTO.md +20 -0
- data/docs/SaveReferrerDTO.md +20 -0
- data/docs/SaveTaggramsDTO.md +82 -0
- data/docs/SaveUserDTO.md +28 -0
- data/docs/SearchFilterValuesDTO.md +98 -0
- data/docs/SearchRecordingGranularAbstractionDTO.md +20 -0
- data/docs/SearchRecordingGranularDTO.md +20 -0
- data/docs/SignUpDTO.md +24 -0
- data/docs/TagDTO.md +22 -0
- data/docs/TagSmallDTO.md +20 -0
- data/docs/TaggramDTO.md +26 -0
- data/docs/TagsSummaryDTO.md +22 -0
- data/docs/TagstrengthDTO.md +26 -0
- data/docs/TitleDTO.md +18 -0
- data/docs/TokenRequest.md +18 -0
- data/docs/TrackToMediumProductDTO.md +22 -0
- data/docs/UpdatePasswordDTO.md +20 -0
- data/docs/UsageDTO.md +18 -0
- data/docs/UserApi.md +1936 -0
- data/docs/UserDTO.md +56 -0
- data/getspec.rb +10 -0
- data/git_push.sh +57 -0
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +213 -0
- data/lib/songtradr_api_client_ruby/api/party_api.rb +84 -0
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +222 -0
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +900 -0
- data/lib/songtradr_api_client_ruby/api/user_api.rb +2642 -0
- data/lib/songtradr_api_client_ruby/api_client.rb +428 -0
- data/lib/songtradr_api_client_ruby/api_error.rb +58 -0
- data/lib/songtradr_api_client_ruby/configuration.rb +380 -0
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +250 -0
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +225 -0
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +287 -0
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +239 -0
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +225 -0
- data/lib/songtradr_api_client_ruby/models/error_response.rb +276 -0
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +253 -0
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +450 -0
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +269 -0
- data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +253 -0
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +432 -0
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +244 -0
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +239 -0
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +287 -0
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +267 -0
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +239 -0
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +225 -0
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +248 -0
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +238 -0
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +248 -0
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +257 -0
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +1532 -0
- data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +234 -0
- data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +288 -0
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +239 -0
- data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +353 -0
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +316 -0
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +236 -0
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +239 -0
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +253 -0
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +366 -0
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +269 -0
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +340 -0
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +236 -0
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +248 -0
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +236 -0
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +236 -0
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +247 -0
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +268 -0
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +225 -0
- data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +1847 -0
- data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +350 -0
- data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +243 -0
- data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +273 -0
- data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +248 -0
- data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +234 -0
- data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +229 -0
- data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +574 -0
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +317 -0
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +867 -0
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +270 -0
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +235 -0
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +262 -0
- data/lib/songtradr_api_client_ruby/models/tag_dto.rb +250 -0
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +239 -0
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +271 -0
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +250 -0
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +269 -0
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +225 -0
- data/lib/songtradr_api_client_ruby/models/token_request.rb +224 -0
- data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +248 -0
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +238 -0
- data/lib/songtradr_api_client_ruby/models/usage_dto.rb +220 -0
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +481 -0
- data/lib/songtradr_api_client_ruby/version.rb +15 -0
- data/lib/songtradr_api_client_ruby.rb +108 -0
- data/openapi-generator-config.yaml +10 -0
- data/songtradr_api_client_ruby.gemspec +39 -0
- data/spec/api/allowed_values_api_spec.rb +68 -0
- data/spec/api/party_api_spec.rb +46 -0
- data/spec/api/playlist_api_spec.rb +72 -0
- data/spec/api/recording_api_spec.rb +192 -0
- data/spec/api/user_api_spec.rb +507 -0
- data/spec/api_client_spec.rb +223 -0
- data/spec/configuration_spec.rb +82 -0
- data/spec/models/category_medium_dto_spec.rb +46 -0
- data/spec/models/category_minimal_dto_spec.rb +34 -0
- data/spec/models/config_access_dto_spec.rb +48 -0
- data/spec/models/config_identifier_dto_spec.rb +40 -0
- data/spec/models/contributor_type_dto_spec.rb +34 -0
- data/spec/models/error_response_spec.rb +58 -0
- data/spec/models/field_summary_dto_spec.rb +46 -0
- data/spec/models/file_dto_spec.rb +142 -0
- data/spec/models/file_list_dto_spec.rb +52 -0
- data/spec/models/file_minimal_with_url_dto_spec.rb +46 -0
- data/spec/models/file_small_dto_spec.rb +130 -0
- data/spec/models/file_upload_dto_spec.rb +46 -0
- data/spec/models/file_w_ith_url_dto_spec.rb +40 -0
- data/spec/models/files_summary_dto_spec.rb +70 -0
- data/spec/models/forgot_password_dto_spec.rb +44 -0
- data/spec/models/genre_dto_spec.rb +40 -0
- data/spec/models/genre_minimal_dto_spec.rb +34 -0
- data/spec/models/genres_summary_dto_spec.rb +46 -0
- data/spec/models/init_put_recording_audio_dto_spec.rb +46 -0
- data/spec/models/jwt_token_dto_spec.rb +46 -0
- data/spec/models/login_dto_spec.rb +52 -0
- data/spec/models/musical_features_dto_spec.rb +706 -0
- data/spec/models/p_line_dto_spec.rb +40 -0
- data/spec/models/party_large_dto_spec.rb +76 -0
- data/spec/models/party_small_dto_spec.rb +40 -0
- data/spec/models/playlist_large_dto_spec.rb +98 -0
- data/spec/models/product_medium_dto_spec.rb +82 -0
- data/spec/models/product_party_dto_spec.rb +40 -0
- data/spec/models/recording_for_similarity_search_dto_spec.rb +40 -0
- data/spec/models/recording_genre_prediction_dto_spec.rb +46 -0
- data/spec/models/recording_large_dto_spec.rb +100 -0
- data/spec/models/recording_list_dto_spec.rb +52 -0
- data/spec/models/recording_medium_dto_spec.rb +88 -0
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +40 -0
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +46 -0
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +40 -0
- data/spec/models/recording_party_dto_spec.rb +40 -0
- data/spec/models/recording_playlist_dto_spec.rb +52 -0
- data/spec/models/recording_small_dto_spec.rb +52 -0
- data/spec/models/recording_tag_small_dto_spec.rb +34 -0
- data/spec/models/save_file_recording_dto_spec.rb +880 -0
- data/spec/models/save_playlist_dto_spec.rb +86 -0
- data/spec/models/save_recording_genre_dto_spec.rb +46 -0
- data/spec/models/save_recording_party_dto_spec.rb +44 -0
- data/spec/models/save_recording_playlist_dto_spec.rb +46 -0
- data/spec/models/save_recording_tag_dto_spec.rb +40 -0
- data/spec/models/save_referrer_dto_spec.rb +40 -0
- data/spec/models/save_taggrams_dto_spec.rb +226 -0
- data/spec/models/save_user_dto_spec.rb +72 -0
- data/spec/models/search_filter_values_dto_spec.rb +274 -0
- data/spec/models/search_recording_granular_abstraction_dto_spec.rb +44 -0
- data/spec/models/search_recording_granular_dto_spec.rb +40 -0
- data/spec/models/sign_up_dto_spec.rb +52 -0
- data/spec/models/tag_dto_spec.rb +46 -0
- data/spec/models/tag_small_dto_spec.rb +40 -0
- data/spec/models/taggram_dto_spec.rb +58 -0
- data/spec/models/tags_summary_dto_spec.rb +46 -0
- data/spec/models/tagstrength_dto_spec.rb +58 -0
- data/spec/models/title_dto_spec.rb +34 -0
- data/spec/models/token_request_spec.rb +34 -0
- data/spec/models/track_to_medium_product_dto_spec.rb +46 -0
- data/spec/models/update_password_dto_spec.rb +40 -0
- data/spec/models/usage_dto_spec.rb +34 -0
- data/spec/models/user_dto_spec.rb +148 -0
- data/spec/spec_helper.rb +111 -0
- metadata +412 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 1f96becb3654d7fd4369df782e82b79683a9bb05ceacc787c4bf20cde2c59a26
|
|
4
|
+
data.tar.gz: 29ef1f0814d6b2af7ba7ffae5d871c351c6097d87987f63bfb0c2dc871aa095e
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 90e1caa4b96e3700510c22aa383dd2a521110a9709819f63f5959c54bfa28190cef2583a51e60ab9375b6595acd7fe56e7581ef83de68a30e674846be0137f8c
|
|
7
|
+
data.tar.gz: 51e72fd324c1a0760f6dbf5c0fedfce46810b9a34649ce58b803836b9046462aec28c6706b030da853b6576aed633e9bb8b8355cc62eb650416ea3069b5d3e4e
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
songtradr_api_client_ruby (1.12.21)
|
|
5
|
+
faraday (>= 1.0.1, < 3.0)
|
|
6
|
+
faraday-multipart
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
ast (2.4.2)
|
|
12
|
+
byebug (11.1.3)
|
|
13
|
+
coderay (1.1.3)
|
|
14
|
+
diff-lcs (1.5.0)
|
|
15
|
+
faraday (2.7.6)
|
|
16
|
+
faraday-net_http (>= 2.0, < 3.1)
|
|
17
|
+
ruby2_keywords (>= 0.0.4)
|
|
18
|
+
faraday-multipart (1.0.4)
|
|
19
|
+
multipart-post (~> 2)
|
|
20
|
+
faraday-net_http (3.0.2)
|
|
21
|
+
jaro_winkler (1.5.6)
|
|
22
|
+
method_source (1.0.0)
|
|
23
|
+
multipart-post (2.3.0)
|
|
24
|
+
parallel (1.23.0)
|
|
25
|
+
parser (3.2.2.3)
|
|
26
|
+
ast (~> 2.4.1)
|
|
27
|
+
racc
|
|
28
|
+
pry (0.14.2)
|
|
29
|
+
coderay (~> 1.1)
|
|
30
|
+
method_source (~> 1.0)
|
|
31
|
+
pry-byebug (3.10.1)
|
|
32
|
+
byebug (~> 11.0)
|
|
33
|
+
pry (>= 0.13, < 0.15)
|
|
34
|
+
psych (5.1.0)
|
|
35
|
+
stringio
|
|
36
|
+
racc (1.7.0)
|
|
37
|
+
rainbow (3.1.1)
|
|
38
|
+
rake (13.0.6)
|
|
39
|
+
rspec (3.12.0)
|
|
40
|
+
rspec-core (~> 3.12.0)
|
|
41
|
+
rspec-expectations (~> 3.12.0)
|
|
42
|
+
rspec-mocks (~> 3.12.0)
|
|
43
|
+
rspec-core (3.12.2)
|
|
44
|
+
rspec-support (~> 3.12.0)
|
|
45
|
+
rspec-expectations (3.12.3)
|
|
46
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
47
|
+
rspec-support (~> 3.12.0)
|
|
48
|
+
rspec-mocks (3.12.5)
|
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
50
|
+
rspec-support (~> 3.12.0)
|
|
51
|
+
rspec-support (3.12.0)
|
|
52
|
+
rubocop (0.66.0)
|
|
53
|
+
jaro_winkler (~> 1.5.1)
|
|
54
|
+
parallel (~> 1.10)
|
|
55
|
+
parser (>= 2.5, != 2.5.1.1)
|
|
56
|
+
psych (>= 3.1.0)
|
|
57
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
58
|
+
ruby-progressbar (~> 1.7)
|
|
59
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
|
60
|
+
ruby-progressbar (1.13.0)
|
|
61
|
+
ruby2_keywords (0.0.5)
|
|
62
|
+
stringio (3.0.7)
|
|
63
|
+
unicode-display_width (1.5.0)
|
|
64
|
+
|
|
65
|
+
PLATFORMS
|
|
66
|
+
x86_64-linux
|
|
67
|
+
|
|
68
|
+
DEPENDENCIES
|
|
69
|
+
pry-byebug
|
|
70
|
+
rake (~> 13.0.1)
|
|
71
|
+
rspec (~> 3.6, >= 3.6.0)
|
|
72
|
+
rubocop (~> 0.66.0)
|
|
73
|
+
songtradr_api_client_ruby!
|
|
74
|
+
|
|
75
|
+
BUNDLED WITH
|
|
76
|
+
2.2.22
|
data/README.md
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# songtradr_api_client_ruby
|
|
2
|
+
|
|
3
|
+
SongtradrApiClientRuby - the Ruby gem for the Songtradr API
|
|
4
|
+
|
|
5
|
+
This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging.
|
|
6
|
+
|
|
7
|
+
You can also use the API to manage your account and musicube cloud data.
|
|
8
|
+
|
|
9
|
+
**Authentication**
|
|
10
|
+
|
|
11
|
+
1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up.
|
|
12
|
+
|
|
13
|
+
2. To authenticate, you need to login via the POST /api/v1/user/login endpoint.
|
|
14
|
+
|
|
15
|
+
3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token.
|
|
16
|
+
|
|
17
|
+
**Rate Limiting**
|
|
18
|
+
|
|
19
|
+
The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more.
|
|
20
|
+
|
|
21
|
+
**Getting Started with auto-tagging**
|
|
22
|
+
|
|
23
|
+
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.
|
|
24
|
+
2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint.
|
|
25
|
+
3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint.
|
|
26
|
+
|
|
27
|
+
**Getting Started with search**
|
|
28
|
+
|
|
29
|
+
You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints.
|
|
30
|
+
|
|
31
|
+
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.
|
|
32
|
+
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.
|
|
33
|
+
|
|
34
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
35
|
+
|
|
36
|
+
- API version: 1.12.21
|
|
37
|
+
- Package version: 1.12.21
|
|
38
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
39
|
+
For more information, please visit [https://songtradr.com](https://songtradr.com)
|
|
40
|
+
|
|
41
|
+
## Installation
|
|
42
|
+
|
|
43
|
+
### Build a gem
|
|
44
|
+
|
|
45
|
+
To build the Ruby code into a gem:
|
|
46
|
+
|
|
47
|
+
```shell
|
|
48
|
+
gem build songtradr_api_client_ruby.gemspec
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Then either install the gem locally:
|
|
52
|
+
|
|
53
|
+
```shell
|
|
54
|
+
gem install ./songtradr_api_client_ruby-1.12.21.gem
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
(for development, run `gem install --dev ./songtradr_api_client_ruby-1.12.21.gem` to install the development dependencies)
|
|
58
|
+
|
|
59
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
60
|
+
|
|
61
|
+
Finally add this to the Gemfile:
|
|
62
|
+
|
|
63
|
+
gem 'songtradr_api_client_ruby', '~> 1.12.21'
|
|
64
|
+
|
|
65
|
+
### Install from Git
|
|
66
|
+
|
|
67
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
|
68
|
+
|
|
69
|
+
gem 'songtradr_api_client_ruby', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
|
70
|
+
|
|
71
|
+
### Include the Ruby code directly
|
|
72
|
+
|
|
73
|
+
Include the Ruby code directly using `-I` as follows:
|
|
74
|
+
|
|
75
|
+
```shell
|
|
76
|
+
ruby -Ilib script.rb
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Getting Started
|
|
80
|
+
|
|
81
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
|
82
|
+
|
|
83
|
+
```ruby
|
|
84
|
+
# Load the gem
|
|
85
|
+
require 'songtradr_api_client_ruby'
|
|
86
|
+
|
|
87
|
+
api_instance = SongtradrApiClientRuby::AllowedValuesApi.new
|
|
88
|
+
opts = {
|
|
89
|
+
response_size: 's' # String | Size the response should have.
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
begin
|
|
93
|
+
#Allowed values for music descriptive parameters to be used in the searchAll endpoint.
|
|
94
|
+
result = api_instance.allowed_musical_features(opts)
|
|
95
|
+
p result
|
|
96
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
|
97
|
+
puts "Exception when calling AllowedValuesApi->allowed_musical_features: #{e}"
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Documentation for API Endpoints
|
|
103
|
+
|
|
104
|
+
All URIs are relative to *https://api.songtradr.com*
|
|
105
|
+
|
|
106
|
+
Class | Method | HTTP request | Description
|
|
107
|
+
------------ | ------------- | ------------- | -------------
|
|
108
|
+
*SongtradrApiClientRuby::AllowedValuesApi* | [**allowed_musical_features**](docs/AllowedValuesApi.md#allowed_musical_features) | **GET** /api/v1/allowedValues/musicalFeatures | Allowed values for music descriptive parameters to be used in the searchAll endpoint.
|
|
109
|
+
*SongtradrApiClientRuby::AllowedValuesApi* | [**genres**](docs/AllowedValuesApi.md#genres) | **GET** /api/v1/allowedValues/genre | Allowed values for genres.
|
|
110
|
+
*SongtradrApiClientRuby::AllowedValuesApi* | [**tags**](docs/AllowedValuesApi.md#tags) | **GET** /api/v1/allowedValues/tag | All descriptive tags inside of tag-categories.
|
|
111
|
+
*SongtradrApiClientRuby::PartyApi* | [**party**](docs/PartyApi.md#party) | **GET** /api/v1/party | Information on a person, group or company.
|
|
112
|
+
*SongtradrApiClientRuby::PlaylistApi* | [**all_playlists**](docs/PlaylistApi.md#all_playlists) | **GET** /api/v1/playlist | All playlists.
|
|
113
|
+
*SongtradrApiClientRuby::PlaylistApi* | [**create_or_update_playlist**](docs/PlaylistApi.md#create_or_update_playlist) | **POST** /api/v1/playlist | Create and edit playlist.
|
|
114
|
+
*SongtradrApiClientRuby::PlaylistApi* | [**delete_playlist**](docs/PlaylistApi.md#delete_playlist) | **DELETE** /api/v1/playlist/{songtradrPlaylistGuid} | Delete playlist.
|
|
115
|
+
*SongtradrApiClientRuby::RecordingApi* | [**recordings_by_ids_with_musical_features**](docs/RecordingApi.md#recordings_by_ids_with_musical_features) | **GET** /api/v1/public/recording/{ids}/musicalFeatures | AI generated moods, musical features and more for recordings.
|
|
116
|
+
*SongtradrApiClientRuby::RecordingApi* | [**recordings_by_ids_with_similarities**](docs/RecordingApi.md#recordings_by_ids_with_similarities) | **GET** /api/v1/public/recording/{ids}/similarities | Similar recordings for a list of recordings.
|
|
117
|
+
*SongtradrApiClientRuby::RecordingApi* | [**recordings_by_ids_with_taggrams**](docs/RecordingApi.md#recordings_by_ids_with_taggrams) | **GET** /api/v1/public/recording/{ids}/taggrams | Timeseries of AI generated moods, musical features and more for a list of recordings.
|
|
118
|
+
*SongtradrApiClientRuby::RecordingApi* | [**recordings_by_ids_with_tagstrengths**](docs/RecordingApi.md#recordings_by_ids_with_tagstrengths) | **GET** /api/v1/public/recording/{ids}/tagstrengths | Strengths as numerical representations for AI generated moods, musical features and more for recordings.
|
|
119
|
+
*SongtradrApiClientRuby::RecordingApi* | [**recordings_large_by_ids**](docs/RecordingApi.md#recordings_large_by_ids) | **GET** /api/v1/public/recording/l/{ids} | Recordings by IDs with a large response.
|
|
120
|
+
*SongtradrApiClientRuby::RecordingApi* | [**recordings_medium_by_ids**](docs/RecordingApi.md#recordings_medium_by_ids) | **GET** /api/v1/public/recording/m/{ids} | Recordings by IDs with a medium sized response.
|
|
121
|
+
*SongtradrApiClientRuby::RecordingApi* | [**recordings_small_by_ids**](docs/RecordingApi.md#recordings_small_by_ids) | **GET** /api/v1/public/recording/s/{ids} | Recordings by IDs with a small response.
|
|
122
|
+
*SongtradrApiClientRuby::RecordingApi* | [**search_recordings**](docs/RecordingApi.md#search_recordings) | **GET** /api/v1/public/recording/search | Recordings by contributors, moods, musical features and more.
|
|
123
|
+
*SongtradrApiClientRuby::RecordingApi* | [**search_recordings_granular**](docs/RecordingApi.md#search_recordings_granular) | **POST** /api/v1/public/recording/searchGranular | Recordings by granular search options.
|
|
124
|
+
*SongtradrApiClientRuby::RecordingApi* | [**search_recordings_granular_abstraction**](docs/RecordingApi.md#search_recordings_granular_abstraction) | **POST** /api/v1/public/recording/searchGranularAbstraction | Recordings by abstracted wordings and granular search options.
|
|
125
|
+
*SongtradrApiClientRuby::UserApi* | [**create_user_referrer**](docs/UserApi.md#create_user_referrer) | **POST** /api/v1/user/referrers/new |
|
|
126
|
+
*SongtradrApiClientRuby::UserApi* | [**delete_user_file**](docs/UserApi.md#delete_user_file) | **DELETE** /api/v1/user/file/{objectKey} | Delete file.
|
|
127
|
+
*SongtradrApiClientRuby::UserApi* | [**edit_me**](docs/UserApi.md#edit_me) | **POST** /api/v1/user/me | Edit details for a logged-in user
|
|
128
|
+
*SongtradrApiClientRuby::UserApi* | [**forgot_password**](docs/UserApi.md#forgot_password) | **POST** /api/v1/user/forgot-password | Send a password reset email
|
|
129
|
+
*SongtradrApiClientRuby::UserApi* | [**initiate_user_file_upload**](docs/UserApi.md#initiate_user_file_upload) | **POST** /api/v1/user/file/{name}/initUpload | Initialize a file upload. Responds with an URL where the file can be uploaded.
|
|
130
|
+
*SongtradrApiClientRuby::UserApi* | [**login**](docs/UserApi.md#login) | **POST** /api/v1/user/login | Login to generate a bearer token.
|
|
131
|
+
*SongtradrApiClientRuby::UserApi* | [**me**](docs/UserApi.md#me) | **GET** /api/v1/user/me | Details for a logged-in user
|
|
132
|
+
*SongtradrApiClientRuby::UserApi* | [**recordings_by_folder_with_taggrams**](docs/UserApi.md#recordings_by_folder_with_taggrams) | **GET** /api/v1/user/folder/{folderName}/taggrams | Timeseries of AI generated moods, musical features and more for recordings in your folder.
|
|
133
|
+
*SongtradrApiClientRuby::UserApi* | [**recordings_by_folder_with_tagstrengths**](docs/UserApi.md#recordings_by_folder_with_tagstrengths) | **GET** /api/v1/user/folder/{folderName}/tagstrengths | Strengths as numerical representations for AI generated moods, musical features and more for recordings in your folder.
|
|
134
|
+
*SongtradrApiClientRuby::UserApi* | [**save_playlist**](docs/UserApi.md#save_playlist) | **POST** /api/v1/user/savePlaylist | List, search and create playlist of your own files.
|
|
135
|
+
*SongtradrApiClientRuby::UserApi* | [**sign_up**](docs/UserApi.md#sign_up) | **POST** /api/v1/user/sign-up | Sign up a new user.
|
|
136
|
+
*SongtradrApiClientRuby::UserApi* | [**token**](docs/UserApi.md#token) | **POST** /api/v1/user/token | Generates a new JWT token for the given refresh token
|
|
137
|
+
*SongtradrApiClientRuby::UserApi* | [**update_password**](docs/UserApi.md#update_password) | **POST** /api/v1/user/update-password | Update password by using the password reset token
|
|
138
|
+
*SongtradrApiClientRuby::UserApi* | [**update_user_file_recording**](docs/UserApi.md#update_user_file_recording) | **POST** /api/v1/user/file/{objectKey} | Create and edit metadata of your files.
|
|
139
|
+
*SongtradrApiClientRuby::UserApi* | [**user_file**](docs/UserApi.md#user_file) | **GET** /api/v1/user/file/{objectKey} | Details and a download link for a file.
|
|
140
|
+
*SongtradrApiClientRuby::UserApi* | [**user_files**](docs/UserApi.md#user_files) | **GET** /api/v1/user/files | List and search your own files.
|
|
141
|
+
*SongtradrApiClientRuby::UserApi* | [**user_files_download**](docs/UserApi.md#user_files_download) | **GET** /api/v1/user/filesDownload | Download links for your files
|
|
142
|
+
*SongtradrApiClientRuby::UserApi* | [**user_files_status**](docs/UserApi.md#user_files_status) | **GET** /api/v1/user/filesStatus | Status details for files.
|
|
143
|
+
*SongtradrApiClientRuby::UserApi* | [**user_files_summary**](docs/UserApi.md#user_files_summary) | **GET** /api/v1/user/filesSummary | Summary fo your files.
|
|
144
|
+
*SongtradrApiClientRuby::UserApi* | [**user_folders**](docs/UserApi.md#user_folders) | **GET** /api/v1/user/folders | Your Folders
|
|
145
|
+
*SongtradrApiClientRuby::UserApi* | [**user_referrers**](docs/UserApi.md#user_referrers) | **GET** /api/v1/user/referrers/{username} |
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## Documentation for Models
|
|
149
|
+
|
|
150
|
+
- [SongtradrApiClientRuby::CategoryMediumDTO](docs/CategoryMediumDTO.md)
|
|
151
|
+
- [SongtradrApiClientRuby::CategoryMinimalDTO](docs/CategoryMinimalDTO.md)
|
|
152
|
+
- [SongtradrApiClientRuby::ConfigAccessDTO](docs/ConfigAccessDTO.md)
|
|
153
|
+
- [SongtradrApiClientRuby::ConfigIdentifierDTO](docs/ConfigIdentifierDTO.md)
|
|
154
|
+
- [SongtradrApiClientRuby::ContributorTypeDTO](docs/ContributorTypeDTO.md)
|
|
155
|
+
- [SongtradrApiClientRuby::ErrorResponse](docs/ErrorResponse.md)
|
|
156
|
+
- [SongtradrApiClientRuby::FieldSummaryDTO](docs/FieldSummaryDTO.md)
|
|
157
|
+
- [SongtradrApiClientRuby::FileDTO](docs/FileDTO.md)
|
|
158
|
+
- [SongtradrApiClientRuby::FileListDTO](docs/FileListDTO.md)
|
|
159
|
+
- [SongtradrApiClientRuby::FileMinimalWithUrlDTO](docs/FileMinimalWithUrlDTO.md)
|
|
160
|
+
- [SongtradrApiClientRuby::FileSmallDTO](docs/FileSmallDTO.md)
|
|
161
|
+
- [SongtradrApiClientRuby::FileUploadDTO](docs/FileUploadDTO.md)
|
|
162
|
+
- [SongtradrApiClientRuby::FileWIthUrlDTO](docs/FileWIthUrlDTO.md)
|
|
163
|
+
- [SongtradrApiClientRuby::FilesSummaryDTO](docs/FilesSummaryDTO.md)
|
|
164
|
+
- [SongtradrApiClientRuby::ForgotPasswordDTO](docs/ForgotPasswordDTO.md)
|
|
165
|
+
- [SongtradrApiClientRuby::GenreDTO](docs/GenreDTO.md)
|
|
166
|
+
- [SongtradrApiClientRuby::GenreMinimalDTO](docs/GenreMinimalDTO.md)
|
|
167
|
+
- [SongtradrApiClientRuby::GenresSummaryDTO](docs/GenresSummaryDTO.md)
|
|
168
|
+
- [SongtradrApiClientRuby::InitPutRecordingAudioDTO](docs/InitPutRecordingAudioDTO.md)
|
|
169
|
+
- [SongtradrApiClientRuby::JwtTokenDTO](docs/JwtTokenDTO.md)
|
|
170
|
+
- [SongtradrApiClientRuby::LoginDTO](docs/LoginDTO.md)
|
|
171
|
+
- [SongtradrApiClientRuby::MusicalFeaturesDTO](docs/MusicalFeaturesDTO.md)
|
|
172
|
+
- [SongtradrApiClientRuby::PLineDTO](docs/PLineDTO.md)
|
|
173
|
+
- [SongtradrApiClientRuby::PartyLargeDTO](docs/PartyLargeDTO.md)
|
|
174
|
+
- [SongtradrApiClientRuby::PartySmallDTO](docs/PartySmallDTO.md)
|
|
175
|
+
- [SongtradrApiClientRuby::PlaylistLargeDTO](docs/PlaylistLargeDTO.md)
|
|
176
|
+
- [SongtradrApiClientRuby::ProductMediumDTO](docs/ProductMediumDTO.md)
|
|
177
|
+
- [SongtradrApiClientRuby::ProductPartyDTO](docs/ProductPartyDTO.md)
|
|
178
|
+
- [SongtradrApiClientRuby::RecordingForSimilaritySearchDTO](docs/RecordingForSimilaritySearchDTO.md)
|
|
179
|
+
- [SongtradrApiClientRuby::RecordingGenrePredictionDTO](docs/RecordingGenrePredictionDTO.md)
|
|
180
|
+
- [SongtradrApiClientRuby::RecordingLargeDTO](docs/RecordingLargeDTO.md)
|
|
181
|
+
- [SongtradrApiClientRuby::RecordingListDTO](docs/RecordingListDTO.md)
|
|
182
|
+
- [SongtradrApiClientRuby::RecordingMediumDTO](docs/RecordingMediumDTO.md)
|
|
183
|
+
- [SongtradrApiClientRuby::RecordingMinimalWithMusicalFeaturesDTO](docs/RecordingMinimalWithMusicalFeaturesDTO.md)
|
|
184
|
+
- [SongtradrApiClientRuby::RecordingMinimalWithTaggramsDTO](docs/RecordingMinimalWithTaggramsDTO.md)
|
|
185
|
+
- [SongtradrApiClientRuby::RecordingMinimalWithTagstrengthsDTO](docs/RecordingMinimalWithTagstrengthsDTO.md)
|
|
186
|
+
- [SongtradrApiClientRuby::RecordingPartyDTO](docs/RecordingPartyDTO.md)
|
|
187
|
+
- [SongtradrApiClientRuby::RecordingPlaylistDTO](docs/RecordingPlaylistDTO.md)
|
|
188
|
+
- [SongtradrApiClientRuby::RecordingSmallDTO](docs/RecordingSmallDTO.md)
|
|
189
|
+
- [SongtradrApiClientRuby::RecordingTagSmallDTO](docs/RecordingTagSmallDTO.md)
|
|
190
|
+
- [SongtradrApiClientRuby::SaveFileRecordingDTO](docs/SaveFileRecordingDTO.md)
|
|
191
|
+
- [SongtradrApiClientRuby::SavePlaylistDTO](docs/SavePlaylistDTO.md)
|
|
192
|
+
- [SongtradrApiClientRuby::SaveRecordingGenreDTO](docs/SaveRecordingGenreDTO.md)
|
|
193
|
+
- [SongtradrApiClientRuby::SaveRecordingPartyDTO](docs/SaveRecordingPartyDTO.md)
|
|
194
|
+
- [SongtradrApiClientRuby::SaveRecordingPlaylistDTO](docs/SaveRecordingPlaylistDTO.md)
|
|
195
|
+
- [SongtradrApiClientRuby::SaveRecordingTagDTO](docs/SaveRecordingTagDTO.md)
|
|
196
|
+
- [SongtradrApiClientRuby::SaveReferrerDTO](docs/SaveReferrerDTO.md)
|
|
197
|
+
- [SongtradrApiClientRuby::SaveTaggramsDTO](docs/SaveTaggramsDTO.md)
|
|
198
|
+
- [SongtradrApiClientRuby::SaveUserDTO](docs/SaveUserDTO.md)
|
|
199
|
+
- [SongtradrApiClientRuby::SearchFilterValuesDTO](docs/SearchFilterValuesDTO.md)
|
|
200
|
+
- [SongtradrApiClientRuby::SearchRecordingGranularAbstractionDTO](docs/SearchRecordingGranularAbstractionDTO.md)
|
|
201
|
+
- [SongtradrApiClientRuby::SearchRecordingGranularDTO](docs/SearchRecordingGranularDTO.md)
|
|
202
|
+
- [SongtradrApiClientRuby::SignUpDTO](docs/SignUpDTO.md)
|
|
203
|
+
- [SongtradrApiClientRuby::TagDTO](docs/TagDTO.md)
|
|
204
|
+
- [SongtradrApiClientRuby::TagSmallDTO](docs/TagSmallDTO.md)
|
|
205
|
+
- [SongtradrApiClientRuby::TaggramDTO](docs/TaggramDTO.md)
|
|
206
|
+
- [SongtradrApiClientRuby::TagsSummaryDTO](docs/TagsSummaryDTO.md)
|
|
207
|
+
- [SongtradrApiClientRuby::TagstrengthDTO](docs/TagstrengthDTO.md)
|
|
208
|
+
- [SongtradrApiClientRuby::TitleDTO](docs/TitleDTO.md)
|
|
209
|
+
- [SongtradrApiClientRuby::TokenRequest](docs/TokenRequest.md)
|
|
210
|
+
- [SongtradrApiClientRuby::TrackToMediumProductDTO](docs/TrackToMediumProductDTO.md)
|
|
211
|
+
- [SongtradrApiClientRuby::UpdatePasswordDTO](docs/UpdatePasswordDTO.md)
|
|
212
|
+
- [SongtradrApiClientRuby::UsageDTO](docs/UsageDTO.md)
|
|
213
|
+
- [SongtradrApiClientRuby::UserDTO](docs/UserDTO.md)
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
## Documentation for Authorization
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
Authentication schemes defined for the API:
|
|
220
|
+
### bearer-jwt
|
|
221
|
+
|
|
222
|
+
- **Type**: Bearer authentication (JWT)
|
|
223
|
+
|
data/Rakefile
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# SongtradrApiClientRuby::AllowedValuesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.songtradr.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**allowed_musical_features**](AllowedValuesApi.md#allowed_musical_features) | **GET** /api/v1/allowedValues/musicalFeatures | Allowed values for music descriptive parameters to be used in the searchAll endpoint. |
|
|
8
|
+
| [**genres**](AllowedValuesApi.md#genres) | **GET** /api/v1/allowedValues/genre | Allowed values for genres. |
|
|
9
|
+
| [**tags**](AllowedValuesApi.md#tags) | **GET** /api/v1/allowedValues/tag | All descriptive tags inside of tag-categories. |
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## allowed_musical_features
|
|
13
|
+
|
|
14
|
+
> <SearchFilterValuesDTO> allowed_musical_features(opts)
|
|
15
|
+
|
|
16
|
+
Allowed values for music descriptive parameters to be used in the searchAll endpoint.
|
|
17
|
+
|
|
18
|
+
### Examples
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'time'
|
|
22
|
+
require 'songtradr_api_client_ruby'
|
|
23
|
+
|
|
24
|
+
api_instance = SongtradrApiClientRuby::AllowedValuesApi.new
|
|
25
|
+
opts = {
|
|
26
|
+
response_size: 's' # String | Size the response should have.
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
begin
|
|
30
|
+
# Allowed values for music descriptive parameters to be used in the searchAll endpoint.
|
|
31
|
+
result = api_instance.allowed_musical_features(opts)
|
|
32
|
+
p result
|
|
33
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
|
34
|
+
puts "Error when calling AllowedValuesApi->allowed_musical_features: #{e}"
|
|
35
|
+
end
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### Using the allowed_musical_features_with_http_info variant
|
|
39
|
+
|
|
40
|
+
This returns an Array which contains the response data, status code and headers.
|
|
41
|
+
|
|
42
|
+
> <Array(<SearchFilterValuesDTO>, Integer, Hash)> allowed_musical_features_with_http_info(opts)
|
|
43
|
+
|
|
44
|
+
```ruby
|
|
45
|
+
begin
|
|
46
|
+
# Allowed values for music descriptive parameters to be used in the searchAll endpoint.
|
|
47
|
+
data, status_code, headers = api_instance.allowed_musical_features_with_http_info(opts)
|
|
48
|
+
p status_code # => 2xx
|
|
49
|
+
p headers # => { ... }
|
|
50
|
+
p data # => <SearchFilterValuesDTO>
|
|
51
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
|
52
|
+
puts "Error when calling AllowedValuesApi->allowed_musical_features_with_http_info: #{e}"
|
|
53
|
+
end
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
|
|
58
|
+
| Name | Type | Description | Notes |
|
|
59
|
+
| ---- | ---- | ----------- | ----- |
|
|
60
|
+
| **response_size** | **String** | Size the response should have. | [optional][default to 's'] |
|
|
61
|
+
|
|
62
|
+
### Return type
|
|
63
|
+
|
|
64
|
+
[**SearchFilterValuesDTO**](SearchFilterValuesDTO.md)
|
|
65
|
+
|
|
66
|
+
### Authorization
|
|
67
|
+
|
|
68
|
+
No authorization required
|
|
69
|
+
|
|
70
|
+
### HTTP request headers
|
|
71
|
+
|
|
72
|
+
- **Content-Type**: Not defined
|
|
73
|
+
- **Accept**: application/json
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## genres
|
|
77
|
+
|
|
78
|
+
> <Array<GenreDTO>> genres(genre_type)
|
|
79
|
+
|
|
80
|
+
Allowed values for genres.
|
|
81
|
+
|
|
82
|
+
### Examples
|
|
83
|
+
|
|
84
|
+
```ruby
|
|
85
|
+
require 'time'
|
|
86
|
+
require 'songtradr_api_client_ruby'
|
|
87
|
+
|
|
88
|
+
api_instance = SongtradrApiClientRuby::AllowedValuesApi.new
|
|
89
|
+
genre_type = 'level1Genre' # String | Type of the response should have.
|
|
90
|
+
|
|
91
|
+
begin
|
|
92
|
+
# Allowed values for genres.
|
|
93
|
+
result = api_instance.genres(genre_type)
|
|
94
|
+
p result
|
|
95
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
|
96
|
+
puts "Error when calling AllowedValuesApi->genres: #{e}"
|
|
97
|
+
end
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
#### Using the genres_with_http_info variant
|
|
101
|
+
|
|
102
|
+
This returns an Array which contains the response data, status code and headers.
|
|
103
|
+
|
|
104
|
+
> <Array(<Array<GenreDTO>>, Integer, Hash)> genres_with_http_info(genre_type)
|
|
105
|
+
|
|
106
|
+
```ruby
|
|
107
|
+
begin
|
|
108
|
+
# Allowed values for genres.
|
|
109
|
+
data, status_code, headers = api_instance.genres_with_http_info(genre_type)
|
|
110
|
+
p status_code # => 2xx
|
|
111
|
+
p headers # => { ... }
|
|
112
|
+
p data # => <Array<GenreDTO>>
|
|
113
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
|
114
|
+
puts "Error when calling AllowedValuesApi->genres_with_http_info: #{e}"
|
|
115
|
+
end
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Parameters
|
|
119
|
+
|
|
120
|
+
| Name | Type | Description | Notes |
|
|
121
|
+
| ---- | ---- | ----------- | ----- |
|
|
122
|
+
| **genre_type** | **String** | Type of the response should have. | |
|
|
123
|
+
|
|
124
|
+
### Return type
|
|
125
|
+
|
|
126
|
+
[**Array<GenreDTO>**](GenreDTO.md)
|
|
127
|
+
|
|
128
|
+
### Authorization
|
|
129
|
+
|
|
130
|
+
No authorization required
|
|
131
|
+
|
|
132
|
+
### HTTP request headers
|
|
133
|
+
|
|
134
|
+
- **Content-Type**: Not defined
|
|
135
|
+
- **Accept**: application/json
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## tags
|
|
139
|
+
|
|
140
|
+
> <Array<CategoryMediumDTO>> tags(opts)
|
|
141
|
+
|
|
142
|
+
All descriptive tags inside of tag-categories.
|
|
143
|
+
|
|
144
|
+
### Examples
|
|
145
|
+
|
|
146
|
+
```ruby
|
|
147
|
+
require 'time'
|
|
148
|
+
require 'songtradr_api_client_ruby'
|
|
149
|
+
|
|
150
|
+
api_instance = SongtradrApiClientRuby::AllowedValuesApi.new
|
|
151
|
+
opts = {
|
|
152
|
+
category_name: 'mood' # String | Filters tags for one category only
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
begin
|
|
156
|
+
# All descriptive tags inside of tag-categories.
|
|
157
|
+
result = api_instance.tags(opts)
|
|
158
|
+
p result
|
|
159
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
|
160
|
+
puts "Error when calling AllowedValuesApi->tags: #{e}"
|
|
161
|
+
end
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
#### Using the tags_with_http_info variant
|
|
165
|
+
|
|
166
|
+
This returns an Array which contains the response data, status code and headers.
|
|
167
|
+
|
|
168
|
+
> <Array(<Array<CategoryMediumDTO>>, Integer, Hash)> tags_with_http_info(opts)
|
|
169
|
+
|
|
170
|
+
```ruby
|
|
171
|
+
begin
|
|
172
|
+
# All descriptive tags inside of tag-categories.
|
|
173
|
+
data, status_code, headers = api_instance.tags_with_http_info(opts)
|
|
174
|
+
p status_code # => 2xx
|
|
175
|
+
p headers # => { ... }
|
|
176
|
+
p data # => <Array<CategoryMediumDTO>>
|
|
177
|
+
rescue SongtradrApiClientRuby::ApiError => e
|
|
178
|
+
puts "Error when calling AllowedValuesApi->tags_with_http_info: #{e}"
|
|
179
|
+
end
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Parameters
|
|
183
|
+
|
|
184
|
+
| Name | Type | Description | Notes |
|
|
185
|
+
| ---- | ---- | ----------- | ----- |
|
|
186
|
+
| **category_name** | **String** | Filters tags for one category only | [optional] |
|
|
187
|
+
|
|
188
|
+
### Return type
|
|
189
|
+
|
|
190
|
+
[**Array<CategoryMediumDTO>**](CategoryMediumDTO.md)
|
|
191
|
+
|
|
192
|
+
### Authorization
|
|
193
|
+
|
|
194
|
+
No authorization required
|
|
195
|
+
|
|
196
|
+
### HTTP request headers
|
|
197
|
+
|
|
198
|
+
- **Content-Type**: Not defined
|
|
199
|
+
- **Accept**: application/json
|
|
200
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SongtradrApiClientRuby::CategoryMediumDTO
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **Integer** | | |
|
|
8
|
+
| **tags** | [**Array<TagSmallDTO>**](TagSmallDTO.md) | | [optional] |
|
|
9
|
+
| **name** | **String** | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'songtradr_api_client_ruby'
|
|
15
|
+
|
|
16
|
+
instance = SongtradrApiClientRuby::CategoryMediumDTO.new(
|
|
17
|
+
id: null,
|
|
18
|
+
tags: null,
|
|
19
|
+
name: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# SongtradrApiClientRuby::CategoryMinimalDTO
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **category_name** | **String** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'songtradr_api_client_ruby'
|
|
13
|
+
|
|
14
|
+
instance = SongtradrApiClientRuby::CategoryMinimalDTO.new(
|
|
15
|
+
category_name: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# SongtradrApiClientRuby::ConfigAccessDTO
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **accessor_id** | **String** | ID of the accessing entity | |
|
|
8
|
+
| **rights** | **String** | access rights to a resource | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'songtradr_api_client_ruby'
|
|
14
|
+
|
|
15
|
+
instance = SongtradrApiClientRuby::ConfigAccessDTO.new(
|
|
16
|
+
accessor_id: null,
|
|
17
|
+
rights: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# SongtradrApiClientRuby::ConfigIdentifierDTO
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **identifier_type** | **String** | | |
|
|
8
|
+
| **identifier_value** | **String** | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'songtradr_api_client_ruby'
|
|
14
|
+
|
|
15
|
+
instance = SongtradrApiClientRuby::ConfigIdentifierDTO.new(
|
|
16
|
+
identifier_type: null,
|
|
17
|
+
identifier_value: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# SongtradrApiClientRuby::ContributorTypeDTO
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **type_name** | **String** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'songtradr_api_client_ruby'
|
|
13
|
+
|
|
14
|
+
instance = SongtradrApiClientRuby::ContributorTypeDTO.new(
|
|
15
|
+
type_name: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# SongtradrApiClientRuby::ErrorResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **timestamp** | **Time** | timestamp | |
|
|
8
|
+
| **status** | **Integer** | HTTP Status code | |
|
|
9
|
+
| **error** | **String** | HTTP status message | |
|
|
10
|
+
| **message** | **String** | detailed error message | [optional] |
|
|
11
|
+
| **path** | **String** | path of the called API endpoint | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'songtradr_api_client_ruby'
|
|
17
|
+
|
|
18
|
+
instance = SongtradrApiClientRuby::ErrorResponse.new(
|
|
19
|
+
timestamp: null,
|
|
20
|
+
status: null,
|
|
21
|
+
error: null,
|
|
22
|
+
message: null,
|
|
23
|
+
path: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|