Using OAuth 2.0 to Access Google APIs | How to generate oauth token ?
All requests to the Google API must be authorized by an authenticated user. To access any of the google product you need oAuth token. Authorizing requests with OAuth 2.0: Setup your appliacation: Go to below link and setup your application, Once application is create get your OAuth client ID https://console.developers.google.com/apis/dashboard Get access Code: To get a code, you need to run a server. Install tomcat and run a simple dynamic application with only homepage. Let think application is running on http://localhost/ Create below url and open it on chrome: https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/blogger&response_type=code&access_type=offline&redirect_uri=http://localhost&client_id=YourClientID Login With valid google account, Once you are Login successfully. It will redirect to localhost with code. http://localhost/?code=4/2AGswerwyro2KlmBXgXV8A73877482hsjdfhsj7AAtTERUCut7VD_Ty2gVlIlGMyD5xTxBFcYudif...