playlistAdd

Used to create a new playlist. A list of track file keys can optionally be passed in the request, allowing a new playlist to be created and populated with tracks in one call.

Parameters

sid (required): A valid session id, received from the "login" method.
partner_token (required): A valid partner token. See Overview for more information.
title (required): Playlist title.
keys (optional): Comma separated list of file keys to add to new playlist.
output (Optional): Your preferred output format. These include xml, and json.

Example Request (Creating a blank playlist):

http://ws.mp3tunes.com/api/v1/?output=xml&sid=<sid>&partner_token=9999999999
&title=Wave+Files

Example Response:


  1
  89041
  0
  
  


Example Request (Creating a playlist, passing 3 valid file keys and 1 invalid key):

http://ws.mp3tunes.com/api/v1/?output=xml&sid=<sid>&partner_token=9999999999
&title=Wave+Files&keys=fad1efc63f6915e6f888b907c00f9066,
a891bcde3f823884e82868131444001b,c51c72a04bea699e65af21342a67aa52,123BogusKey

Example Response:


  1
  89041
  3
  
    fad1efc63f6915e6f888b907c00f9066
    a891bcde3f823884e82868131444001b
    c51c72a04bea699e65af21342a67aa52
  
  
    123BogusKey