Skip to content

Instantly share code, notes, and snippets.

@psanders
Created July 3, 2021 13:31
Show Gist options
  • Save psanders/afd9cd87585c191ca29720af15d0eccf to your computer and use it in GitHub Desktop.
Save psanders/afd9cd87585c191ca29720af15d0eccf to your computer and use it in GitHub Desktop.
Using the SDK to start a call
const Fonos = require("@fonos/sdk");
const callManager = new Fonos.CallManager();
callManager.call({
from: "9842753574",
to: "17853178070",
webhook: "https://5a2d2ea5d84d.ngrok.io"
})
.then(console.log)
.catch(console.error);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment