Created
March 9, 2022 14:45
-
-
Save ak--47/9a87bbe9cabe38c477a96f6ca1d1e2a2 to your computer and use it in GitHub Desktop.
fire and forget with zapier?
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
let endpoint = `https://dm3.mixpanel.org/refreshDungeon` | |
let auth = `Bearer ${inputData.token}` | |
let dungeon = inputData.dungeon | |
let opts = { | |
method: "POST", | |
body: dungeon, | |
headers: { | |
"Content-Type" : "application/json", | |
"Authorization" : auth | |
} | |
} | |
//don't wait for a value; return immediately | |
var callback = (err, output)=>{return {foo: `bar`}} | |
let done = fetch(endpoint, opts).then((err, output)=> callback).catch((err, output)=> callback); | |
let output = {foo: `bar`}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment