google-api-nodejs-client: TypeError: Cannot read property 'data' of undefined on the sample code....
Trying to run the sample code for the drive list stuff and am getting this error:
TypeError: Cannot read property 'data' of undefined
at runSample (c:\Users\Konstantin\Desktop\USN\JS\newCode.js:15:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
Environment details
- OS: Windows 10
- Node.js version: 8.11.4
- npm version: 6.4.1
googleapis
version: 33.0.0
Steps to reproduce
- Run the Drive list sample code…
Bonus question: How can I create a token to use so that I don’t have to login each time the script is run?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (6 by maintainers)
Sure thing! 😃 I just have it inside VS Code and press the run button tbh… But here is the script:
It gets executed with
node newCode.js
Yeah, just did 😄