songtradr_api_client_ruby 1.13.7 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +5 -37
  4. data/docs/FileSmallDTO.md +2 -2
  5. data/docs/MusicalFeaturesDTO.md +25 -25
  6. data/docs/PlaylistApi.md +0 -214
  7. data/docs/RecordingApi.md +2 -204
  8. data/docs/RecordingGenrePredictionDTO.md +3 -3
  9. data/docs/RecordingMediumDTO.md +2 -2
  10. data/docs/RecordingPartyDTO.md +3 -3
  11. data/docs/UserApi.md +8 -456
  12. data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +2 -2
  13. data/lib/songtradr_api_client_ruby/api/playlist_api.rb +2 -202
  14. data/lib/songtradr_api_client_ruby/api/recording_api.rb +6 -191
  15. data/lib/songtradr_api_client_ruby/api/user_api.rb +161 -749
  16. data/lib/songtradr_api_client_ruby/api_client.rb +38 -36
  17. data/lib/songtradr_api_client_ruby/api_error.rb +2 -2
  18. data/lib/songtradr_api_client_ruby/configuration.rb +2 -2
  19. data/lib/songtradr_api_client_ruby/models/age_range.rb +3 -3
  20. data/lib/songtradr_api_client_ruby/models/beard.rb +3 -3
  21. data/lib/songtradr_api_client_ruby/models/bounding_box.rb +3 -3
  22. data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +3 -3
  23. data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +3 -3
  24. data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +3 -3
  25. data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +3 -3
  26. data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +3 -3
  27. data/lib/songtradr_api_client_ruby/models/curate_playlist_dto.rb +3 -3
  28. data/lib/songtradr_api_client_ruby/models/curate_playlist_response_dto.rb +3 -3
  29. data/lib/songtradr_api_client_ruby/models/dominant_color.rb +3 -3
  30. data/lib/songtradr_api_client_ruby/models/emotion.rb +3 -3
  31. data/lib/songtradr_api_client_ruby/models/error_response.rb +3 -3
  32. data/lib/songtradr_api_client_ruby/models/eye_direction.rb +3 -3
  33. data/lib/songtradr_api_client_ruby/models/eye_open.rb +3 -3
  34. data/lib/songtradr_api_client_ruby/models/eyeglasses.rb +3 -3
  35. data/lib/songtradr_api_client_ruby/models/face_detail.rb +3 -3
  36. data/lib/songtradr_api_client_ruby/models/face_detection.rb +3 -3
  37. data/lib/songtradr_api_client_ruby/models/face_occluded.rb +3 -3
  38. data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +3 -3
  39. data/lib/songtradr_api_client_ruby/models/file_dto.rb +3 -3
  40. data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +3 -3
  41. data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +15 -15
  42. data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +3 -3
  43. data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +3 -3
  44. data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +3 -3
  45. data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +3 -3
  46. data/lib/songtradr_api_client_ruby/models/gender.rb +3 -3
  47. data/lib/songtradr_api_client_ruby/models/genre_dto.rb +3 -3
  48. data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +3 -3
  49. data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +3 -3
  50. data/lib/songtradr_api_client_ruby/models/image_quality.rb +3 -3
  51. data/lib/songtradr_api_client_ruby/models/image_recognition_response.rb +3 -3
  52. data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +3 -3
  53. data/lib/songtradr_api_client_ruby/models/instance.rb +3 -3
  54. data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +3 -3
  55. data/lib/songtradr_api_client_ruby/models/label.rb +3 -3
  56. data/lib/songtradr_api_client_ruby/models/label_alias.rb +3 -3
  57. data/lib/songtradr_api_client_ruby/models/label_category.rb +3 -3
  58. data/lib/songtradr_api_client_ruby/models/label_detection.rb +3 -3
  59. data/lib/songtradr_api_client_ruby/models/landmark.rb +3 -3
  60. data/lib/songtradr_api_client_ruby/models/login_dto.rb +3 -3
  61. data/lib/songtradr_api_client_ruby/models/mouth_open.rb +3 -3
  62. data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +270 -270
  63. data/lib/songtradr_api_client_ruby/models/mustache.rb +3 -3
  64. data/lib/songtradr_api_client_ruby/models/parent.rb +3 -3
  65. data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +3 -3
  66. data/lib/songtradr_api_client_ruby/models/pose.rb +3 -3
  67. data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +3 -3
  68. data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +23 -23
  69. data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +3 -3
  70. data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +13 -13
  71. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +3 -3
  72. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +3 -3
  73. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +3 -3
  74. data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +18 -18
  75. data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +3 -3
  76. data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +3 -3
  77. data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +3 -3
  78. data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +3 -3
  79. data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +3 -3
  80. data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +3 -3
  81. data/lib/songtradr_api_client_ruby/models/smile.rb +3 -3
  82. data/lib/songtradr_api_client_ruby/models/sunglasses.rb +3 -3
  83. data/lib/songtradr_api_client_ruby/models/tag_dto.rb +3 -3
  84. data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +3 -3
  85. data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +3 -3
  86. data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +3 -3
  87. data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +3 -3
  88. data/lib/songtradr_api_client_ruby/models/title_dto.rb +3 -3
  89. data/lib/songtradr_api_client_ruby/models/token_request.rb +3 -3
  90. data/lib/songtradr_api_client_ruby/models/track_dto.rb +3 -3
  91. data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +3 -3
  92. data/lib/songtradr_api_client_ruby/models/user_dto.rb +3 -3
  93. data/lib/songtradr_api_client_ruby/models/video_recognition_response.rb +3 -3
  94. data/lib/songtradr_api_client_ruby/version.rb +3 -3
  95. data/lib/songtradr_api_client_ruby.rb +2 -23
  96. data/openapi-generator-config.yaml +1 -1
  97. data/songtradr_api_client_ruby.gemspec +3 -2
  98. data/spec/api/allowed_values_api_spec.rb +2 -2
  99. data/spec/api/playlist_api_spec.rb +2 -39
  100. data/spec/api/recording_api_spec.rb +3 -35
  101. data/spec/api/user_api_spec.rb +6 -111
  102. data/spec/api_client_spec.rb +2 -2
  103. data/spec/configuration_spec.rb +2 -2
  104. data/spec/models/age_range_spec.rb +2 -2
  105. data/spec/models/beard_spec.rb +2 -2
  106. data/spec/models/bounding_box_spec.rb +2 -2
  107. data/spec/models/category_medium_dto_spec.rb +2 -2
  108. data/spec/models/category_minimal_dto_spec.rb +2 -2
  109. data/spec/models/config_access_dto_spec.rb +2 -2
  110. data/spec/models/config_identifier_dto_spec.rb +2 -2
  111. data/spec/models/contributor_type_dto_spec.rb +2 -2
  112. data/spec/models/curate_playlist_dto_spec.rb +2 -2
  113. data/spec/models/curate_playlist_response_dto_spec.rb +2 -2
  114. data/spec/models/dominant_color_spec.rb +2 -2
  115. data/spec/models/emotion_spec.rb +2 -2
  116. data/spec/models/error_response_spec.rb +2 -2
  117. data/spec/models/eye_direction_spec.rb +2 -2
  118. data/spec/models/eye_open_spec.rb +2 -2
  119. data/spec/models/eyeglasses_spec.rb +2 -2
  120. data/spec/models/face_detail_spec.rb +2 -2
  121. data/spec/models/face_detection_spec.rb +2 -2
  122. data/spec/models/face_occluded_spec.rb +2 -2
  123. data/spec/models/field_summary_dto_spec.rb +2 -2
  124. data/spec/models/file_dto_spec.rb +2 -2
  125. data/spec/models/file_list_dto_spec.rb +2 -2
  126. data/spec/models/file_small_dto_spec.rb +5 -5
  127. data/spec/models/file_upload_dto_spec.rb +2 -2
  128. data/spec/models/file_w_ith_url_dto_spec.rb +2 -2
  129. data/spec/models/files_summary_dto_spec.rb +2 -2
  130. data/spec/models/forgot_password_dto_spec.rb +2 -2
  131. data/spec/models/gender_spec.rb +2 -2
  132. data/spec/models/genre_dto_spec.rb +2 -2
  133. data/spec/models/genre_minimal_dto_spec.rb +2 -2
  134. data/spec/models/genres_summary_dto_spec.rb +2 -2
  135. data/spec/models/image_quality_spec.rb +2 -2
  136. data/spec/models/image_recognition_response_spec.rb +2 -2
  137. data/spec/models/init_put_recording_audio_dto_spec.rb +2 -2
  138. data/spec/models/instance_spec.rb +2 -2
  139. data/spec/models/jwt_token_dto_spec.rb +2 -2
  140. data/spec/models/label_alias_spec.rb +2 -2
  141. data/spec/models/label_category_spec.rb +2 -2
  142. data/spec/models/label_detection_spec.rb +2 -2
  143. data/spec/models/label_spec.rb +2 -2
  144. data/spec/models/landmark_spec.rb +2 -2
  145. data/spec/models/login_dto_spec.rb +2 -2
  146. data/spec/models/mouth_open_spec.rb +2 -2
  147. data/spec/models/musical_features_dto_spec.rb +81 -81
  148. data/spec/models/mustache_spec.rb +2 -2
  149. data/spec/models/parent_spec.rb +2 -2
  150. data/spec/models/party_small_dto_spec.rb +2 -2
  151. data/spec/models/pose_spec.rb +2 -2
  152. data/spec/models/recording_for_similarity_search_dto_spec.rb +2 -2
  153. data/spec/models/recording_genre_prediction_dto_spec.rb +5 -5
  154. data/spec/models/recording_list_dto_spec.rb +2 -2
  155. data/spec/models/recording_medium_dto_spec.rb +4 -4
  156. data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +2 -2
  157. data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +2 -2
  158. data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +2 -2
  159. data/spec/models/recording_party_dto_spec.rb +4 -4
  160. data/spec/models/recording_small_dto_spec.rb +2 -2
  161. data/spec/models/recording_tag_small_dto_spec.rb +2 -2
  162. data/spec/models/save_user_dto_spec.rb +2 -2
  163. data/spec/models/search_filter_values_dto_spec.rb +2 -2
  164. data/spec/models/search_recording_granular_dto_spec.rb +2 -2
  165. data/spec/models/sign_up_dto_spec.rb +2 -2
  166. data/spec/models/smile_spec.rb +2 -2
  167. data/spec/models/sunglasses_spec.rb +2 -2
  168. data/spec/models/tag_dto_spec.rb +2 -2
  169. data/spec/models/tag_small_dto_spec.rb +2 -2
  170. data/spec/models/taggram_dto_spec.rb +2 -2
  171. data/spec/models/tags_summary_dto_spec.rb +2 -2
  172. data/spec/models/tagstrength_dto_spec.rb +2 -2
  173. data/spec/models/title_dto_spec.rb +2 -2
  174. data/spec/models/token_request_spec.rb +2 -2
  175. data/spec/models/track_dto_spec.rb +2 -2
  176. data/spec/models/update_password_dto_spec.rb +2 -2
  177. data/spec/models/user_dto_spec.rb +2 -2
  178. data/spec/models/video_recognition_response_spec.rb +2 -2
  179. data/spec/spec_helper.rb +2 -2
  180. metadata +65 -149
  181. data/docs/ContextValue.md +0 -18
  182. data/docs/FileMinimalWithUrlDTO.md +0 -22
  183. data/docs/PLineDTO.md +0 -20
  184. data/docs/PartyApi.md +0 -75
  185. data/docs/PartyLargeDTO.md +0 -32
  186. data/docs/PlaylistLargeDTO.md +0 -38
  187. data/docs/ProductMediumDTO.md +0 -34
  188. data/docs/ProductPartyDTO.md +0 -20
  189. data/docs/RecordingLargeDTO.md +0 -40
  190. data/docs/RecordingPlaylistDTO.md +0 -24
  191. data/docs/SaveFileRecordingDTO.md +0 -240
  192. data/docs/SavePlaylistDTO.md +0 -34
  193. data/docs/SaveRecordingGenreDTO.md +0 -22
  194. data/docs/SaveRecordingPartyDTO.md +0 -20
  195. data/docs/SaveRecordingPlaylistDTO.md +0 -22
  196. data/docs/SaveRecordingTagDTO.md +0 -20
  197. data/docs/SaveReferrerDTO.md +0 -20
  198. data/docs/SaveTaggramsDTO.md +0 -82
  199. data/docs/SearchRecordingGranularAbstractionDTO.md +0 -20
  200. data/docs/TrackToMediumProductDTO.md +0 -22
  201. data/docs/UsageDTO.md +0 -18
  202. data/lib/songtradr_api_client_ruby/api/party_api.rb +0 -84
  203. data/lib/songtradr_api_client_ruby/models/context_value.rb +0 -216
  204. data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +0 -254
  205. data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +0 -231
  206. data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +0 -285
  207. data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +0 -350
  208. data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +0 -323
  209. data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +0 -233
  210. data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +0 -383
  211. data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +0 -242
  212. data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +0 -1864
  213. data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +0 -353
  214. data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +0 -240
  215. data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +0 -272
  216. data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +0 -247
  217. data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +0 -231
  218. data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +0 -224
  219. data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +0 -569
  220. data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +0 -267
  221. data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +0 -247
  222. data/lib/songtradr_api_client_ruby/models/usage_dto.rb +0 -215
  223. data/spec/api/party_api_spec.rb +0 -46
  224. data/spec/models/context_value_spec.rb +0 -36
  225. data/spec/models/file_minimal_with_url_dto_spec.rb +0 -48
  226. data/spec/models/p_line_dto_spec.rb +0 -42
  227. data/spec/models/party_large_dto_spec.rb +0 -78
  228. data/spec/models/playlist_large_dto_spec.rb +0 -100
  229. data/spec/models/product_medium_dto_spec.rb +0 -84
  230. data/spec/models/product_party_dto_spec.rb +0 -42
  231. data/spec/models/recording_large_dto_spec.rb +0 -102
  232. data/spec/models/recording_playlist_dto_spec.rb +0 -54
  233. data/spec/models/save_file_recording_dto_spec.rb +0 -894
  234. data/spec/models/save_playlist_dto_spec.rb +0 -88
  235. data/spec/models/save_recording_genre_dto_spec.rb +0 -48
  236. data/spec/models/save_recording_party_dto_spec.rb +0 -46
  237. data/spec/models/save_recording_playlist_dto_spec.rb +0 -48
  238. data/spec/models/save_recording_tag_dto_spec.rb +0 -42
  239. data/spec/models/save_referrer_dto_spec.rb +0 -42
  240. data/spec/models/save_taggrams_dto_spec.rb +0 -228
  241. data/spec/models/search_recording_granular_abstraction_dto_spec.rb +0 -46
  242. data/spec/models/track_to_medium_product_dto_spec.rb +0 -48
  243. data/spec/models/usage_dto_spec.rb +0 -36
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
5
5
 
6
- The version of the OpenAPI document: 1.13.7
6
+ The version of the OpenAPI document: 1.16.0
7
7
  Contact: info@songtradr.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -19,145 +19,6 @@ module SongtradrApiClientRuby
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # All playlists.
23
- # @param [Hash] opts the optional parameters
24
- # @option opts [Boolean] :include_recordings Whether a playlist shall include recordings or not. (default to false)
25
- # @option opts [Boolean] :ignore_usages Whether a playlist shall include all songs regardless of their track usages. (default to false)
26
- # @option opts [String] :usage_filter_mode Whether a playlist recordings shall include all playlist usages or not. (default to 'any')
27
- # @option opts [String] :songtradr_playlist_guid
28
- # @return [Array<PlaylistLargeDTO>]
29
- def all_playlists(opts = {})
30
- data, _status_code, _headers = all_playlists_with_http_info(opts)
31
- data
32
- end
33
-
34
- # All playlists.
35
- # @param [Hash] opts the optional parameters
36
- # @option opts [Boolean] :include_recordings Whether a playlist shall include recordings or not. (default to false)
37
- # @option opts [Boolean] :ignore_usages Whether a playlist shall include all songs regardless of their track usages. (default to false)
38
- # @option opts [String] :usage_filter_mode Whether a playlist recordings shall include all playlist usages or not. (default to 'any')
39
- # @option opts [String] :songtradr_playlist_guid
40
- # @return [Array<(Array<PlaylistLargeDTO>, Integer, Hash)>] Array<PlaylistLargeDTO> data, response status code and response headers
41
- def all_playlists_with_http_info(opts = {})
42
- if @api_client.config.debugging
43
- @api_client.config.logger.debug 'Calling API: PlaylistApi.all_playlists ...'
44
- end
45
- allowable_values = ["any", "all"]
46
- if @api_client.config.client_side_validation && opts[:'usage_filter_mode'] && !allowable_values.include?(opts[:'usage_filter_mode'])
47
- fail ArgumentError, "invalid value for \"usage_filter_mode\", must be one of #{allowable_values}"
48
- end
49
- # resource path
50
- local_var_path = '/api/v1/playlist'
51
-
52
- # query parameters
53
- query_params = opts[:query_params] || {}
54
- query_params[:'includeRecordings'] = opts[:'include_recordings'] if !opts[:'include_recordings'].nil?
55
- query_params[:'ignoreUsages'] = opts[:'ignore_usages'] if !opts[:'ignore_usages'].nil?
56
- query_params[:'usageFilterMode'] = opts[:'usage_filter_mode'] if !opts[:'usage_filter_mode'].nil?
57
- query_params[:'songtradrPlaylistGuid'] = opts[:'songtradr_playlist_guid'] if !opts[:'songtradr_playlist_guid'].nil?
58
-
59
- # header parameters
60
- header_params = opts[:header_params] || {}
61
- # HTTP header 'Accept' (if needed)
62
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
63
-
64
- # form parameters
65
- form_params = opts[:form_params] || {}
66
-
67
- # http body (model)
68
- post_body = opts[:debug_body]
69
-
70
- # return_type
71
- return_type = opts[:debug_return_type] || 'Array<PlaylistLargeDTO>'
72
-
73
- # auth_names
74
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
75
-
76
- new_options = opts.merge(
77
- :operation => :"PlaylistApi.all_playlists",
78
- :header_params => header_params,
79
- :query_params => query_params,
80
- :form_params => form_params,
81
- :body => post_body,
82
- :auth_names => auth_names,
83
- :return_type => return_type
84
- )
85
-
86
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
87
- if @api_client.config.debugging
88
- @api_client.config.logger.debug "API called: PlaylistApi#all_playlists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
- end
90
- return data, status_code, headers
91
- end
92
-
93
- # Create and edit playlist.
94
- # This endpoint expects always the full amount of information including all recordings.
95
- # @param save_playlist_dto [SavePlaylistDTO]
96
- # @param [Hash] opts the optional parameters
97
- # @return [Object]
98
- def create_or_update_playlist(save_playlist_dto, opts = {})
99
- data, _status_code, _headers = create_or_update_playlist_with_http_info(save_playlist_dto, opts)
100
- data
101
- end
102
-
103
- # Create and edit playlist.
104
- # This endpoint expects always the full amount of information including all recordings.
105
- # @param save_playlist_dto [SavePlaylistDTO]
106
- # @param [Hash] opts the optional parameters
107
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
108
- def create_or_update_playlist_with_http_info(save_playlist_dto, opts = {})
109
- if @api_client.config.debugging
110
- @api_client.config.logger.debug 'Calling API: PlaylistApi.create_or_update_playlist ...'
111
- end
112
- # verify the required parameter 'save_playlist_dto' is set
113
- if @api_client.config.client_side_validation && save_playlist_dto.nil?
114
- fail ArgumentError, "Missing the required parameter 'save_playlist_dto' when calling PlaylistApi.create_or_update_playlist"
115
- end
116
- # resource path
117
- local_var_path = '/api/v1/playlist'
118
-
119
- # query parameters
120
- query_params = opts[:query_params] || {}
121
-
122
- # header parameters
123
- header_params = opts[:header_params] || {}
124
- # HTTP header 'Accept' (if needed)
125
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
126
- # HTTP header 'Content-Type'
127
- content_type = @api_client.select_header_content_type(['application/json'])
128
- if !content_type.nil?
129
- header_params['Content-Type'] = content_type
130
- end
131
-
132
- # form parameters
133
- form_params = opts[:form_params] || {}
134
-
135
- # http body (model)
136
- post_body = opts[:debug_body] || @api_client.object_to_http_body(save_playlist_dto)
137
-
138
- # return_type
139
- return_type = opts[:debug_return_type] || 'Object'
140
-
141
- # auth_names
142
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
143
-
144
- new_options = opts.merge(
145
- :operation => :"PlaylistApi.create_or_update_playlist",
146
- :header_params => header_params,
147
- :query_params => query_params,
148
- :form_params => form_params,
149
- :body => post_body,
150
- :auth_names => auth_names,
151
- :return_type => return_type
152
- )
153
-
154
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
155
- if @api_client.config.debugging
156
- @api_client.config.logger.debug "API called: PlaylistApi#create_or_update_playlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
157
- end
158
- return data, status_code, headers
159
- end
160
-
161
22
  # Curate playlist.
162
23
  # @param method_name [String] Name of the curation task that should be executed
163
24
  # @param curate_playlist_dto [CuratePlaylistDTO]
@@ -234,66 +95,5 @@ module SongtradrApiClientRuby
234
95
  end
235
96
  return data, status_code, headers
236
97
  end
237
-
238
- # Delete playlist.
239
- # @param songtradr_playlist_guid [String] ID of the file that should be deleted.
240
- # @param [Hash] opts the optional parameters
241
- # @return [Object]
242
- def delete_playlist(songtradr_playlist_guid, opts = {})
243
- data, _status_code, _headers = delete_playlist_with_http_info(songtradr_playlist_guid, opts)
244
- data
245
- end
246
-
247
- # Delete playlist.
248
- # @param songtradr_playlist_guid [String] ID of the file that should be deleted.
249
- # @param [Hash] opts the optional parameters
250
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
251
- def delete_playlist_with_http_info(songtradr_playlist_guid, opts = {})
252
- if @api_client.config.debugging
253
- @api_client.config.logger.debug 'Calling API: PlaylistApi.delete_playlist ...'
254
- end
255
- # verify the required parameter 'songtradr_playlist_guid' is set
256
- if @api_client.config.client_side_validation && songtradr_playlist_guid.nil?
257
- fail ArgumentError, "Missing the required parameter 'songtradr_playlist_guid' when calling PlaylistApi.delete_playlist"
258
- end
259
- # resource path
260
- local_var_path = '/api/v1/playlist/{songtradrPlaylistGuid}'.sub('{' + 'songtradrPlaylistGuid' + '}', CGI.escape(songtradr_playlist_guid.to_s))
261
-
262
- # query parameters
263
- query_params = opts[:query_params] || {}
264
-
265
- # header parameters
266
- header_params = opts[:header_params] || {}
267
- # HTTP header 'Accept' (if needed)
268
- header_params['Accept'] = @api_client.select_header_accept(['application/hal+json', 'application/json'])
269
-
270
- # form parameters
271
- form_params = opts[:form_params] || {}
272
-
273
- # http body (model)
274
- post_body = opts[:debug_body]
275
-
276
- # return_type
277
- return_type = opts[:debug_return_type] || 'Object'
278
-
279
- # auth_names
280
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
281
-
282
- new_options = opts.merge(
283
- :operation => :"PlaylistApi.delete_playlist",
284
- :header_params => header_params,
285
- :query_params => query_params,
286
- :form_params => form_params,
287
- :body => post_body,
288
- :auth_names => auth_names,
289
- :return_type => return_type
290
- )
291
-
292
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
293
- if @api_client.config.debugging
294
- @api_client.config.logger.debug "API called: PlaylistApi#delete_playlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
295
- end
296
- return data, status_code, headers
297
- end
298
98
  end
299
99
  end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
5
5
 
6
- The version of the OpenAPI document: 1.13.7
6
+ The version of the OpenAPI document: 1.16.0
7
7
  Contact: info@songtradr.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -154,6 +154,7 @@ module SongtradrApiClientRuby
154
154
  # @option opts [String] :tag_name Show only taggrams for one tag.
155
155
  # @option opts [String] :genre_name Show only taggrams for one genre.
156
156
  # @option opts [Float] :from_timestamp Show only taggrams data starting from from this timestamp in seconds.
157
+ # @option opts [Float] :to_timestamp Show only taggrams data before this timestamp in seconds.
157
158
  # @option opts [Boolean] :fill_with_zero If set to true, empty timeseries are filled with timeseries of 0.0 values.
158
159
  # @return [Array<RecordingMinimalWithTaggramsDTO>]
159
160
  def recordings_by_ids_with_taggrams(ids, opts = {})
@@ -168,6 +169,7 @@ module SongtradrApiClientRuby
168
169
  # @option opts [String] :tag_name Show only taggrams for one tag.
169
170
  # @option opts [String] :genre_name Show only taggrams for one genre.
170
171
  # @option opts [Float] :from_timestamp Show only taggrams data starting from from this timestamp in seconds.
172
+ # @option opts [Float] :to_timestamp Show only taggrams data before this timestamp in seconds.
171
173
  # @option opts [Boolean] :fill_with_zero If set to true, empty timeseries are filled with timeseries of 0.0 values.
172
174
  # @return [Array<(Array<RecordingMinimalWithTaggramsDTO>, Integer, Hash)>] Array<RecordingMinimalWithTaggramsDTO> data, response status code and response headers
173
175
  def recordings_by_ids_with_taggrams_with_http_info(ids, opts = {})
@@ -191,6 +193,7 @@ module SongtradrApiClientRuby
191
193
  query_params[:'tagName'] = opts[:'tag_name'] if !opts[:'tag_name'].nil?
192
194
  query_params[:'genreName'] = opts[:'genre_name'] if !opts[:'genre_name'].nil?
193
195
  query_params[:'fromTimestamp'] = opts[:'from_timestamp'] if !opts[:'from_timestamp'].nil?
196
+ query_params[:'toTimestamp'] = opts[:'to_timestamp'] if !opts[:'to_timestamp'].nil?
194
197
  query_params[:'fillWithZero'] = opts[:'fill_with_zero'] if !opts[:'fill_with_zero'].nil?
195
198
 
196
199
  # header parameters
@@ -301,67 +304,6 @@ module SongtradrApiClientRuby
301
304
  return data, status_code, headers
302
305
  end
303
306
 
304
- # Recordings by IDs with a large response.
305
- # @param ids [String] Comma seperated list of IDs. Can be ISRCs or proprietary IDs
306
- # @param [Hash] opts the optional parameters
307
- # @return [Array<RecordingLargeDTO>]
308
- def recordings_large_by_ids(ids, opts = {})
309
- data, _status_code, _headers = recordings_large_by_ids_with_http_info(ids, opts)
310
- data
311
- end
312
-
313
- # Recordings by IDs with a large response.
314
- # @param ids [String] Comma seperated list of IDs. Can be ISRCs or proprietary IDs
315
- # @param [Hash] opts the optional parameters
316
- # @return [Array<(Array<RecordingLargeDTO>, Integer, Hash)>] Array<RecordingLargeDTO> data, response status code and response headers
317
- def recordings_large_by_ids_with_http_info(ids, opts = {})
318
- if @api_client.config.debugging
319
- @api_client.config.logger.debug 'Calling API: RecordingApi.recordings_large_by_ids ...'
320
- end
321
- # verify the required parameter 'ids' is set
322
- if @api_client.config.client_side_validation && ids.nil?
323
- fail ArgumentError, "Missing the required parameter 'ids' when calling RecordingApi.recordings_large_by_ids"
324
- end
325
- # resource path
326
- local_var_path = '/api/v1/public/recording/l/{ids}'.sub('{' + 'ids' + '}', CGI.escape(ids.to_s))
327
-
328
- # query parameters
329
- query_params = opts[:query_params] || {}
330
-
331
- # header parameters
332
- header_params = opts[:header_params] || {}
333
- # HTTP header 'Accept' (if needed)
334
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
335
-
336
- # form parameters
337
- form_params = opts[:form_params] || {}
338
-
339
- # http body (model)
340
- post_body = opts[:debug_body]
341
-
342
- # return_type
343
- return_type = opts[:debug_return_type] || 'Array<RecordingLargeDTO>'
344
-
345
- # auth_names
346
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
347
-
348
- new_options = opts.merge(
349
- :operation => :"RecordingApi.recordings_large_by_ids",
350
- :header_params => header_params,
351
- :query_params => query_params,
352
- :form_params => form_params,
353
- :body => post_body,
354
- :auth_names => auth_names,
355
- :return_type => return_type
356
- )
357
-
358
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
359
- if @api_client.config.debugging
360
- @api_client.config.logger.debug "API called: RecordingApi#recordings_large_by_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
361
- end
362
- return data, status_code, headers
363
- end
364
-
365
307
  # Recordings by IDs with a medium sized response.
366
308
  # @param ids [String] Comma seperated list of IDs. Can be ISRCs or proprietary IDs
367
309
  # @param [Hash] opts the optional parameters
@@ -432,67 +374,6 @@ module SongtradrApiClientRuby
432
374
  return data, status_code, headers
433
375
  end
434
376
 
435
- # Recordings by IDs with a small response.
436
- # @param ids [String] Comma seperated list of IDs. Can be ISRCs or proprietary IDs
437
- # @param [Hash] opts the optional parameters
438
- # @return [Array<RecordingSmallDTO>]
439
- def recordings_small_by_ids(ids, opts = {})
440
- data, _status_code, _headers = recordings_small_by_ids_with_http_info(ids, opts)
441
- data
442
- end
443
-
444
- # Recordings by IDs with a small response.
445
- # @param ids [String] Comma seperated list of IDs. Can be ISRCs or proprietary IDs
446
- # @param [Hash] opts the optional parameters
447
- # @return [Array<(Array<RecordingSmallDTO>, Integer, Hash)>] Array<RecordingSmallDTO> data, response status code and response headers
448
- def recordings_small_by_ids_with_http_info(ids, opts = {})
449
- if @api_client.config.debugging
450
- @api_client.config.logger.debug 'Calling API: RecordingApi.recordings_small_by_ids ...'
451
- end
452
- # verify the required parameter 'ids' is set
453
- if @api_client.config.client_side_validation && ids.nil?
454
- fail ArgumentError, "Missing the required parameter 'ids' when calling RecordingApi.recordings_small_by_ids"
455
- end
456
- # resource path
457
- local_var_path = '/api/v1/public/recording/s/{ids}'.sub('{' + 'ids' + '}', CGI.escape(ids.to_s))
458
-
459
- # query parameters
460
- query_params = opts[:query_params] || {}
461
-
462
- # header parameters
463
- header_params = opts[:header_params] || {}
464
- # HTTP header 'Accept' (if needed)
465
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
466
-
467
- # form parameters
468
- form_params = opts[:form_params] || {}
469
-
470
- # http body (model)
471
- post_body = opts[:debug_body]
472
-
473
- # return_type
474
- return_type = opts[:debug_return_type] || 'Array<RecordingSmallDTO>'
475
-
476
- # auth_names
477
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
478
-
479
- new_options = opts.merge(
480
- :operation => :"RecordingApi.recordings_small_by_ids",
481
- :header_params => header_params,
482
- :query_params => query_params,
483
- :form_params => form_params,
484
- :body => post_body,
485
- :auth_names => auth_names,
486
- :return_type => return_type
487
- )
488
-
489
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
490
- if @api_client.config.debugging
491
- @api_client.config.logger.debug "API called: RecordingApi#recordings_small_by_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
492
- end
493
- return data, status_code, headers
494
- end
495
-
496
377
  # Recordings by contributors, moods, musical features and more.
497
378
  # @param [Hash] opts the optional parameters
498
379
  # @option opts [String] :similar_to_recording Search for songs similar to a recording.
@@ -684,7 +565,7 @@ module SongtradrApiClientRuby
684
565
  if @api_client.config.client_side_validation && opts[:'curateability'] && !allowable_values.include?(opts[:'curateability'])
685
566
  fail ArgumentError, "invalid value for \"curateability\", must be one of #{allowable_values}"
686
567
  end
687
- allowable_values = ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"]
568
+ allowable_values = ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax", "karaoke"]
688
569
  if @api_client.config.client_side_validation && opts[:'use_case'] && !allowable_values.include?(opts[:'use_case'])
689
570
  fail ArgumentError, "invalid value for \"use_case\", must be one of #{allowable_values}"
690
571
  end
@@ -845,71 +726,5 @@ module SongtradrApiClientRuby
845
726
  end
846
727
  return data, status_code, headers
847
728
  end
848
-
849
- # Recordings by abstracted wordings and granular search options.
850
- # @param search_recording_granular_abstraction_dto [Array<SearchRecordingGranularAbstractionDTO>]
851
- # @param [Hash] opts the optional parameters
852
- # @return [RecordingListDTO]
853
- def search_recordings_granular_abstraction(search_recording_granular_abstraction_dto, opts = {})
854
- data, _status_code, _headers = search_recordings_granular_abstraction_with_http_info(search_recording_granular_abstraction_dto, opts)
855
- data
856
- end
857
-
858
- # Recordings by abstracted wordings and granular search options.
859
- # @param search_recording_granular_abstraction_dto [Array<SearchRecordingGranularAbstractionDTO>]
860
- # @param [Hash] opts the optional parameters
861
- # @return [Array<(RecordingListDTO, Integer, Hash)>] RecordingListDTO data, response status code and response headers
862
- def search_recordings_granular_abstraction_with_http_info(search_recording_granular_abstraction_dto, opts = {})
863
- if @api_client.config.debugging
864
- @api_client.config.logger.debug 'Calling API: RecordingApi.search_recordings_granular_abstraction ...'
865
- end
866
- # verify the required parameter 'search_recording_granular_abstraction_dto' is set
867
- if @api_client.config.client_side_validation && search_recording_granular_abstraction_dto.nil?
868
- fail ArgumentError, "Missing the required parameter 'search_recording_granular_abstraction_dto' when calling RecordingApi.search_recordings_granular_abstraction"
869
- end
870
- # resource path
871
- local_var_path = '/api/v1/public/recording/searchGranularAbstraction'
872
-
873
- # query parameters
874
- query_params = opts[:query_params] || {}
875
-
876
- # header parameters
877
- header_params = opts[:header_params] || {}
878
- # HTTP header 'Accept' (if needed)
879
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
880
- # HTTP header 'Content-Type'
881
- content_type = @api_client.select_header_content_type(['application/json'])
882
- if !content_type.nil?
883
- header_params['Content-Type'] = content_type
884
- end
885
-
886
- # form parameters
887
- form_params = opts[:form_params] || {}
888
-
889
- # http body (model)
890
- post_body = opts[:debug_body] || @api_client.object_to_http_body(search_recording_granular_abstraction_dto)
891
-
892
- # return_type
893
- return_type = opts[:debug_return_type] || 'RecordingListDTO'
894
-
895
- # auth_names
896
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
897
-
898
- new_options = opts.merge(
899
- :operation => :"RecordingApi.search_recordings_granular_abstraction",
900
- :header_params => header_params,
901
- :query_params => query_params,
902
- :form_params => form_params,
903
- :body => post_body,
904
- :auth_names => auth_names,
905
- :return_type => return_type
906
- )
907
-
908
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
909
- if @api_client.config.debugging
910
- @api_client.config.logger.debug "API called: RecordingApi#search_recordings_granular_abstraction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
911
- end
912
- return data, status_code, headers
913
- end
914
729
  end
915
730
  end