some code to use the api
Merge pull request #1 from richardflint/master

some code to use the api