protocol.AddToPlaylistRequest2
This request allows you to add all tracks in the database that match the supplied item ids to the supplied playlist. This version of class adds looser genric typing to itmes supplied to this class.
Parameter | Optional | Max Allowed | DataType | Notes |
---|---|---|---|---|
cid | no | 1 | text | client id. used to track origin of any particular message |
id | no | 1 | database id | playlist id |
items | no | 1 | list | a list of track,genre,album,playlist, composer and/or artist id's |
tok | yes | 1 | api token | client token for privileged access. request from ideaworks |
Example xml:
<sireq> <cid>Mum</cid> <fn> <addToPlaylist2> <id>45435434354343</id> <items> <arid>45435434354343</arid> <trid>12121212121</trid> <trid>12121212121</trid> <alid>232322323</alid> <plid>232322323</plid> <grid>232322323</grid> <cpid>232322323</cpid> </items> <tok>fggew32gfg24gf45f3g54</tok> </addToPlaylist2> </fn> </sireq>