songtradr_api_client_ruby 1.13.4 → 1.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +45 -26
- 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 +11 -11
- 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/Label.md +28 -0
- data/docs/{CreateApiKeyDTO.md → LabelAlias.md} +2 -2
- 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 +45 -45
- 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 +2 -2
- data/docs/ProductPartyDTO.md +3 -3
- data/docs/RecordingGenrePredictionDTO.md +3 -3
- data/docs/RecordingLargeDTO.md +9 -9
- data/docs/RecordingMediumDTO.md +7 -7
- data/docs/RecordingPartyDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +3 -3
- data/docs/SaveFileRecordingDTO.md +5 -1
- data/docs/Smile.md +20 -0
- data/docs/Sunglasses.md +20 -0
- data/docs/TagDTO.md +3 -3
- data/docs/UserApi.md +140 -0
- data/docs/VideoRecognitionResponse.md +20 -0
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/party_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +78 -1
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/user_api.rb +137 -1
- data/lib/songtradr_api_client_ruby/api_client.rb +3 -2
- data/lib/songtradr_api_client_ruby/api_error.rb +1 -1
- data/lib/songtradr_api_client_ruby/configuration.rb +2 -1
- data/lib/songtradr_api_client_ruby/models/age_range.rb +223 -0
- 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 +1 -1
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/context_value.rb +216 -0
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +63 -63
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/gender.rb +223 -0
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +1 -1
- 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 +1 -1
- data/lib/songtradr_api_client_ruby/models/instance.rb +234 -0
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/label.rb +267 -0
- data/lib/songtradr_api_client_ruby/models/{create_api_key_dto.rb → label_alias.rb} +4 -4
- 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 +1 -1
- data/lib/songtradr_api_client_ruby/models/{api_key_dto.rb → mouth_open.rb} +17 -56
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +353 -353
- data/lib/songtradr_api_client_ruby/models/mustache.rb +223 -0
- data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/parent.rb +214 -0
- data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +22 -22
- data/lib/songtradr_api_client_ruby/models/pose.rb +232 -0
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +11 -11
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +16 -16
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +21 -21
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +51 -51
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +42 -42
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +16 -16
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +26 -26
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +23 -5
- data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +1 -1
- 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 +16 -16
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/token_request.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/track_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/usage_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/video_recognition_response.rb +227 -0
- data/lib/songtradr_api_client_ruby/version.rb +2 -2
- data/lib/songtradr_api_client_ruby.rb +31 -5
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +1 -1
- data/spec/api/allowed_values_api_spec.rb +1 -1
- data/spec/api/party_api_spec.rb +1 -1
- data/spec/api/playlist_api_spec.rb +13 -1
- data/spec/api/recording_api_spec.rb +1 -1
- data/spec/api/user_api_spec.rb +25 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/age_range_spec.rb +42 -0
- data/spec/models/beard_spec.rb +42 -0
- data/spec/models/{api_key_dto_spec.rb → bounding_box_spec.rb} +13 -11
- data/spec/models/category_medium_dto_spec.rb +4 -2
- data/spec/models/category_minimal_dto_spec.rb +4 -2
- data/spec/models/config_access_dto_spec.rb +4 -2
- data/spec/models/config_identifier_dto_spec.rb +4 -2
- data/spec/models/context_value_spec.rb +36 -0
- data/spec/models/contributor_type_dto_spec.rb +4 -2
- data/spec/{api/api_keys_api_spec.rb → models/curate_playlist_dto_spec.rb} +21 -31
- 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 +4 -2
- 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/{admin_api_user_dto_spec.rb → face_detail_spec.rb} +25 -83
- 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 +4 -2
- data/spec/models/file_dto_spec.rb +4 -2
- data/spec/models/file_list_dto_spec.rb +4 -2
- data/spec/models/file_minimal_with_url_dto_spec.rb +4 -2
- data/spec/models/file_small_dto_spec.rb +22 -20
- data/spec/models/file_upload_dto_spec.rb +4 -2
- data/spec/models/file_w_ith_url_dto_spec.rb +4 -2
- data/spec/models/files_summary_dto_spec.rb +4 -2
- data/spec/models/forgot_password_dto_spec.rb +4 -2
- data/spec/models/gender_spec.rb +42 -0
- data/spec/models/genre_dto_spec.rb +4 -2
- data/spec/models/genre_minimal_dto_spec.rb +4 -2
- data/spec/models/genres_summary_dto_spec.rb +4 -2
- 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 +4 -2
- data/spec/models/instance_spec.rb +48 -0
- data/spec/models/jwt_token_dto_spec.rb +4 -2
- 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 +4 -2
- data/spec/models/mouth_open_spec.rb +42 -0
- data/spec/models/musical_features_dto_spec.rb +145 -143
- data/spec/models/mustache_spec.rb +42 -0
- data/spec/models/p_line_dto_spec.rb +4 -2
- data/spec/models/{create_api_key_dto_spec.rb → parent_spec.rb} +9 -7
- data/spec/models/party_large_dto_spec.rb +4 -2
- data/spec/models/party_small_dto_spec.rb +4 -2
- data/spec/models/playlist_large_dto_spec.rb +8 -6
- data/spec/models/pose_spec.rb +48 -0
- data/spec/models/product_medium_dto_spec.rb +7 -5
- data/spec/models/product_party_dto_spec.rb +6 -4
- data/spec/models/recording_for_similarity_search_dto_spec.rb +4 -2
- data/spec/models/recording_genre_prediction_dto_spec.rb +7 -5
- data/spec/models/recording_large_dto_spec.rb +14 -12
- data/spec/models/recording_list_dto_spec.rb +4 -2
- data/spec/models/recording_medium_dto_spec.rb +13 -11
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +4 -2
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +4 -2
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +4 -2
- data/spec/models/recording_party_dto_spec.rb +6 -4
- data/spec/models/recording_playlist_dto_spec.rb +4 -2
- data/spec/models/recording_small_dto_spec.rb +6 -4
- data/spec/models/recording_tag_small_dto_spec.rb +4 -2
- data/spec/models/save_file_recording_dto_spec.rb +16 -2
- data/spec/models/save_playlist_dto_spec.rb +4 -2
- data/spec/models/save_recording_genre_dto_spec.rb +4 -2
- data/spec/models/save_recording_party_dto_spec.rb +4 -2
- data/spec/models/save_recording_playlist_dto_spec.rb +4 -2
- data/spec/models/save_recording_tag_dto_spec.rb +4 -2
- data/spec/models/save_referrer_dto_spec.rb +4 -2
- data/spec/models/save_taggrams_dto_spec.rb +4 -2
- data/spec/models/save_user_dto_spec.rb +4 -2
- data/spec/models/search_filter_values_dto_spec.rb +4 -2
- data/spec/models/search_recording_granular_abstraction_dto_spec.rb +4 -2
- data/spec/models/search_recording_granular_dto_spec.rb +4 -2
- data/spec/models/sign_up_dto_spec.rb +4 -2
- data/spec/models/smile_spec.rb +42 -0
- data/spec/models/sunglasses_spec.rb +42 -0
- data/spec/models/tag_dto_spec.rb +6 -4
- data/spec/models/tag_small_dto_spec.rb +4 -2
- data/spec/models/taggram_dto_spec.rb +4 -2
- data/spec/models/tags_summary_dto_spec.rb +4 -2
- data/spec/models/tagstrength_dto_spec.rb +4 -2
- data/spec/models/title_dto_spec.rb +4 -2
- data/spec/models/token_request_spec.rb +4 -2
- data/spec/models/track_dto_spec.rb +4 -2
- data/spec/models/track_to_medium_product_dto_spec.rb +4 -2
- data/spec/models/update_password_dto_spec.rb +4 -2
- data/spec/models/usage_dto_spec.rb +4 -2
- data/spec/models/user_dto_spec.rb +4 -2
- data/spec/models/video_recognition_response_spec.rb +42 -0
- data/spec/spec_helper.rb +1 -1
- metadata +177 -73
- data/docs/APIKeysApi.md +0 -217
- data/docs/AdminApiUserDTO.md +0 -70
- data/docs/ApiKeyDTO.md +0 -24
- data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +0 -213
- data/lib/songtradr_api_client_ruby/models/admin_api_user_dto.rb +0 -448
data/docs/APIKeysApi.md
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
# SongtradrApiClientRuby::APIKeysApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.songtradr.com*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**create_api_key**](APIKeysApi.md#create_api_key) | **POST** /api/v1/user/apiKeys | create an API key |
|
|
8
|
-
| [**delete_api_key**](APIKeysApi.md#delete_api_key) | **DELETE** /api/v1/user/apiKeys/{id} | delete an API key |
|
|
9
|
-
| [**get_api_keys**](APIKeysApi.md#get_api_keys) | **GET** /api/v1/user/apiKeys | list API keys |
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
## create_api_key
|
|
13
|
-
|
|
14
|
-
> <AdminApiUserDTO> create_api_key(create_api_key_dto)
|
|
15
|
-
|
|
16
|
-
create an API key
|
|
17
|
-
|
|
18
|
-
### Examples
|
|
19
|
-
|
|
20
|
-
```ruby
|
|
21
|
-
require 'time'
|
|
22
|
-
require 'songtradr_api_client_ruby'
|
|
23
|
-
# setup authorization
|
|
24
|
-
SongtradrApiClientRuby.configure do |config|
|
|
25
|
-
# Configure Bearer authorization (JWT): bearer-jwt
|
|
26
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
api_instance = SongtradrApiClientRuby::APIKeysApi.new
|
|
30
|
-
create_api_key_dto = SongtradrApiClientRuby::CreateApiKeyDTO.new # CreateApiKeyDTO |
|
|
31
|
-
|
|
32
|
-
begin
|
|
33
|
-
# create an API key
|
|
34
|
-
result = api_instance.create_api_key(create_api_key_dto)
|
|
35
|
-
p result
|
|
36
|
-
rescue SongtradrApiClientRuby::ApiError => e
|
|
37
|
-
puts "Error when calling APIKeysApi->create_api_key: #{e}"
|
|
38
|
-
end
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
#### Using the create_api_key_with_http_info variant
|
|
42
|
-
|
|
43
|
-
This returns an Array which contains the response data, status code and headers.
|
|
44
|
-
|
|
45
|
-
> <Array(<AdminApiUserDTO>, Integer, Hash)> create_api_key_with_http_info(create_api_key_dto)
|
|
46
|
-
|
|
47
|
-
```ruby
|
|
48
|
-
begin
|
|
49
|
-
# create an API key
|
|
50
|
-
data, status_code, headers = api_instance.create_api_key_with_http_info(create_api_key_dto)
|
|
51
|
-
p status_code # => 2xx
|
|
52
|
-
p headers # => { ... }
|
|
53
|
-
p data # => <AdminApiUserDTO>
|
|
54
|
-
rescue SongtradrApiClientRuby::ApiError => e
|
|
55
|
-
puts "Error when calling APIKeysApi->create_api_key_with_http_info: #{e}"
|
|
56
|
-
end
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Parameters
|
|
60
|
-
|
|
61
|
-
| Name | Type | Description | Notes |
|
|
62
|
-
| ---- | ---- | ----------- | ----- |
|
|
63
|
-
| **create_api_key_dto** | [**CreateApiKeyDTO**](CreateApiKeyDTO.md) | | |
|
|
64
|
-
|
|
65
|
-
### Return type
|
|
66
|
-
|
|
67
|
-
[**AdminApiUserDTO**](AdminApiUserDTO.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
|
-
|
|
78
|
-
|
|
79
|
-
## delete_api_key
|
|
80
|
-
|
|
81
|
-
> Object delete_api_key(id)
|
|
82
|
-
|
|
83
|
-
delete an API key
|
|
84
|
-
|
|
85
|
-
### Examples
|
|
86
|
-
|
|
87
|
-
```ruby
|
|
88
|
-
require 'time'
|
|
89
|
-
require 'songtradr_api_client_ruby'
|
|
90
|
-
# setup authorization
|
|
91
|
-
SongtradrApiClientRuby.configure do |config|
|
|
92
|
-
# Configure Bearer authorization (JWT): bearer-jwt
|
|
93
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
api_instance = SongtradrApiClientRuby::APIKeysApi.new
|
|
97
|
-
id = 'id_example' # String |
|
|
98
|
-
|
|
99
|
-
begin
|
|
100
|
-
# delete an API key
|
|
101
|
-
result = api_instance.delete_api_key(id)
|
|
102
|
-
p result
|
|
103
|
-
rescue SongtradrApiClientRuby::ApiError => e
|
|
104
|
-
puts "Error when calling APIKeysApi->delete_api_key: #{e}"
|
|
105
|
-
end
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
#### Using the delete_api_key_with_http_info variant
|
|
109
|
-
|
|
110
|
-
This returns an Array which contains the response data, status code and headers.
|
|
111
|
-
|
|
112
|
-
> <Array(Object, Integer, Hash)> delete_api_key_with_http_info(id)
|
|
113
|
-
|
|
114
|
-
```ruby
|
|
115
|
-
begin
|
|
116
|
-
# delete an API key
|
|
117
|
-
data, status_code, headers = api_instance.delete_api_key_with_http_info(id)
|
|
118
|
-
p status_code # => 2xx
|
|
119
|
-
p headers # => { ... }
|
|
120
|
-
p data # => Object
|
|
121
|
-
rescue SongtradrApiClientRuby::ApiError => e
|
|
122
|
-
puts "Error when calling APIKeysApi->delete_api_key_with_http_info: #{e}"
|
|
123
|
-
end
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Parameters
|
|
127
|
-
|
|
128
|
-
| Name | Type | Description | Notes |
|
|
129
|
-
| ---- | ---- | ----------- | ----- |
|
|
130
|
-
| **id** | **String** | | |
|
|
131
|
-
|
|
132
|
-
### Return type
|
|
133
|
-
|
|
134
|
-
**Object**
|
|
135
|
-
|
|
136
|
-
### Authorization
|
|
137
|
-
|
|
138
|
-
[bearer-jwt](../README.md#bearer-jwt)
|
|
139
|
-
|
|
140
|
-
### HTTP request headers
|
|
141
|
-
|
|
142
|
-
- **Content-Type**: Not defined
|
|
143
|
-
- **Accept**: application/json
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
## get_api_keys
|
|
147
|
-
|
|
148
|
-
> <Array<ApiKeyDTO>> get_api_keys(opts)
|
|
149
|
-
|
|
150
|
-
list API keys
|
|
151
|
-
|
|
152
|
-
### Examples
|
|
153
|
-
|
|
154
|
-
```ruby
|
|
155
|
-
require 'time'
|
|
156
|
-
require 'songtradr_api_client_ruby'
|
|
157
|
-
# setup authorization
|
|
158
|
-
SongtradrApiClientRuby.configure do |config|
|
|
159
|
-
# Configure Bearer authorization (JWT): bearer-jwt
|
|
160
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
api_instance = SongtradrApiClientRuby::APIKeysApi.new
|
|
164
|
-
opts = {
|
|
165
|
-
page: 56, # Integer | Zero-based page index (0..N)
|
|
166
|
-
size: 56, # Integer | The size of the page to be returned
|
|
167
|
-
sort: ['inner_example'] # Array<String> | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
begin
|
|
171
|
-
# list API keys
|
|
172
|
-
result = api_instance.get_api_keys(opts)
|
|
173
|
-
p result
|
|
174
|
-
rescue SongtradrApiClientRuby::ApiError => e
|
|
175
|
-
puts "Error when calling APIKeysApi->get_api_keys: #{e}"
|
|
176
|
-
end
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
#### Using the get_api_keys_with_http_info variant
|
|
180
|
-
|
|
181
|
-
This returns an Array which contains the response data, status code and headers.
|
|
182
|
-
|
|
183
|
-
> <Array(<Array<ApiKeyDTO>>, Integer, Hash)> get_api_keys_with_http_info(opts)
|
|
184
|
-
|
|
185
|
-
```ruby
|
|
186
|
-
begin
|
|
187
|
-
# list API keys
|
|
188
|
-
data, status_code, headers = api_instance.get_api_keys_with_http_info(opts)
|
|
189
|
-
p status_code # => 2xx
|
|
190
|
-
p headers # => { ... }
|
|
191
|
-
p data # => <Array<ApiKeyDTO>>
|
|
192
|
-
rescue SongtradrApiClientRuby::ApiError => e
|
|
193
|
-
puts "Error when calling APIKeysApi->get_api_keys_with_http_info: #{e}"
|
|
194
|
-
end
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
### Parameters
|
|
198
|
-
|
|
199
|
-
| Name | Type | Description | Notes |
|
|
200
|
-
| ---- | ---- | ----------- | ----- |
|
|
201
|
-
| **page** | **Integer** | Zero-based page index (0..N) | [optional][default to 0] |
|
|
202
|
-
| **size** | **Integer** | The size of the page to be returned | [optional][default to 20] |
|
|
203
|
-
| **sort** | [**Array<String>**](String.md) | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [optional] |
|
|
204
|
-
|
|
205
|
-
### Return type
|
|
206
|
-
|
|
207
|
-
[**Array<ApiKeyDTO>**](ApiKeyDTO.md)
|
|
208
|
-
|
|
209
|
-
### Authorization
|
|
210
|
-
|
|
211
|
-
[bearer-jwt](../README.md#bearer-jwt)
|
|
212
|
-
|
|
213
|
-
### HTTP request headers
|
|
214
|
-
|
|
215
|
-
- **Content-Type**: Not defined
|
|
216
|
-
- **Accept**: application/json
|
|
217
|
-
|
data/docs/AdminApiUserDTO.md
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# SongtradrApiClientRuby::AdminApiUserDTO
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **Integer** | | [optional] |
|
|
8
|
-
| **username** | **String** | | [optional] |
|
|
9
|
-
| **email** | **String** | | [optional] |
|
|
10
|
-
| **full_name** | **String** | | [optional] |
|
|
11
|
-
| **language** | **String** | | [optional] |
|
|
12
|
-
| **is_admin** | **Boolean** | | [optional] |
|
|
13
|
-
| **widgets_allowed** | **Boolean** | | [optional] |
|
|
14
|
-
| **full_search_allowed** | **Boolean** | | [optional] |
|
|
15
|
-
| **voice_search_allowed** | **Boolean** | | [optional] |
|
|
16
|
-
| **recording_detail_allowed** | **Boolean** | | [optional] |
|
|
17
|
-
| **artist_detail_allowed** | **Boolean** | | [optional] |
|
|
18
|
-
| **playlist_prediction_allowed** | **Boolean** | | [optional] |
|
|
19
|
-
| **signup_allowed** | **Boolean** | | [optional] |
|
|
20
|
-
| **upload_allowed** | **Boolean** | | [optional] |
|
|
21
|
-
| **fingerprint_allowed** | **Boolean** | | [optional] |
|
|
22
|
-
| **audiotagging_allowed** | **Boolean** | | [optional] |
|
|
23
|
-
| **b2b_allowed** | **Boolean** | | [optional] |
|
|
24
|
-
| **editor_allowed** | **Boolean** | | [optional] |
|
|
25
|
-
| **reduced_musical_features** | **Boolean** | | [optional] |
|
|
26
|
-
| **confirmed** | **Boolean** | | [optional] |
|
|
27
|
-
| **gdpr_confirmation_timestamp** | **Time** | | [optional] |
|
|
28
|
-
| **last_login** | **Time** | | [optional] |
|
|
29
|
-
| **total_logins** | **Integer** | | [optional] |
|
|
30
|
-
| **total_searches** | **Integer** | | [optional] |
|
|
31
|
-
| **total_uploads** | **Integer** | | [optional] |
|
|
32
|
-
| **total_downloads** | **Integer** | | [optional] |
|
|
33
|
-
| **total_updates** | **Integer** | | [optional] |
|
|
34
|
-
|
|
35
|
-
## Example
|
|
36
|
-
|
|
37
|
-
```ruby
|
|
38
|
-
require 'songtradr_api_client_ruby'
|
|
39
|
-
|
|
40
|
-
instance = SongtradrApiClientRuby::AdminApiUserDTO.new(
|
|
41
|
-
id: null,
|
|
42
|
-
username: null,
|
|
43
|
-
email: null,
|
|
44
|
-
full_name: null,
|
|
45
|
-
language: null,
|
|
46
|
-
is_admin: null,
|
|
47
|
-
widgets_allowed: null,
|
|
48
|
-
full_search_allowed: null,
|
|
49
|
-
voice_search_allowed: null,
|
|
50
|
-
recording_detail_allowed: null,
|
|
51
|
-
artist_detail_allowed: null,
|
|
52
|
-
playlist_prediction_allowed: null,
|
|
53
|
-
signup_allowed: null,
|
|
54
|
-
upload_allowed: null,
|
|
55
|
-
fingerprint_allowed: null,
|
|
56
|
-
audiotagging_allowed: null,
|
|
57
|
-
b2b_allowed: null,
|
|
58
|
-
editor_allowed: null,
|
|
59
|
-
reduced_musical_features: null,
|
|
60
|
-
confirmed: null,
|
|
61
|
-
gdpr_confirmation_timestamp: null,
|
|
62
|
-
last_login: null,
|
|
63
|
-
total_logins: null,
|
|
64
|
-
total_searches: null,
|
|
65
|
-
total_uploads: null,
|
|
66
|
-
total_downloads: null,
|
|
67
|
-
total_updates: null
|
|
68
|
-
)
|
|
69
|
-
```
|
|
70
|
-
|
data/docs/ApiKeyDTO.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# SongtradrApiClientRuby::ApiKeyDTO
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **name** | **String** | | |
|
|
8
|
-
| **id** | **String** | | |
|
|
9
|
-
| **last_used_at** | **Time** | | [optional] |
|
|
10
|
-
| **created_at** | **Time** | | |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'songtradr_api_client_ruby'
|
|
16
|
-
|
|
17
|
-
instance = SongtradrApiClientRuby::ApiKeyDTO.new(
|
|
18
|
-
name: null,
|
|
19
|
-
id: null,
|
|
20
|
-
last_used_at: null,
|
|
21
|
-
created_at: null
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|
|
@@ -1,213 +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.13.4
|
|
7
|
-
Contact: info@songtradr.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'cgi'
|
|
14
|
-
|
|
15
|
-
module SongtradrApiClientRuby
|
|
16
|
-
class APIKeysApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client = ApiClient.default)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
# create an API key
|
|
23
|
-
# @param create_api_key_dto [CreateApiKeyDTO]
|
|
24
|
-
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @return [AdminApiUserDTO]
|
|
26
|
-
def create_api_key(create_api_key_dto, opts = {})
|
|
27
|
-
data, _status_code, _headers = create_api_key_with_http_info(create_api_key_dto, opts)
|
|
28
|
-
data
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
# create an API key
|
|
32
|
-
# @param create_api_key_dto [CreateApiKeyDTO]
|
|
33
|
-
# @param [Hash] opts the optional parameters
|
|
34
|
-
# @return [Array<(AdminApiUserDTO, Integer, Hash)>] AdminApiUserDTO data, response status code and response headers
|
|
35
|
-
def create_api_key_with_http_info(create_api_key_dto, opts = {})
|
|
36
|
-
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: APIKeysApi.create_api_key ...'
|
|
38
|
-
end
|
|
39
|
-
# verify the required parameter 'create_api_key_dto' is set
|
|
40
|
-
if @api_client.config.client_side_validation && create_api_key_dto.nil?
|
|
41
|
-
fail ArgumentError, "Missing the required parameter 'create_api_key_dto' when calling APIKeysApi.create_api_key"
|
|
42
|
-
end
|
|
43
|
-
# resource path
|
|
44
|
-
local_var_path = '/api/v1/user/apiKeys'
|
|
45
|
-
|
|
46
|
-
# query parameters
|
|
47
|
-
query_params = opts[:query_params] || {}
|
|
48
|
-
|
|
49
|
-
# header parameters
|
|
50
|
-
header_params = opts[:header_params] || {}
|
|
51
|
-
# HTTP header 'Accept' (if needed)
|
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
53
|
-
# HTTP header 'Content-Type'
|
|
54
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
55
|
-
if !content_type.nil?
|
|
56
|
-
header_params['Content-Type'] = content_type
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
# form parameters
|
|
60
|
-
form_params = opts[:form_params] || {}
|
|
61
|
-
|
|
62
|
-
# http body (model)
|
|
63
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_api_key_dto)
|
|
64
|
-
|
|
65
|
-
# return_type
|
|
66
|
-
return_type = opts[:debug_return_type] || 'AdminApiUserDTO'
|
|
67
|
-
|
|
68
|
-
# auth_names
|
|
69
|
-
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
|
70
|
-
|
|
71
|
-
new_options = opts.merge(
|
|
72
|
-
:operation => :"APIKeysApi.create_api_key",
|
|
73
|
-
:header_params => header_params,
|
|
74
|
-
:query_params => query_params,
|
|
75
|
-
:form_params => form_params,
|
|
76
|
-
:body => post_body,
|
|
77
|
-
:auth_names => auth_names,
|
|
78
|
-
:return_type => return_type
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
82
|
-
if @api_client.config.debugging
|
|
83
|
-
@api_client.config.logger.debug "API called: APIKeysApi#create_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
-
end
|
|
85
|
-
return data, status_code, headers
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# delete an API key
|
|
89
|
-
# @param id [String]
|
|
90
|
-
# @param [Hash] opts the optional parameters
|
|
91
|
-
# @return [Object]
|
|
92
|
-
def delete_api_key(id, opts = {})
|
|
93
|
-
data, _status_code, _headers = delete_api_key_with_http_info(id, opts)
|
|
94
|
-
data
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
# delete an API key
|
|
98
|
-
# @param id [String]
|
|
99
|
-
# @param [Hash] opts the optional parameters
|
|
100
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
101
|
-
def delete_api_key_with_http_info(id, opts = {})
|
|
102
|
-
if @api_client.config.debugging
|
|
103
|
-
@api_client.config.logger.debug 'Calling API: APIKeysApi.delete_api_key ...'
|
|
104
|
-
end
|
|
105
|
-
# verify the required parameter 'id' is set
|
|
106
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
107
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling APIKeysApi.delete_api_key"
|
|
108
|
-
end
|
|
109
|
-
# resource path
|
|
110
|
-
local_var_path = '/api/v1/user/apiKeys/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
111
|
-
|
|
112
|
-
# query parameters
|
|
113
|
-
query_params = opts[:query_params] || {}
|
|
114
|
-
|
|
115
|
-
# header parameters
|
|
116
|
-
header_params = opts[:header_params] || {}
|
|
117
|
-
# HTTP header 'Accept' (if needed)
|
|
118
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
119
|
-
|
|
120
|
-
# form parameters
|
|
121
|
-
form_params = opts[:form_params] || {}
|
|
122
|
-
|
|
123
|
-
# http body (model)
|
|
124
|
-
post_body = opts[:debug_body]
|
|
125
|
-
|
|
126
|
-
# return_type
|
|
127
|
-
return_type = opts[:debug_return_type] || 'Object'
|
|
128
|
-
|
|
129
|
-
# auth_names
|
|
130
|
-
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
|
131
|
-
|
|
132
|
-
new_options = opts.merge(
|
|
133
|
-
:operation => :"APIKeysApi.delete_api_key",
|
|
134
|
-
:header_params => header_params,
|
|
135
|
-
:query_params => query_params,
|
|
136
|
-
:form_params => form_params,
|
|
137
|
-
:body => post_body,
|
|
138
|
-
:auth_names => auth_names,
|
|
139
|
-
:return_type => return_type
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
143
|
-
if @api_client.config.debugging
|
|
144
|
-
@api_client.config.logger.debug "API called: APIKeysApi#delete_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
145
|
-
end
|
|
146
|
-
return data, status_code, headers
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
# list API keys
|
|
150
|
-
# @param [Hash] opts the optional parameters
|
|
151
|
-
# @option opts [Integer] :page Zero-based page index (0..N) (default to 0)
|
|
152
|
-
# @option opts [Integer] :size The size of the page to be returned (default to 20)
|
|
153
|
-
# @option opts [Array<String>] :sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
154
|
-
# @return [Array<ApiKeyDTO>]
|
|
155
|
-
def get_api_keys(opts = {})
|
|
156
|
-
data, _status_code, _headers = get_api_keys_with_http_info(opts)
|
|
157
|
-
data
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
# list API keys
|
|
161
|
-
# @param [Hash] opts the optional parameters
|
|
162
|
-
# @option opts [Integer] :page Zero-based page index (0..N) (default to 0)
|
|
163
|
-
# @option opts [Integer] :size The size of the page to be returned (default to 20)
|
|
164
|
-
# @option opts [Array<String>] :sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
165
|
-
# @return [Array<(Array<ApiKeyDTO>, Integer, Hash)>] Array<ApiKeyDTO> data, response status code and response headers
|
|
166
|
-
def get_api_keys_with_http_info(opts = {})
|
|
167
|
-
if @api_client.config.debugging
|
|
168
|
-
@api_client.config.logger.debug 'Calling API: APIKeysApi.get_api_keys ...'
|
|
169
|
-
end
|
|
170
|
-
# resource path
|
|
171
|
-
local_var_path = '/api/v1/user/apiKeys'
|
|
172
|
-
|
|
173
|
-
# query parameters
|
|
174
|
-
query_params = opts[:query_params] || {}
|
|
175
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
176
|
-
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
177
|
-
query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
|
|
178
|
-
|
|
179
|
-
# header parameters
|
|
180
|
-
header_params = opts[:header_params] || {}
|
|
181
|
-
# HTTP header 'Accept' (if needed)
|
|
182
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
183
|
-
|
|
184
|
-
# form parameters
|
|
185
|
-
form_params = opts[:form_params] || {}
|
|
186
|
-
|
|
187
|
-
# http body (model)
|
|
188
|
-
post_body = opts[:debug_body]
|
|
189
|
-
|
|
190
|
-
# return_type
|
|
191
|
-
return_type = opts[:debug_return_type] || 'Array<ApiKeyDTO>'
|
|
192
|
-
|
|
193
|
-
# auth_names
|
|
194
|
-
auth_names = opts[:debug_auth_names] || ['bearer-jwt']
|
|
195
|
-
|
|
196
|
-
new_options = opts.merge(
|
|
197
|
-
:operation => :"APIKeysApi.get_api_keys",
|
|
198
|
-
:header_params => header_params,
|
|
199
|
-
:query_params => query_params,
|
|
200
|
-
:form_params => form_params,
|
|
201
|
-
:body => post_body,
|
|
202
|
-
:auth_names => auth_names,
|
|
203
|
-
:return_type => return_type
|
|
204
|
-
)
|
|
205
|
-
|
|
206
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
207
|
-
if @api_client.config.debugging
|
|
208
|
-
@api_client.config.logger.debug "API called: APIKeysApi#get_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
209
|
-
end
|
|
210
|
-
return data, status_code, headers
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
|
-
end
|