Skip to content

Instantly share code, notes, and snippets.

@DanyF-github
Created October 29, 2021 10:06
Show Gist options
  • Save DanyF-github/f0b77c198e28f90efe78e6221bc5396e to your computer and use it in GitHub Desktop.
Save DanyF-github/f0b77c198e28f90efe78e6221bc5396e to your computer and use it in GitHub Desktop.
// APP CODE
// this endpoint receives information about events in the app
app.post('/status', function(req, res) {
res.status(204).end();
});
const Vonage = require('@vonage/server-sdk');
const vonage = new Vonage({
apiKey: process.env.API_KEY,
apiSecret: process.env.API_SECRET,
applicationId: process.env.APP_ID,
privateKey: __dirname + '/.data/private.key'
},{
apiHost: 'https://messages-sandbox.nexmo.com/'
});
app.post('/inbound', function(req, res) {});
app.post('/signup', function(req, res) {});
function setUsername(phone, username) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment