Add missing OAuth2 params
Support JSON responses
Remove unnecessary debug