0

const file = Drive.Files.insert({ title: 'Temp.pdf' }, blob, { ocr: true, ocrLanguage: "en" });

I have enabled Drive API(v2) from Resources->Advanced Google Services and also enabled Drive API in Google Cloud Platform API Dashboard for that particular project.

But this doesn't look like a one time activity. The error ReferenceError: Drive is not defined keeps coming every now and then. When I enable Drive API from Resources->Advanced Google Services, there is no error for some time and it comes again after some time. The setting in Resources->Advanced Google Services is not persisted.

Why is it not persisted? Am I missing something here?

Ekalavya
  • 31
  • 4

1 Answers1

1

Figured out that reference error was occurring only after I perform a clasp push. Resolved.

Ekalavya
  • 31
  • 4