protocol.InsertTracksRequest
This request allows you to add all tracks in the database to the supplied playlist.
Parameter | Optional | Max Allowed | DataType | Notes |
---|---|---|---|---|
cid | no | 1 | text | client id. used to track origin of any particular message |
fps | no | 1 | list | list of relative or absolute file paths to add |
fp | no | unbounded | file path | file path as absolute URI or partial/relative path |
pls | yes | 1 | list | list of playlist ids |
plid | no | unbounded | database id | playlist id |
tok | yes | 1 | api token | client token for privileged access. request from ideaworks |
Example xml:
<sireq> <cid>Mum</cid> <fn> <insertTracks> <fps> <fp>file:///MuSe/Server/drop_box/test.mp3</fp> <fp>drop_box/test.mp3</fp> </fps> <pls> <plid>12121212121</plid> <plid>65465456545464</plid> </pls> <tok>fggew32gfg24gf45f3g54</tok> </insertTracks> </fn> </sireq>