ITKS545 Group7

ITKS545 Mobile Service Design Course work.

API Reference

Methods

List songs (GET)

URL: songs/

Returns up to 100 songs currently playable songs.

Parameters

  • q (optional): the query string to use.
      Example values: "rock", "rock+pop", "metallica"
    
  • limit (optional): set the number of songs to return
  • sort (optional): sorting conditions. Use one of the following values:
    date
    rating
    popularity
    alpha
  • ord (optional): asc or desc
  • genre (optional): display songs of only this genre. Value as genre ID.
  • artist (optional): display songs from only this artist. Value as artist ID.

List genres (GET)

URL: genres/

Returns all the genres in the system.

List artists (GET)

URL: artists/

Returns all artists in the system.

Show playlist (GET)

REQUIRES OAUTH!
URL: playlist/

Gets the playlist of the user. User identified with OAuth.

Add to playlist (POST)

REQUIRES OAUTH!
URL: playlist/add/

Adds a song to the user’s personal library.

Parameters:

  • id (required): the ID of the song to add

itks545-group7

Clone & push urls

Activities Feed