API
endpiont player: http://www.mydj.win8.e-publish.co.il/MyDjPlayer/APINativePlayer
endpiont phone: http://www.mydj.win8.e-publish.co.il/MyDjPlayer/APIPhonePlayer
Test credentials
user: test1
password: test1
State
List of songs: ID and name
Volume
Current song: ID and name
All time current song
Current time current song
Search result List: ID and name
Playlists: ID and name
PlayList songs: ID and name
Command: 0
Commands
- Play
- Pause
- Next
- Back
- Random
- Birthday
- Other?
- VolumeUp
- VolumeDown
- VolumeMute
- RateUp
- RateDown
- PlaySongByID
- DeleteSongFromListByID
- SearchForSongByText
- GetPlayLists
- GetPlayListSongsByID
Example
PhonePlayer
http://www.mydj.win8.e-publish.co.il/MyDjPlayer/PhonePlayer
http
POST /MyDjPlayer/APIPhonePlayer?user=test1&password=test1&Command={\"volume\":1,\"currentSong\":{\"id\":1,\"name\":\"Song1\"},\"allTimeSong\":180,\"currentTimeSong\":90,\"searchResultList\":[{\"id\":2,\"name\":\"Song2\"},{\"id\":3,\"name\":\"Song3\"}],\"playlists\":[{\"id\":1,\"name\":\"playlist1\"},{\"id\":2,\"name\":\"playlist2\"}],\"playlistSongs\":[{\"id\":1,\"songs\":[{\"id\":3,\"name\":\"Song3\"},{\"id\":4,\"name\":\"Song4\"}]}],\"command\":\"\"} HTTP/1.1
Host: www.mydj.win8.e-publish.co.il
Cache-Control: no-cache
Postman-Token: 8e28fce6-01af-3d96-0e45-623202afc57e
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
c#
var client = new RestClient("http://www.mydj.win8.e-publish.co.il/MyDjPlayer/APIPhonePlayer?user=test1&password=test1&Command=%7B%5C%22volume%5C%22%3A1%2C%5C%22currentSong%5C%22%3A%7B%5C%22id%5C%22%3A1%2C%5C%22name%5C%22%3A%5C%22Song1%5C%22%7D%2C%5C%22allTimeSong%5C%22%3A180%2C%5C%22currentTimeSong%5C%22%3A90%2C%5C%22searchResultList%5C%22%3A%5B%7B%5C%22id%5C%22%3A2%2C%5C%22name%5C%22%3A%5C%22Song2%5C%22%7D%2C%7B%5C%22id%5C%22%3A3%2C%5C%22name%5C%22%3A%5C%22Song3%5C%22%7D%5D%2C%5C%22playlists%5C%22%3A%5B%7B%5C%22id%5C%22%3A1%2C%5C%22name%5C%22%3A%5C%22playlist1%5C%22%7D%2C%7B%5C%22id%5C%22%3A2%2C%5C%22name%5C%22%3A%5C%22playlist2%5C%22%7D%5D%2C%5C%22playlistSongs%5C%22%3A%5B%7B%5C%22id%5C%22%3A1%2C%5C%22songs%5C%22%3A%5B%7B%5C%22id%5C%22%3A3%2C%5C%22name%5C%22%3A%5C%22Song3%5C%22%7D%2C%7B%5C%22id%5C%22%3A4%2C%5C%22name%5C%22%3A%5C%22Song4%5C%22%7D%5D%7D%5D%2C%5C%22command%5C%22%3A%5C%22%5C%22%7D");
var request = new RestRequest(Method.POST);
request.AddHeader("postman-token", "717aafc9-efdd-4ea3-eef3-f0fbc76f7715");
request.AddHeader("cache-control", "no-cache");
IRestResponse response = client.Execute(request);
NativePlayer
http://www.mydj.win8.e-publish.co.il/MyDjPlayer/NativePlayer
http
POST /MyDjPlayer/APINativePlayer?user=test1&password=test1&State={\"volume\":1,\"currentSong\":{\"id\":1,\"name\":\"Song1\"},\"allTimeSong\":180,\"currentTimeSong\":90,\"searchResultList\":[{\"id\":2,\"name\":\"Song2\"},{\"id\":3,\"name\":\"Song3\"}],\"playlists\":[{\"id\":1,\"name\":\"playlist1\"},{\"id\":2,\"name\":\"playlist2\"}],\"playlistSongs\":[{\"id\":1,\"songs\":[{\"id\":3,\"name\":\"Song3\"},{\"id\":4,\"name\":\"Song4\"}]}],\"command\":\"\"} HTTP/1.1
Host: www.mydj.win8.e-publish.co.il
Cache-Control: no-cache
Postman-Token: 59958a69-0cae-79cb-0bcb-82a296436fbe
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
c#
var client = new RestClient("http://www.mydj.win8.e-publish.co.il/MyDjPlayer/APINativePlayer?user=test1&password=test1&State=%7B%5C%22volume%5C%22%3A1%2C%5C%22currentSong%5C%22%3A%7B%5C%22id%5C%22%3A1%2C%5C%22name%5C%22%3A%5C%22Song1%5C%22%7D%2C%5C%22allTimeSong%5C%22%3A180%2C%5C%22currentTimeSong%5C%22%3A90%2C%5C%22searchResultList%5C%22%3A%5B%7B%5C%22id%5C%22%3A2%2C%5C%22name%5C%22%3A%5C%22Song2%5C%22%7D%2C%7B%5C%22id%5C%22%3A3%2C%5C%22name%5C%22%3A%5C%22Song3%5C%22%7D%5D%2C%5C%22playlists%5C%22%3A%5B%7B%5C%22id%5C%22%3A1%2C%5C%22name%5C%22%3A%5C%22playlist1%5C%22%7D%2C%7B%5C%22id%5C%22%3A2%2C%5C%22name%5C%22%3A%5C%22playlist2%5C%22%7D%5D%2C%5C%22playlistSongs%5C%22%3A%5B%7B%5C%22id%5C%22%3A1%2C%5C%22songs%5C%22%3A%5B%7B%5C%22id%5C%22%3A3%2C%5C%22name%5C%22%3A%5C%22Song3%5C%22%7D%2C%7B%5C%22id%5C%22%3A4%2C%5C%22name%5C%22%3A%5C%22Song4%5C%22%7D%5D%7D%5D%2C%5C%22command%5C%22%3A%5C%22%5C%22%7D");
var request = new RestRequest(Method.POST);
request.AddHeader("postman-token", "31d7f96f-eb71-e38e-7c79-65ab1c2f3bc6");
request.AddHeader("cache-control", "no-cache");
IRestResponse response = client.Execute(request);