Myplaylist API
Overview
The Myplaylist API can be used to import complete playlists for artists and single songs with up to 30 images per single.
Constructing a Call
The Myplaylist API is constructed by calling the URI as given in examples. It is simply required that variables are included as follows: "type" the type of player, "artist" the artist name, "title" the title of the song.
For type of player there are the following options:
single-l = single song large - music slideshow at 640px width * 480px height
single-m = single song medium - music slideshow at 480px width * 360px height
single-s = single song small - music slideshow at 320px width * 240px height
single-la = single song large autoplay - music slideshow at 640px width * 480px height
single-ma = single song medium autoplay - music slideshow at 480px width * 360px height
single-sa = single song small autoplay - music slideshow at 320px width * 240px height
playlist-l = playlist large - music slideshow at 640px width * 480px height
playlist-m = playlist medium - music slideshow at 480px width * 360px height
playlist-s = playlist small - music slideshow at 320px width * 240px height
playlist-la = playlist large autoplay - music slideshow at 640px width * 480px height
playlist-ma = playlist medium autoplay - music slideshow at 480px width * 360px height
playlist-sa = playlist small autoplay - music slideshow at 320px width * 240px height
music-p = music playlist - music player only at 275px width * 60px height
music-pa = music playlist autoplay - music player only at 275px width * 60px height
music-s = music single song - music player only at 275px width * 60px height
music-sa = music single song autoplay - music player only at 275px width * 60px height
You can see examples of these players here
For a single song use:
http://www.myplaylist.biz/api/type/artist/title/
As follows:
http://www.myplaylist.biz/api/single-ma/rick%20astley/never%20gonna%20give%20you%20up/
This will produce the following embed code:
To avoid this SWF from being processed by the browser (thus slowing down the results) the opening bracket '<' has been replaced with its html entity equivalent '<' therefor before use you will need to change the instances of the openning bracket, you can do this in PHP using the following code:
$var = str_replace("<", "<", $var);
For a complete playlist use:
http://www.myplaylist.biz/api/type/artist/
http://www.myplaylist.biz/api/playlist-ma/rick%20astley/
If you have any questions please contact me from the about page.
|