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

  1. Play
  2. Pause
  3. Next
  4. Back
  5. Random
  6. Birthday
  7. Other?
  8. VolumeUp
  9. VolumeDown
  10. VolumeMute
  11. RateUp
  12. RateDown
  13. PlaySongByID
  14. DeleteSongFromListByID
  15. SearchForSongByText
  16. GetPlayLists
  17. 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);