0
votes

i want to create a New Spreadsheet using Java(Google App Engine)

I am passing a json string to my servlet.What i want this servlet to do is: 1.authorize/authenticate using oauth2 2. create a spreadsheet of this data on google drive

All the library combinations are so confusing,which library should i uae for which purpose. Gdata.., drive-api jar, oauth jar,sheets api. I read the sheets APi,which clearly mentions that to creata a New Spreadaheet i should use Drive API

Please point me in right direction.

1

1 Answers

1
votes

You need to authorize your requests to Google APIs using OAuth2: https://developers.google.com/identity/protocols/OAuth2

You need the Drive API to create sheets and save them to Drive: https://developers.google.com/drive/

You need the Sheets API to work with the actual spreadsheets (editing the file): https://developers.google.com/google-apps/spreadsheets/?hl=en