Question

I'm attempting to use Nexmo.com to send and receive text messages. Sending works fine, but I am having some issues receiving messages.

My issue is with the Callback URL and what format that page should be in. Nexmo's documentation is here and says this

Inbound Message

If you have purchased long virtual numbers, you will need to set up a CallBack URL for inbound to which we will send a request for each incoming message. Nexmo will be expecting response 200 OK, or it will retry.

The request parameters sent via a GET (default) to your URL include the following parameters.

Am I missing something extremely simple? Is there somewhere that I haven't found with an example of a Callback URL page? Thanks for any help!

Edit: For clarification, I'm using Nexmo's provided java library, but since their api is all built around URL's the java program simply visits a URL to send the message. Here are their provided libraries

Était-ce utile?

La solution

Not sure if I've understood your question.

Generally, if you want to receive messages, you have to setup a service on your server, with a callback url, say http://api.example.com/sms/

Then you setup this callback url in Nexmo. After that, Nexmo will access your server through the callback url, and send parameters via GET method. And your server receives those info, and response 200 to Nexmo.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top