Fixed incorrect variable name in api sample code
Merge pull request #12 from jonmumm/patch-1

Thanks!