1

I am writing an application that can modify an spreadsheet in Google Drive, but the problem is that each time I try to access Drive contents it asks for access token as per the OAuth2 specification which I have to generate manually after browsing through the following link:

  https://accounts.google.com/o/oauth2/auth?access_type=online&approval_prompt=auto&client_id=<THE_CLIENT_ID>&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/drive

Anybody having idea if its possible to either get this token through Drive API or through any other medium, The client application will be in the form of a Java Swing application in which there will be text fields the text inserted in those fields will be added as a row in the spreadsheet hosted on the Google Drive.

Thanks

MPelletier
  • 16,256
  • 15
  • 86
  • 137
cbinder
  • 2,388
  • 2
  • 21
  • 36

1 Answers1

0

You need to get the token manually the first time, but then you can reuse it. I guess this is a duplicate? Stored Credential from google api to be reused java

must I click "Allow Acess" every time I connect? Google Drive SDK API

[EDIT] Sorry, I did not see the date.

Community
  • 1
  • 1
phobic
  • 914
  • 10
  • 24