SMSClient allows programs to send SMS messages

1 SMSClient

To send am SMS message the send function must be called, the next argument is the message string. Any other parameter passed to the method must be a string and will be treated as a mobile number

Copy
<script>
    var res = new Ax.net.SMSClient.send("my message", "34600416868", "34627830483");
    
</script>

Requirement

In order to send SMS, a microservice of type SMS must be configured via wic_microservice table from wic_conf for the server

The returned object is contains the result of the execution:

Copy
{
    "mobiles": {
        "34600416868": {
            "dlr_status": "http://192.168.35.213:2473/api/v1.0/sms/sent/0bc8728d-65db-43d8-8955-ebc2ca3dd503",
            "message_id": "0bc8728d-65db-43d8-8955-ebc2ca3dd503",
            "response": "Ok"
        },
        "34627830483": {
            "dlr_status": "http://192.168.35.213:2473/api/v1.0/sms/sent/2382615c-ad1c-4b10-938c-ef106167c24a",
            "message_id": "2382615c-ad1c-4b10-938c-ef106167c24a",
            "response": "Ok"
        }        
    },
    "parts_count": 1,
    "sent_text": "Hola, public message sample"
 }