-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Google Sheets API calls to v4
This PR updates the API calls to Google Sheets to use v4 instead of v3 which was shut down August 2. Fixes #217, Fixes #218, and Fixes #222 with some caveats, see below. Full disclosure: I have no idea what I'm doing really with JS, so there are likely to be improvements to be made. Potentially Outstanding Issues: * Uses my personal API Key. Its restricted to Google Sheets API only, but I would prefer it be someone else's. Not really a problem right now. * Each Sheet is loaded in full through a GET request, returned entierly as JSON. This results in the load being a bit slow (and a fair amount of data comes down, the Official is 33MB of plain text returned for example. The load only happens once per sheet. * I left in all the old code where I could in case improvements can be made. * I do not know JS, so any improvements, especially in the Promises area are likely very welcome.
- Loading branch information
Showing
4 changed files
with
173 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters