Adding
All playlist endpoints called with a post verb will create or add. All of these calls require a valid Access Token from a logged in user to be passed in the request header.
/Playlists/
POST - Create a new playlist.
Javascript Example
var hash = CryptoJS.HmacSHA256('POST&/Playlists/&name=New%20Playlist&mediaIds=53379368%2C2573243&access_token=ZT...DE=', private_key);
var hash64 = CryptoJS.enc.Base64.stringify(hash);
Header Name | Type | Description | Example |
---|---|---|---|
system_access_token | string | Your Rhymba Access Token | E32C8CFE8A1EC895C8C63FE5BD924941 |
system_access_secret | string | Your Rhymba Access Secret | 25BA2FADE0B0F47A0D913EBBC8F1EB6C |
hash | string | The request hash | cndh6C/die66R+qwceUJW/dXBHYUwm6tVt8MhBayl/0= |
Field Name | Type | Description | Example |
---|---|---|---|
name | string | The name to call the Playlist | New Playlist |
mediaIds | string | Comma delimited list of media ids | 53379368,2573243 |
access_token | string | Access Token | ZTMyYzhjZmU4YTFlYzg5NWM4YzYzZmU1YmQ5MjQ5NDE= |
Returns
Type | Description | Example |
---|---|---|
Playlist JSON | The new playlist object |
|
/Playlists/{playlistId}/Media/
POST - Add Media to a Playlist
/Playlists/{id}/Playlists/
POST - Add a Playlist to a Playlist
/Playlists/{playlistId}/UploadImage/
POST - Upload an Image to associate with a Playlist. This uses our Imagebank service, and requires an Imagebank account be setup.
/Playlists/{playlistId}/Albums/
POST - Add an Album to a Playlist
/Playlists/{playlistId}/Artists/
POST - Add an Artist to a Playlist
/Playlists/{id}/
POST - Make a copy of a Playlist
/Playlists/{playlistId}/Users/
/Users/{userId}/Playlists/
POST - Add a User to a Playlist. Either endpoint can be used, both are included for completeness.