Comments (7)
especially because we can embed objects in other objects after the fact, the main thing we're missing will be access to being able to call the functions within the objects.
we have some potential issues w/ inheritence b/c tokens will expire and need to be redone for everyone
i guess we could have a google session class and then have the spreadsheets inherit from that. obviously sheets would inherit spreadsheets.
then we have to work out the calls - now we are instantiating them in effectively reverse order.
from 4d-google-workspace.
in this context, unlike merggoole, it seems like there isn't any point to trying to keep the sheets separate.
then again, there was a regex for getting a sheet id.
from 4d-google-workspace.
maybe another way to do this would be:
- generate a comms object
- sheet extends that object
- sheet does its thing
- parent (that owns comms and sheet) checks to see if comms expired and if so updates parent comms and any other child objects
from 4d-google-workspace.
passing a pointer to update comms might help
from 4d-google-workspace.
- create comms object
- create spreadsheet, passing pointer to comms
- spreadsheet calls header function using pointer to comms data
- if comms data is old, pointer is used to update comms data
this gets us around not being able to use a pointer to the comms functions but having access to the comms data via a pointer.
from 4d-google-workspace.
Solution?
It seems that we should maybe do the following:
- comms - does the comms, doesn't really have any initialization, should probably be all functions
- auth - extends comms and does the auth and headers
- spreadsheets - extends comms and manages the spreadsheet data
since comms doesn't have any properties, by extending it we don't need to do anything else per se
We then pass the auth object to every spreadsheet object, and we can then refer to the auth properties because the object is a pointer.
The comms functions are automagically incorporated by reference, like a submodule, and thus we just call the functions
When we need auth, we just use the auth properties, which are incorporated.
from 4d-google-workspace.
v. 0.0.0.4
0b24a99
from 4d-google-workspace.
Related Issues (20)
- overwrite existing values
- simpler use
- sheet names getting borked HOT 2
- getValues() should take a sheet name, i think, even though that's a subset of a range
- range operations
- append values insert data operation
- row/column ops
- find blank row
- got 403 error when trying to load sheet HOT 1
- move spreadsheet file HOT 1
- does object layout match google's?
- deconflict drive_file s
- break sheets out the way files are broken out
- batchUpdate
- delete sheet
- combine create sheet from template and move it into one function HOT 1
- test modified spreadsheets.load()
- update props in docs HOT 3
- what if sheet is in the trash? it will still load
- set values -> getsheetswithname is failing b/c sheets seem to be disappearing. reloading fixes
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 4d-google-workspace.