Created
July 3, 2021 13:32
-
-
Save psanders/2941a99757d73051428b9f2052426136 to your computer and use it in GitHub Desktop.
Cloud Function Example
This file contains hidden or 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
const Fonos = require("@fonos/sdk"); | |
const callManager = new Fonos.CallManager(); | |
// 🚀 Let's get started | |
// Use fonos funcs:deploy to send to the cloud functions | |
module.exports = async(request, response) => { | |
await callManager.call({ | |
from: "9842753589", | |
to: "17853178070", | |
webhook: "https://5a2d2ea5d84d.ngrok.io" | |
}) | |
return response.succeed("OK"); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment