playlistTrackAdd
Used to add tracks to an existing playlist.
Parameters
sid (required): A valid session id, received from the "login" method.
partner_token (required): A valid partner token. See Overview for more information.
playlist_id (required): A valid playlist ID.
file_key (required): A valid track file key.
position (optional): Position of the new track in the playlist (defaults to end of list). Positions are not zero-based. Positions start with 1. If an invalid position is provided, the track will be added to the end of the playlist.
output (Optional): Your preferred output format. These include xml, and json.
Example Request (Add a track to the end of a playlist):
http://ws.mp3tunes.com/api/v1/playlistTrackAdd?output=xml&sid=<sid>
&partner_token=9999999999&playlist_id=89401&file_key=fad1efc63f6915e6f888b907c00f9066
Example Response:
1 89041 fad1efc63f6915e6f888b907c00f9066
Example Request (Add a track to the beginning of a playlist):
http://ws.mp3tunes.com/api/v1/playlistTrackAdd?output=xml&sid=<sid>
&partner_token=9999999999&playlist_id=89401
&file_key=fad1efc63f6915e6f888b907c00f9066&position=1
Example Response:
1 89041 fad1efc63f6915e6f888b907c00f9066