Add params arg for API methods
Add response error handling
Check HTTP status code for failed requests
Create functional tests