Send SMS using SMS-Magic

Note:

  • This task is applicable only to Zoho Creator.
  • Each time the smsmagic.sms.send integration task is executed, it triggers an API request in the back-end. This call is deducted from the external calls limit available for the service from which the task is executed, based on your pricing plan.
  • Only actual executions that receive a response (whether success or failure) are counted, not the number of times the task appears in the script. For example, if smsmagic.sms.send integration task is placed inside a for each task that iterates five times, the number of external calls consumed will be five, even though the task appears only once in the script. 

Overview

The smsmagic.sms.send task is used to send messages through your SMS-Magic account using Deluge. For example, imagine you have a Zoho Creator application to track your inventory. You can use this task to send SMS notification to the specified phone number through your SMS-Magic account, whenever your inventory runs low on stock.

Syntax

<variable> = smsmagic.sms.send(<smsmagic_connection>, <to_number><message>);

where,

ParameterData typeDescription
<variable> KEY-VALUEis the variable which will hold the response returned by SMS-Magic.
<smsmagic_connection> TEXTis the name of the SMS-Magic connection.
<to_number>TEXT

is the phone number to which the message must be sent.

The phone number must be in the format: +<country_code><phone_number>

<message>TEXTContents of the message.

Send an SMS using SMS-Magic

The following snippet when executed sends the specified message to the specified number. 

response = smsmagic.sms.send("Smsmagic", "+91XXXXXXXXXX", "Thank you for subscribing");

where,

ParameterDescription
"Smsmagic"is the name of the SMS-Magic Connection
"+91XXXXXXXXXX"is the phone number to which the message will be sent
"Thank you for subscribing"is the message which will be sent
responseis response returned as KEY-VALUE by SMS-Magic

Response Format

Following is a sample success response returned by SMS-Magic:

{"status":"Success"}