Greetings scripting experts!
I am using the trying to send the following command (which works in a browser address bar) from within mAirList
[b]http://1.2.3.4:1333/api/song/?artist=The Beatles&title=Yellow Submarine[/b]
Can anyone point me in the right direction on how is this achieved using a mAirList script?
Bonus points are awarded if the artist and title details are mAirList logging variables!
Many thanks
Ron.
Are you going to make this call every time a song is started in mAirList?
Then you don’t need a script. Use HTTP GET logging instead.
URL: http://1.2.3.4:1333/api/song/
Parameters (use cursor-down key to add lines):
artist: %a
title: %b
Torben
Thanks for the quick and successful reply. That does indeed work well to send the artist and title as each song starts (which is exactly what I asked for).
I thought the ‘song’ option would be the more tricky which is why I asked about that but there are other commands which I would like to send to control other functions which would be best performed in a script.
Another example is http://1.2.3.4:1333/api/flash/1?text=Message goes here
The common element is http://1.2.3.4:1333/api/ but the suffix can change so I suppose the revised question is how do you make that sort of HTTP GET command through scripting?
Ron