Had a friend take a look at the documentation, and the code (Thanks Tim!). the data needed to be a string of JSON, not urlencoded. Should be working now.