giladaya / get-sheet-done Goto Github PK
View Code? Open in Web Editor NEWPull data from google spreadsheets
Home Page: https://giladaya.github.io/get-sheet-done/
Pull data from google spreadsheets
Home Page: https://giladaya.github.io/get-sheet-done/
Google sheets API v3 (which this library utilizes), is now deprecated. Unless the maintainer plans on updating to v4, then the project docs should state as much, and probably refer people to a newer library like google-spreadsheet.
If new people start to use this for their new projects, then they'll run into some frustrating behavior.
It's unfortunate, but the new API requires a GCP account and an API Token.
Hi,
It would be quite awesome ti be able to write data back with this library. Was that in your plans ?
As an example, using labeledColsRows
on the table:
column1 | column2 |
---|---|
a | b, c |
returns the following data:
{
a: {
c: undefined
column2: "b"
}
}
labeledCols
works as expected:
{
0: {
column1: "a"
column2: "b, c"
}
}
> (node:29026) UnhandledPromiseRejectionWarning: ReferenceError: window is not defined
at /home/sub/ghubby/crave/surveilly/node_modules/fetch-jsonp/build/fetch-jsonp.js:57:7
at new Promise (<anonymous>)
at fetchJsonp (/home/sub/ghubby/crave/surveilly/node_modules/fetch-jsonp/build/fetch-jsonp.js:53:12)
at /home/sub/ghubby/crave/surveilly/node_modules/get-sheet-done/dist/GetSheetDone.js:111:30
at new Promise (<anonymous>)
at fetchAndParse (/home/sub/ghubby/crave/surveilly/node_modules/get-sheet-done/dist/GetSheetDone.js:110:10)
at Object.raw (/home/sub/ghubby/crave/surveilly/node_modules/get-sheet-done/dist/GetSheetDone.js:195:10)
at repl:1:14
at Script.runInThisContext (vm.js:65:33)
at REPLServer.defaultEval (repl.js:244:29)
The function outputs: Unexpected token I in JSON at position 0
GetSheetDone.labeledColsRows is returning an empty object for cells where there is a colon followed by a space.
:
Code:
GetSheetDone.labeledColsRows('[KEY]', 1).then(sheet => {
this.setState({
debug: ctxValue.debug,
task: ctxValue.task,
locale: ctxValue.locale,
data: sheet.data
});
});
If done as a GetSheetDone.raw(), the data returns as expected. The network request also returns the data as expected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.