Beats Client
A CLI client and SDK for the Beats API.
Setup
Both the command line client and the SDK is packaged as a Ruby gem called "beats-client". It's available from rubygems.org, so simply install it with the gem command or using bundler:
$ gem install beats-client
Example usage
require 'beats-client'
# Create a client object
client = Beats::Client.new
# Create an authenticated client object
client = Beats::Client.new(:access_token => '...')
client.account # => { ... }
client.resource('Arthur-Russell') # => { "uri" => "Arthur-Russell", "name" => "Arthur Russell", "type" => "Artist", ... }
client.search('death metal') # => { "tracks" => [...], ... }