My Mobile REST

Remember my mobile web server? Well, in addition to all its juicy mobile goodness, it also has a nice RESTful API. For example, this URL:

http://ruk.mymobilesite.net/rest/presence/devicestate

will get you an XML file, served from the web server on the phone, that looks something like this:

<devicestate>
    <battery_level>100</battery_level>
    <localtime>2008-08-23T17:04:57-03:00</localtime>
    <connection_type>WLAN</connection_type>
</devicestate>

Similarly, if you do an HTTP POST to:

http://ruk.mymobilesite.net/rest/inbox/message

you can send me a text message. It’s really quite neat.

Comments

Add new comment