ronnie
Library for accessing the Rdio API from Ruby.
Installation
gem 'ronnie', '~> 8.0.0'
API Documentation
Usage
require 'ronnie'
OAuth
Authentication
The following constants are examples.
You’ll need to register your application with Rdio to retrieve a unique CONSUMER_KEY
and CONSUMER_SECRET
.
CONSUMER_KEY = 'q32tvp74n5hazpbr93tbjkem'
CONSUMER_SECRET = 'nXcryfbVDP'
@client = Ronnie::Client.new consumer_key: ENV['CONSUMER_KEY'],
consumer_secret: ENV['CONSUMER_SECRET']
Authorization
If you’d like to request authorized resources, you’ll need to create a OAUTH_TOKEN
and OAUTH_TOKEN_SECRET
.
OAUTH_TOKEN = 'zd565qbzvwadxtd4fr3bpcda3ym42shwcxsbyu4t49gv6xxjhp7tjvre4xwr8gue'
OAUTH_TOKEN_SECRET = 'baA2KgCSAW3D'
@client.token = OAUTH_TOKEN
@client.token_secret = OAUTH_TOKEN_SECRET
Requests
@client.search_artists('Mount Eerie')
Contributions
Installation
$ bundle install
RSpec
$ bundle exec rspec