Thank you for using Xoxzo - Cloud Telephony Platform.
We are glad to announce a new feature release, “callbackurl” parameter to be used in both SMS API and Voice API.
With this parameter, you will be able to receive the result of your action at your favorite URL. Status of SMS delivery will be called when the carrier network notifies Xoxzo of the SMS delivery status (DLR) and status of Voice will be called when the call ended.
Please refer these sample code below for how to use this parameter.
SMS delivery status check
#!/bin/sh
# You should get SID and AUTH_TOKEN from XOXZO console
curl -u $SID:$AUTH_TOKEN \
--data-urlencode 'sender=+818011112222' \
--data-urlencode 'recipient=+818033334444' \
--data-urlencode 'message=おはよう' \
--data-urlencode 'callbackurl=http://example.com/receive_dlr/' \
https://api.xoxzo.com/sms/messages/
VOICE result check
#!/bin/sh
# You should get SID and AUTH_TOKEN from XOXZO console
curl -v -u $SID:$AUTH_TOKEN \
--data-urlencode 'caller=+818011112222' \
--data-urlencode 'recipient=+818033334444' \
--data-urlencode 'tts_message=おはよう' \
--data-urlencode 'tts_lang=ja' \
--data-urlencode 'callbackurl=http://example.com/receive_dlr/' \
https://api.xoxzo.com/voice/simple/playback/
You may refer more details from below:
Callbackurl for SMS delivery
Callbackurl for Voice