Radionomy Board
It is currently Tue Dec 10, 2019 6:37 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: Mon Jun 24, 2013 12:26 pm 
Offline
Moderators
User avatar

Joined: Mon Jun 24, 2013 8:59 am
Posts: 410
Location: Sur le forum
Radio 1: http://www.radionomy.com/feevermix
O.S: Windows Seven 64 Bits
API Top Tracks


L'API "Top Tracks" vous permet d'afficher les titres les plus diffusés sur votre radio pour une période donnée.

Elle est disponible à l'adresse :
http://api.radionomy.com/toptracks.cfm

Limites d'appel / mise en cache minimum : 5 minutes

Paramètres :

radiouid = UID de votre radio
apikey = votre clé API (Trouver ma clé API)
amount = le nombre de morceaux souhaités (de 1 à 50) (défaut = 1)
days= le nombre de jours à prendre à compte (maximum 7)
type = XML ou string (défaut = string)
cover = YES ou NO (défaut = NO) (uniquement valable si type = XML). Vous donne l'URL de la pochette du morceau.

Exemple de requête :

Code:
http://api.radionomy.com/toptracks.cfm?radiouid=xxx&apikey=xxx&amount=5&days=2&type=xml&cover=yes


Exemple de réponse

Code:
<tracks>
<track>
<position>1</position>
<title>Il Faut Quand Meme Bien Exister</title>
<artists>Atomique Deluxe</artists>
<cover>http://i.radionomy.com/RMimages/TR_CCD071F7-967C-5C66-47B8487457BAAC73.s150.jpg</cover>

<track>
<position>2</position>
<title>From Me To You</title>
<artists>Beatles</artists>
<cover>http://i.radionomy.com/RMimages/31.s150.jpg</cover>

<track>
<position>3</position>
<title>She Loves You</title>
<artists>Beatles</artists>
<cover>http://i.radionomy.com/RMimagesmm/TR_000181_3.s150.jpg</cover>

<track>
<position>4</position>
<title>I Feel Fine</title>
<artists>Beatles</artists>
<cover>http://i.radionomy.com/RMimages/31.s150.jpg</cover>

<track>
<position>5</position>
<title>Day Tripper</title>
<artists>Beatles</artists>
<cover>http://i.radionomy.com/RMimages/31.s150.jpg</cover>

</tracks>


Schéma des requêtes :
Attachment:
File comment: Schéma API
schema-apikey-570.png
schema-apikey-570.png [ 298.74 KiB | Viewed 13249 times ]

_________________
Avant toute questions, cliquez-ici ! | Voir la F.A.Q | Retrouvez vos messages
(Aucun support n'est fait par MP)


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