Send SMS using Clickatell
Table of Contents
Note:
- This task is applicable only to Zoho Creator.
- This task can be used only by users who created their Clickatell account before November, 2016. We recommend the users who signed up after November, 2016 to make use of the invokeUrl task to call the respective Clickatell API.
Overview
The clickatell.sms.sendtext task is used to send messages through your Clickatell 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 Clickatell account, whenever your inventory runs low on stock.
Syntax
<variable> = clickatell.sms.send(<clickatell_connection>, <to_number>, <message>);
where:
Params | Data type | Description |
<variable> | KEY-VALUE | is the variable which will hold the response returned by Clickatell. |
<clickatell_connection> | TEXT | is the name of the Clickatell 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> | TEXT | Contents of the message |
Send an SMS using Clickatell
The following snippet sends the specified message to the specified number.
response = clickatell.sms.send("Clickatell", "+91XXXXXXXXXX", "Thank you for subscribing");
where:
Parameter | Description |
"Clickatell" | is the name of the Clickatell Connection |
"+91XXXXXXXXXX" | is the phone number to which the message will be sent |
"Thank you for subscribing" | is the message which will be sent |
response | is response returned as KEY-VALUE by Clickatell |
Response Format
Following is a sample success response returned by Clickatell:
{"status":"Success"}