Update to address pull request comments:
Move logic in api methods to _do_post and _do_delete
Add api_key to sample credentials file
Use username instead of name for api creds