> Are you sure you need both a server and a client for this? Yep. Here's the 
> Google API auth routine:

1\. Have a server running on some host; this host should be provided to Google 
during in the next step.

2\. Generate a URL to the user consent form and let the user open it.

3\. When the user clicks Verify in the form, Google sends an authorization code 
to the URL where your server is listening for it.

4\. Your server extracts the authorization code and sends a POST request to 
another Google API URL, this time to exchange the code for the access token.

5\. Google responds to your request with the access token, which you should 
save and use with every API request.

So the tricky part for me is to receive _one_ HTTP request.

Reply via email to