Skip to content

Send SMS ​

Send SMS messages through the iOS device.

Interface Description ​

Interface Type ​

execShortcut

Parameters ​

ParameterTypeRequiredDescription
deviceIdstring✅Device ID
directivestring✅Fixed value 'sendSms'
payloadobject✅SMS parameters object
payload.tostring/number✅Recipient phone number
payload.contentstring✅SMS content

Return Value ​

javascript
true  // Returns true on successful send

Basic Usage ​

javascript
// Send SMS
await apiInvoke('execShortcut', {
    deviceId: 'P72578581E07',
    directive: 'sendSms',
    payload: {
        to: '13800138000',
        content: 'Hello World!'
    }
});

Cooperation: try.catch@foxmail.com