Skip to content

Instantly share code, notes, and snippets.

@virgilvox
Created August 17, 2022 16:12
Show Gist options
  • Save virgilvox/f9be0958f00a018c207a10b5772f80bd to your computer and use it in GitHub Desktop.
Save virgilvox/f9be0958f00a018c207a10b5772f80bd to your computer and use it in GitHub Desktop.
require('dotenv').config();
let { Voice } = require('@signalwire/realtime-api')
const projectId = process.env.SIGNALWIRE_PROJECT_ID
const token = process.env.SIGNALWIRE_TOKEN
const verifiedNumber = process.env.VERIFIED_NUMBER
const client = new Voice.Client({
project: projectId,
token: token,
contexts: ["ivr"],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment