Documentation

messageservice.message.status.update

messageservice.message.status.update - manages SMS statuses for applications.

Parameters

Parameter Description
CODE Provider code. Required.
MESSAGE_ID Message ID. Required.
STATUS Message status. Required. Accessible statuses:
  • delivered - was successfully delivered
  • undelivered - was not delivered
  • failed - delivery error

Example

BX24.callMethod(
    'messageservice.message.status.update',
    {
        CODE: 'provider1',
        message_id: 1,
        status: 'delivered'
    },
    function(result)
    {
        if(result.error())
            alert("Ошибка: " + result.error());
        else
            alert("Success: " + result.data());
    }
);

© «Bitrix24», 2001-2022
Up