-
-
Save DanyF-github/f0b77c198e28f90efe78e6221bc5396e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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