Radionomy Board
It is currently Sun Nov 17, 2019 1:37 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Thu Jun 27, 2013 12:08 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 24, 2013 8:47 am
Posts: 2529
Location: Brussels
Radio 1: http://www.radionomy.com/fr/radio/gameon
O.S: Windows Seven 64 Bits
The API "Current Song" allows you to display the last or the two last tracks played on your radio.

API is available at this URL :
http://api.radionomy.com/currentsong.cfm

Query limitation : The limitation is provided by the function "callmeback" .

Parameters :

radiouid = your radio UID (Guid available under the settings tab of the RMO -> Technical Information)
apikey = your personal API key is available under the settings tab of the RMO -> Technical Information
callmeback = yes (please do not choose "no" except if your queries are less frequent than 5 minutes). Determines the delay before the next query. This delay is based on the duration of the current song.
type = XML or string (default = string)
cover = YES or NO (default = NO) (only available if type = XML). Allows you to get the track's picture URL.
previous= yes or no. Displays the previous track.


Query example :

Code:
http://api.radionomy.com/currentsong.cfm?radiouid=xxx&apikey=xxx&callmeback=yes&type=xml&cover=yes&previous=yes


Answer example

Code:
<tracks>
<radioname>Indies Sabotage 75</radioname>
<track></track>
<title>Cast Iron Arm</title>
<artists>Peanuts Wilson</artists>
<starttime>2011-09-09 17:24:32.847</starttime>
<playduration>139074</playduration>
<current>0</current>
<cover>http://i.radionomy.com/RMimages/TR_B47C830A-F2BC-33A9-DC9E0D8BACFD824F.s232.jpg</cover><track></track>
<title>C'est l'été sur IS75 !</title>
<artists>IS75</artists>
<starttime>2011-09-09 17:26:52.96</starttime>
<playduration>4890</playduration>
<current>0</current>
<cover>http://i.radionomy.com/RMimages/JIN_C20E0825-BEB6-3FC6-0EBB62FBEE21DEFA.s232.jpg</cover>

<track></track>
<title>Make It Wit Chu</title>
<artists>Queens Of The Stone Age</artists>
<starttime>2011-09-09 17:26:59.48</starttime>
<playduration>182500</playduration>
<current>1</current>
<cover>http://i.radionomy.com/RMimagesamazon/TR_3a2cb2d2-eb04-415c-a2a5-b21e8c8da8a9_34857.s232.jpg</cover>
<callmeback>51000</callmeback>

</tracks>


Queries pattern :

Image

(Date Version: July 2013)


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group