Giter VIP home page Giter VIP logo

rdio-service's Introduction

rdio-service

Build Status

  1. Overview
  2. How Does It Work
  3. Endpoints
  4. Playback Tokens
  5. Extra Links

Overview

The rdio-service provides a simple interface into the Rdio API.

How Does It Work

The service is hosted on Heroku at:

http://rdio-service.herokuapp.com/

The service exposes a few endpoints for finding music:

  • /search?q=[Artist, Song, or Track] (accepts option params of type or types[] which will accept a single type or an array of the following values [Artist, Song, or Track])
  • /albums?artist_id=[Artist ID]
  • /albums/:album_id
  • /tracks?artist_id=[Artist ID]
  • /tracks/:track_id
  • /playlists/:playlist_id

There is also an endpoint to generate a playback token. This is necessary if you want to actually stream music from Rdio:

  • /playback_tokens

Endpoints

GET        /albums?artist_id=...                    # Get a collection of albums for a given artist_id
GET        /albums/:album_id                        # Get an album for the given album_id
GET        /playlists/:playlist_id                  # Get a playlist for the given playlist_id
POST       /playback_tokens                         # Get a playback token
GET        /search?q=...                            # Get a collection of artists, albums, and tracks for the given q
GET        /tracks?artist_id=...                    # Get a collection of tracks for a given artist_id
GET        /tracks/:track_id                        # Get a track for the given track_id

Playback Tokens

In order to be able to stream music from Rdio, you will need a playback token. A playback token can be obtained by sending a POST request to:

POST  /playback_tokens

It also accepts an optional domain parameter. domain defaults to localhost unless otherwise specificed. The domain will need to match the host of the site your app will play from.

Once you have a playback token, you can pass it to the Rdio jQuery library as described here:

http://www.rdio.com/developers/docs/libraries/jquery/

Extra Links

rdio-service's People

Contributors

darbyfrey avatar ericpkerr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.