The resource loading... loading...

Testing of the SMS notification interface

Author: Zero, Date: 2014-09-25 17:25:02
Tags: Tool

Test the SMS notification interface, ask to register an account on the supported text messaging platform (recommended text message treasure), and then type the sent URL into the interface For example,http://www.xxxx.com/sms.php?phone=1111111&c={Body} Tests to see if you can access text messages


function main() {
    if (SMSAPI.length > 10 && SMSAPI.indexOf('http') == 0 && SMSAPI.indexOf('{BODY}') != -1) {
        Log('发送: ', Msg);
        HttpQuery(SMSAPI.replace('{BODY}', encodeURIComponent(Msg)));
        Log('发送完成, 请检测是否收到短信');
    } else {
        Log('参数配置错误, 请重新检测短信接口');
    }
}

Related

More