javascriptgoogle-apps-scriptgoogle-drive-realtime-api

ReferenceError: "Drive" is not defined. (line 16, file "Code") in google app script


When I try to use Google drive reference it always shows ReferenceError: "Drive" is not defined. (line 16, file "Code").


Solution

  • I've solves this error by go to:

    Resources -> Advanced Google Services -> Enable Drive Api

    enter image description here

    Note: you need to Enable Drive Api in Google Console