Please read this information carefully, so you can best use the building blocks.
- Create a Nexmo account
- Rent a Nexmo Number
- Install the Nexmo Command Line tools
- Create a Nexmo Application in the Dashboard
- Install the Nexmo Node Client Library - if writing applications using Node.
- Set up Ngrok - if testing locally.
The following replaceable information depends on the library and specific call:
||Private key path.|
||The Nexmo Application ID.|
All phone numbers are in E.164 format.
||Replace with your Nexmo Number. E.g. 447700900000|
||Replace with number you are sending from. E.g. 447700900002|
||Replace with the number you are sending to. E.g. 447700900001|
Some building blocks have more specialised variables, such as Facebook Page IDs, that will need to be replaced by actual values. Where required, these are specified on a per-building block basis.
The main ones you will meet here are:
/webhooks/inbound-message- You will receive a callback here when Nexmo receives a message.
/webhooks/message-status- You will receive a callback here when Nexmo receives a message status update.
If you are testing locally using Ngrok you will set your webhook URLs in the Nexmo Application object using a format similar to the following examples:
demo in the above with whatever Ngrok generates for you, unless you have paid for a reusable URL.