Updating Readme file for API

Took me a little while to work out how to use the API as the instructions were outdated. This seems to work so thought I would update it :D