Kalpesh Kashyap
Kalpesh Kashyap

Reputation: 824

google docs list javascript

Hello I am new in google docs API, I want to get list of all documnets not spreadsheet using google doc API, I have got API but that gives document when you specify documentId, can anyone have idea is there way to get list of all documents created by user.

window.gapi.client.docs.documents.get({documentId:'123'})

aboe is sample code to get specific document I want list of all document. thanks in advance.

Upvotes: 1

Views: 262

Answers (1)

Aerials
Aerials

Reputation: 4419

Those documents are stored in the user's Google Drive. You have to get their consent first. Create a GCP project and a consent screen for users to authorize your App to access their Google Drive through the Drive API.

Then you can list the files in their Drive.

Upvotes: 1

Related Questions