Rainforest Automation has a very good colletion of code examples and API specification at http://rainforestautomation.com/developer/