If you're new to Vonage, you can sign up for a Vonage account and get some free credit to get you started.
- We're going to need a Vonage Communications API Account, if you don't have one you can sign up here
- We'll need Visual Studio 2019 to use Blazor WebAssembly
- We're going to be using Ngrok for testing
Run ngrok will the command:
ngrok http --host-header=localhost:5000 5000
Find your api key and api secret in Vonage Dashboard, open up the VonageSmsDashboard.Server/appsettings.json
file and change the API_KEY
and API_SECRET
to your api key and secret respectively.
Runnign the ngrok command will result in a public facing url looking like: http://fb09abd3c106.ngrok.io
. Go to your Vonage Dashboard and chagne the url for inbound messages and delivery receipts to https://your.ngrok.hostname/webhooks/inbound-sms
and https://your.ngrok.hostname/webhooks/dlr
respectively, change the type to POST-JSON
and click submit to change everything.
You can run the app either directly from Visual Studio, or using the .NET CLI in the VonageSmsDashboard.Server
folder using the dotnet run
command.
We love to hear from you so if you have questions, comments or find a bug in the project, let us know! You can either:
- Open an issue on this repository
- Tweet at us! We're @VonageDev on Twitter
- Or join the Vonage Community Slack
- Check out the Developer Documentation at https://developer.nexmo.com