🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

songtradr_api_client_ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

songtradr_api_client_ruby

bundlerRubygems
Version
2.1.0
Version published
Maintainers
1
Created
Source

songtradr_api_client_ruby

SongtradrApiClientRuby - the Ruby gem for the Songtradr API

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

  • Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up.

  • To authenticate, you need to login via the POST /api/v1/user/login endpoint.

  • 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

  • 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.
  • You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint.
  • 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.

  • 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.
  • 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.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 2.1.0
  • Package version: 2.1.0
  • Generator version: 7.5.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://songtradr.com

Installation

Build a gem

To build the Ruby code into a gem:

gem build songtradr_api_client_ruby.gemspec

Then either install the gem locally:

gem install ./songtradr_api_client_ruby-2.1.0.gem

(for development, run gem install --dev ./songtradr_api_client_ruby-2.1.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'songtradr_api_client_ruby', '~> 2.1.0'

Install from Git

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:

gem 'songtradr_api_client_ruby', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'songtradr_api_client_ruby'

api_instance = SongtradrApiClientRuby::AllowedValuesApi.new
opts = {
  response_size: 's' # String | Size the response should have.
}

begin
  #Allowed values for music descriptive parameters to be used in the searchAll endpoint.
  result = api_instance.allowed_musical_features(opts)
  p result
rescue SongtradrApiClientRuby::ApiError => e
  puts "Exception when calling AllowedValuesApi->allowed_musical_features: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.songtradr.com

ClassMethodHTTP requestDescription
SongtradrApiClientRuby::AllowedValuesApiallowed_musical_featuresGET /api/v1/allowedValues/musicalFeaturesAllowed values for music descriptive parameters to be used in the searchAll endpoint.
SongtradrApiClientRuby::AllowedValuesApigenresGET /api/v1/allowedValues/genreAllowed values for genres.
SongtradrApiClientRuby::AllowedValuesApitagsGET /api/v1/allowedValues/tagAll descriptive tags inside of tag-categories.
SongtradrApiClientRuby::RecordingApiprompt_search_recordingsGET /api/v1/public/recording/promptSearchRecordings for query.
SongtradrApiClientRuby::RecordingApirecordings_by_ids_with_musical_featuresGET /api/v1/public/recording/{ids}/musicalFeaturesAI generated moods, musical features and more for recordings.
SongtradrApiClientRuby::RecordingApirecordings_by_ids_with_similarities1GET /api/v1/public/recording/{ids}/similaritiesSimilar recordings for a list of recordings.
SongtradrApiClientRuby::RecordingApirecordings_by_ids_with_taggrams1GET /api/v1/public/recording/{ids}/taggramsTimeseries of AI generated moods, musical features and more for a list of recordings.
SongtradrApiClientRuby::RecordingApirecordings_by_ids_with_tagstrengths1GET /api/v1/public/recording/{ids}/tagstrengthsStrengths as numerical representations for AI generated moods, musical features and more for recordings.
SongtradrApiClientRuby::RecordingApirecordings_medium_by_ids1GET /api/v1/public/recording/m/{ids}Recordings by IDs with a medium sized response.
SongtradrApiClientRuby::RecordingApisearch_recordingsGET /api/v1/public/recording/searchRecordings by contributors, moods, musical features and more.
SongtradrApiClientRuby::UserApidelete_user_fileDELETE /api/v1/user/file/{objectKey}Delete file.
SongtradrApiClientRuby::UserApiedit_mePOST /api/v1/user/meEdit details for a logged-in user
SongtradrApiClientRuby::UserApiforgot_passwordPOST /api/v1/user/forgot-passwordSend a password reset email
SongtradrApiClientRuby::UserApiinit_video_uploadPOST /api/v1/user/file/{name}/initVideoUploadRecognise and upload video. Responds with an object with recognition result.
SongtradrApiClientRuby::UserApiinitiate_user_file_uploadPOST /api/v1/user/file/{name}/initUploadInitialize a file upload. Responds with an URL where the file can be uploaded.
SongtradrApiClientRuby::UserApiinitiate_user_image_uploadPOST /api/v1/user/file/{name}/initImageUploadRecognise and upload image. Responds with an object with recognition result.
SongtradrApiClientRuby::UserApiloginPOST /api/v1/user/loginLogin to generate a bearer token.
SongtradrApiClientRuby::UserApimeGET /api/v1/user/meDetails for a logged-in user
SongtradrApiClientRuby::UserApiprompt_search_user_filesGET /api/v1/user/promptSearchFiles for query.
SongtradrApiClientRuby::UserApirecordings_by_folder_with_taggramsGET /api/v1/user/folder/{folderName}/taggramsTimeseries of AI generated moods, musical features and more for recordings in your folder.
SongtradrApiClientRuby::UserApirecordings_by_folder_with_tagstrengthsGET /api/v1/user/folder/{folderName}/tagstrengthsStrengths as numerical representations for AI generated moods, musical features and more for recordings in your folder.
SongtradrApiClientRuby::UserApirecordings_by_ids_with_similaritiesGET /api/v1/user/recording/{ids}/similaritiesSimilar recordings for a list of user recordings.
SongtradrApiClientRuby::UserApirecordings_by_ids_with_taggramsGET /api/v1/user/recording/{ids}/taggramsTimeseries of AI generated moods, musical features and more for a list of recordings.
SongtradrApiClientRuby::UserApirecordings_by_ids_with_tagstrengthsGET /api/v1/user/recording/{ids}/tagstrengthsStrengths as numerical representations for AI generated moods, musical features and more for recordings.
SongtradrApiClientRuby::UserApirecordings_medium_by_idsGET /api/v1/user/recording/{ids}Recordings by IDs with a medium sized response.
SongtradrApiClientRuby::UserApisign_upPOST /api/v1/user/sign-upSign up a new user.
SongtradrApiClientRuby::UserApitokenPOST /api/v1/user/tokenGenerates a new JWT token for the given refresh token
SongtradrApiClientRuby::UserApiupdate_passwordPOST /api/v1/user/update-passwordUpdate password by using the password reset token
SongtradrApiClientRuby::UserApiuser_fileGET /api/v1/user/file/{objectKey}Details and a download link for a file.
SongtradrApiClientRuby::UserApiuser_filesGET /api/v1/user/filesList and search your own files.
SongtradrApiClientRuby::UserApiuser_files_statusGET /api/v1/user/filesStatusStatus details for files.
SongtradrApiClientRuby::UserApiuser_files_summaryGET /api/v1/user/filesSummarySummary fo your files.

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

bearer-jwt

  • Type: Bearer authentication (JWT)

FAQs

Package last updated on 08 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts