Hello Prateek,
 
 
There are two ways. One is to use Javascript to extract the address 
information, isolate the authorization key, and use JSONP to communicate 
back to Google.
 
The better, server driven way is to target the callback towards your own 
servlet. You can collect the authorization code using the standard 
req.getParameter() function (remember, it's just a regular HTTP parameter) 
and then use URLFetch to exchange the authorization code for access tokens. 
There is sample code here: 
https://developers.google.com/google-apps/tasks/oauth-authorization-callback-handler#callback
 

-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL
My Go side project: http://invalidmail.com/
 

On Saturday, May 18, 2013 8:01:06 PM UTC-5, prateek bansal wrote:

> After user allow access ,authorization code displayed on address bar then
> How to get the authorization code of google drive from address bar 
> programatically ??
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to