Created
January 4, 2022 20:46
-
-
Save theGove/a624eae85133c3b3f9ffcd1841b675b8 to your computer and use it in GitHub Desktop.
JADE module to pull in data from Data.world
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
async function dw_query(){ | |
await jade.use("dw_tools") | |
// specify the query | |
const query='select * from episode limit 3' | |
// information to access the right data set | |
const token="YOUR READ/WRITE TOKEN GOES HERE" | |
const id='simpsons' | |
const owner='atlas-query' | |
// infomratoin about where to place data | |
const sheet_name="Simpsons2" | |
const address="a1" | |
const data = await dw_tools.query(query, id, owner, token, sheet_name, address) | |
console.log(data) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment