protocol.CreatePlaylistRequest3
This request allows you to create a new playlist and optionally add items to it at the same time. Playlists can be readonly that indicates to the server that it should not be modified and clients should not try to modify them. This class improves on older version by loosening the generic typing of items passed into the class
Parameter | Optional | Max Allowed | DataType | Notes |
---|---|---|---|---|
cid | no | 1 | text | client id. used to track origin of any particular message |
nm | no | 1 | text | name of the new playlist to create |
items | yes | 1 | list | a list of track,genre,album,playlist and/or artist id's |
ro | no | 1 | boolean | is this a read only playlist |
uid | no | 1 | text | user id to bind playlist to. An empty value denotes a shared playlist |
Example xml:
<sireq> <cid>Mum</cid> <fn> <createPlaylist3> <nm>Dells chill out tunes</nm> <items> <arid>45435434354343</arid> <trid>12121212121</trid> <trid>12121212121</trid> <alid>232322323</alid> </items> <ro>1</ro> <uid>1</uid> </createPlaylist3> </fn> </sireq>