Skip to content

Send SMS

Send SMS messages through the iOS device.

Interface Description

Interface Type

execShortcut

Parameters

ParameterTypeRequiredDescription
deviceIdstringDevice ID
directivestringFixed value 'sendSms'
payloadobjectSMS parameters object
payload.tostring/numberRecipient phone number
payload.contentstringSMS 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