Radionomy Board
It is currently Thu Oct 18, 2018 4:44 am

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Fri Sep 13, 2013 6:01 pm 
Offline
Moderators

Joined: Mon Jun 24, 2013 12:49 pm
Posts: 42
Location: Madrid
Radio 1: http://www.postawayradio.com
Radio 2: https://www.otakumusicradio.com
La API "Current Song" le permite mostrar el último o las dos últimas canciones emitidas en su emisora.

La API está disponible en esta dirección :
http://api.radionomy.com/currentsong.cfm

Restricción de consulta : La limitación dependerá de la función "callmeback" .

Parámetros :

radiouid = la UID de su emisora
apikey = su API key está disponible en el Labs
callmeback = yes (por favor no elija "no" excepto si sus llamadas son menos frecuentes que 5 minutos). Determina el tiempo que ha de pasar previamente a la próxima consulta. Este tiempo está basado en la duración de la canción que está sonando en su emisora.
type = XML o string (por defecto = string)
cover = YES o NO (defecto = NO) (sólo disponible si type = XML). Le permite obtener la "imagen" del álbum de la canción.
previous= yes o no. Muestra la canción previa.


Ejemplo de consulta :

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


Ejemplo de respuesta

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>


Esquema de consulta :

Image

_________________
Moderador en Radionomy - Si necesitas ayuda, ¡No dudes a recurrir al foro!


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic 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