Using HTTP GET to read from the imp

Can I retrieve a value from the imp via an HTTP GET request through a HTTP IN vimp? The documentation says I can send POSTs and GETs but I couldn’t find any examples on GET (particulary how to program the imp to return an HTTP response)

Also, the planner inline help only talks about HTTP POST: "To send messages in, HTTP POST to https://api.electricimp.com/v1/

Thanks!

Bump.

I’m also curious about this.

Let’s say I have a webpage that can turn on/off output pins.
I would like to ask the imp to give me the current state of the pins first.

Is there a way I can ask the imp to tell me what the current states are?

I’m assuming that there are agents being written to make the API better … specifically for PHP scripting (and JQuery, AJAX)?

By the way, I did figure out how to have PHP send a POST to the imp without letting anyone see the URL. So I can send a value of 1 or 0 without anyone seeing this:
https://api.electricimp.com/v1/b89e7u73ab8263f1/30acy4ujec9a84a7/?value=1

@mlseim:
By the way, I did figure out how to have PHP send a POST to the imp without letting anyone see the URL.
Something you would like to share :-/

Retrieving information is not possible at the moment but there’s a closed beta version of Agents, which will allow it

I’ll post the PHP method on a new thread.