Comments (5)
What do you see instead? Please fill out the issue details.
from node-samples.
The code above isn’t a sample we’ve created. The issue you’ve described isn’t an issue with an existing sample.
I think the issue you’re having is around the readonly scope. If you fix the scope issue, you may not have the problem.
from node-samples.
even if scope is fixed from
**
readonly to https://www.googleapis.com/auth/spreadsheets
**
I am getting below error
`sheets.sheetsService.spreadsheets.create({
^
TypeError: Cannot read property 'spreadsheets' of undefined
at createNewSpreadSheet (c:\work\TalentScore_GS\app.js:102:22)
at Object. (c:\work\TalentScore_GS\app.js:114:1)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3`
from node-samples.
purpose of code is to create a new spreadsheet from scratch using Node.js on google drive
from node-samples.
As @grant alluded to, this issue tracker is for problems with our sample code. Once you've modified the sample code if you have problems you should use the standard support channels:
https://developers.google.com/sheets/api/support
It this case it looks like you should be using sheets.spreadsheets.create
, since sheetsService
isn't defined anywhere.
from node-samples.
Related Issues (20)
- Code sample response after add sheet is not accurate
- The API returned an error: Invalid Input HOT 1
- isTokenExpiring is not working, we need to refresh the token
- No authorization code HOT 2
- Access response with data field
- adminSDK samples using deprecated OAuth out-of-band flow. HOT 3
- Dependency Dashboard
- V3 Upload to folder snippet parents value incorrect HOT 1
- Incorrect scopes url
- Filename issue HOT 1
- Documentation update HOT 1
- Cannot read properties of undefined (reading 'redirect_uris') at authenticate HOT 2
- [SyncRepoSettings bot] - Invalid config file
- I am not able to create folder in google drive using google drive APIs
- Issue Title
- Incorrect code in drive_move_file_to_folder node sample
- getting random localhost urls with google gmail nodejs quickstart HOT 2
- bugs: Failed to get started with gmail Guide HOT 3
- "The API returned an error: GaxiosError: Invalid Credentials" while calling Gmail API
- how to authentication in sheets using service accounts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-samples.