27
loading...
This website collects cookies to deliver better user experience
const { VoiceServer } = require("@fonos/voice");
const voiceServer = new VoiceServer();
voiceServer.listen((req, res) => {
console.log(req);
res.play("sound:hello-world");
});
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);
fonos funcs:init
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");
};
fonos funcs:deploy --schedule "*/5 * * * *"
The Cloud Functions capability if offered by the integration with OpenFaaS (by Alex Ellis)