Hi
Is there a json api to get the current value of several feed IDs at once?
Something like ...emoncms/feed/value.json?id={xx,yy,zz}
It would greatly speed up my web page as I'm currently having to use multiple /feed/value.json?id=xx calls
Collecting multiple feeds on a dashboard won't work for me as I need the actual values in my javascript.
many thanks
Mike
(great software btw!)
Re: JSON api - multiple IDs
http://emoncms.org/feed/fetch.json?ids=1234,4567,7890&apikey=blahblahblah
should do what you are after.
Paul
Re: JSON api - multiple IDs
Hi Paul
Excellent - it works just as you said (and only 13 minutes after I posted)!
I would be grateful if you would point me to the location of these apis in the sources so I can 'discover' other undocumented apis.
Is there a more complete set of documentation which covers this (other than the feed api help page)?
Thanks again
Mike
Re: JSON api - multiple IDs
Not really :-(
The code where the api's are defined are where I normally go eg
https://github.com/emoncms/emoncms/blob/master/Modules/input/input_controller.php
https://github.com/emoncms/emoncms/blob/master/Modules/feed/feed_controller.php
Re: JSON api - multiple IDs
Thanks - that's nearly as good as docs!