Reputation: 1671
I know my question sounds a bit mouthful, so just let me make my point clear: I need to do something like bringing data from Google Sheet to AWS (i.e. Athena), or vice versa.
However, because Google API is in need anyway, I surprisingly found that require()
is not even a function in such kind of JS' twin-like language at all. Therefore, how can we use any third-party libraries on it?
Example (github repo):
const {google} = require('googleapis');
Upvotes: 2
Views: 759
Reputation: 11268
You can use Gmail, Calendar, Drive, and most other Google Workspaces APIs in Apps Script by enabling Advanced Services.
Here's an example on how to use the Drive API inside Apps Script.
Upvotes: 1