Changing 'that' to API and simplifying calls to HTTP method functions
resolves #1