A related stackoverflow post that helped me out a greeeeeeeeeat deal:

http://stackoverflow.com/questions/6805570/how-do-i-access-php-rest-api-put-data-on-the-server-side

I thought it might help. Great article by the way!

Ta

F