Hi I have a Teltonika RTU241 4G modem / SMS gateway.
I'm trying to send SMS messages from my application, I would like to use the Teltonika API to do that.
I can send it successfully from the command line however this uses CURL and I would rather go straight to the API. I tried various methods but just didn't get there. Any help would be greatly appreciated.
Regards
The API lists the following
Requests Value
{
"data": {
"number": "string",
"message": "string",
"modem": "string"
}
}
Response Value
{
"success": "boolean",
"data": {
"sms_used": "integer"
}
}
Schema
- data(required)
object
- number(required)
string($phonedigit)
To whom the message will be sent. The number must be specified in full format, country code included. e.g., +37000000000
- message(required)
string($string)
Message to send
- modem(required)
string
Identifier of the modem from which messages will be send
Enum:[
* 3-1 = Primary,
* 1-1 = Primary,
* 2-1 = Primary,
* 1-1.4 = Primary,
* 1-1.2 = Secondary,]
This is the link to the API page