Sorry, you need to enable JavaScript to visit this website.

You are here

Subscription (Mobile Number) notifyURL- not called

5 posts / 0 new
Last post

Gary's picture
by Gary

Subscription (Mobile Number) notifyURL- not called
We have setup the Subscription and set a URL for the notifyURL. However this URL is never called when we send in the SMS.. With the notifyURL empty we can see the messages in the Retreieve SMS Repsonses (https://dev.telstra.com/messaging-api/apis/get/messages/sms). Although this seems to be a once off, as soon as we receive the response the list is blanked. Any way we can see what is going on with the notifyURL callback?

Gary's picture
by Gary

The same notifyURL when
The same notifyURL when attached to the Send SMS API (https://dev.telstra.com/messaging-api/apis/post/messages/sms) does call the callback we created. However it seems to post nothing (blank data). I was expecting something like the messageID, timestamp and status for that endpoint..

Gary's picture
by Gary

The default value for the
The default value for the callbackData in the CreateSubscription was object. After changing to match the Getting Started: "callbackData": { "anything":"some data" } Now the callback is calling our end. However, as with the SMS, there doesnt seem to be any data coming in..  

Gary's picture
by Gary

Solved
I found the cause, on my side. I was expecting the PHP $_POST to include the Body. It appears that the deprication of the older global variables moved the body to be access via file_get_contents("php://input") Both Sending and Receiving SMS appears to be providing the expected JSON Body data.

DeveloperSteve's picture
by DeveloperSteve

Hi Developers, 
Hi Developers,  Yep you are right re the post data, ill get that updated in the docs 
Log in or register to post comments