title: OAuth 2 with Google API
body: <p>Google API supports OAuth 2.0 authentication with <code>redirect_uri</code> to either <code>urn:ietf:wg:oauth:2.0:oob</code> (an access token will be displayed in the browser and needs to be copy-pasted) or to the <code>localhost</code> for installed apps. In the later case, as said in the documentation, I need to up a temporary web server! Why I can't get the token in a plain response? Say, JSON? Why are these complications with the web server? Can I workaround somehow this? Is there a way to get the token without copy/paste and the web server on the localhost? How does it work with the localhost?</p>