In article Getting Started with Opaali API Part 2 we learned how to send a MT text message. Lets now see how to send a binary message. First, we’ll revisit the API Reference.
Read MoreI promised to add more functionality to the send.sh script, so I thought that adding the -hex
switch would be simple enough. Not quite, as the hex string I tested with happened to be text containing the scandinavian characters ö and ä which lead to the dreaded Bad Request error from Opaali API.
Now that we know how to send an SMS message using the Opaali API and shell tools (see Getting started with Opaali API - Parts 1-3), we can write a (bash) shell script that acts like the send command that came with Content Gateway (CGW).
Read MoreWhen you send an MT message using outboundMessageRequest, you get back a resourceURL which you can use to check the delivery status of the sent message.
{
"resourceReference" : {
"resourceURL" : "https://api.opaali.telia.fi/production/messaging/v1/outbound/tel%3A%2B358000000000/requests/3eef0382-0014-45ea-9ee5-1ebce10e829d"
}
}
Depending on your environment and the version of the curl
application you have, my curl examples might fail for you.