Get data from electric imp

I can post data to my dashboard, using an electric imp, using the example code provided, it works well, thanks to everyone who helped to write the example.
i would like to receive back some variable data say for example a value created from a slider in my dashboard. I am not really experienced enough to try writing my own code, so if anyone has any examples or pointers that would be very helpful. thanks.
[ i have an esp 8266 12E that is working well using the examples provided , with an example to send and receive from the dashboard, but the code format is different, as it is loaded via the arduino IDE] , i was trying to basically create a similar environment with the electric imp.
thanks.

Hi Tom I don’t have an Electric Imp at hand, but I see that they have HTTP GET support: https://electricimp.com/docs/api/http/get/

You should be able to make GET requests in the agent code and then use their JSON decode function to parse the response and get the number (for example the slider value). Here’s more on Ubidots’s GET requests: http://ubidots.com/docs/api/index.html#get-values to get the last value use the page_size parameter:

curl -X GET http://things.ubidots.com/api/v1.6/devices/WiFi-Device/Temperature/values?token=c74qFmzI7ikTmZ3dFvF3e2hPEmCfu5&page_size=1