fubits1 / metabase-google-apps-script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Apps Script / Sheet API: Query Metabase API

Custom JavaScript-based in-cell formula to fetch the data from a Metabase query (as CSV)

Quickstart

pre-requisite: Metabase session token (cf. fubits1/metabase-api-demo)

a) Copy/paste scripts as .gs into Apps Script project

b) Local development with node & clasp (Official Google Apps Script CLI)

  • (p)npm install
  • NOTE: enable Google Apps Script for user: [https://script.google.com/home/usersettings]
  • clasp login
  • get Script ID <scriptID> from Apps Script GUI
  • clasp clone <scriptID>
  • deploy with clasp push (will overwrite remote state))
  • WARN: (pull with clasp pull - will overwrite local state)
  • open Apps Script GUI (browser) with clasp open

About


Languages

Language:JavaScript 100.0%