Skip to content

Instantly share code, notes, and snippets.

@danip2

danip2/relay1.js Secret

Created May 16, 2023 18:44
app.post("/send", async (req, res, next) => {
console.log(req.body);
await Task.send({
project: process.env.SIGNALWIRE_PROJECT_ID,
token: process.env.SIGNALWIRE_TOKEN,
context: 'office',
message: {
type: "voice",
number: req.body.number,
message: req.body.message,
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment