Nexmo Incoming Callback URL

I am trying to use Nexmo.com to send and receive text messages. Sending works fine, but I'm having trouble getting messages.

My problem is with the callback url and what format the page should be. Nexmo documentation here and talks about it

Incoming message

If you purchased long virtual numbers, you will need to configure the CallBack URL for incoming traffic, to which we will send a request for each incoming message. Nexmo expects a 200 OK response, or it will try again.

Request parameters sent via GET (default) to your URL include the following parameters.

Am I missing something extremely simple? Is there somewhere that I have not found with the sample page callback urls? Thanks for any help!

Change For clarification, I use the java library provided by Nexmo, but since their api is all built around a URL, the java program just visits the URL to send the message. Here are their provided libraries.

+4
source share
1 answer

Not sure if I understood your question.

Typically, if you want to receive messages, you need to configure the service on your server using the callback URL, say http://api.example.com/sms/

Then you configure this callback url in Nexmo. After that, Nexmo will access your server through the callback URL and send the parameters using the GET method. And your server receives this information, and the 200 response is Nexmo.

+5
source

Source: https://habr.com/ru/post/1434122/


All Articles