Resources

Renesas IoT Sandbox Documentation

Twilio SMS Library

The following functions provide Twilio SMS messaging capability. If you do not have a Twilio account, you can use the SMS Library instead although it will use 100 Workflow Credits instead of 1.


Import


To use this library and its functions, you must use the import line at the beginning of your Base Python code.

import Twilio


Functions


Twilio.sendSMS

Usage: Twilio.sendSMS(sender, recipient, body, account_sid, auth_token)

Send an SMS message from sender phone number to recipient phone number.

  • Credit cost: 1
  • Parameters:
    • sender: string sender's phone number (North America only).
    • recipient: string recipient's phone number (North America only).
    • body: string the body of the message.
    • account_sid: string user provided Twilio Account SID number.
    • auth_token: string user provided Twilio authentication token.
  • Returns:
    • the result is None if all goes well, or an error message from the service

Sample Code

import Twilio

result = Twilio.sendSMS('5555555555','5555555555','Hello from Renesas IoT Sanbox!','YOUR_TWILIO_ACCOUNT_SID_HERE','YOUR_TWILIO_TOKEN_HERE')

Getting Started
User Roles & Permissions
Streams, Tags, & Data Types
Dashboard Widgets
API
Workflow Studio
Workflow Libraries
Metering
Special Characters
Third Party Integration
Mobile
API Explorer

Twilio SMS Library

The following functions provide Twilio SMS messaging capability. If you do not have a Twilio account, you can use the SMS Library instead although it will use 100 Workflow Credits instead of 1.


Import


To use this library and its functions, you must use the import line at the beginning of your Base Python code.

import Twilio


Functions


Twilio.sendSMS

Usage: Twilio.sendSMS(sender, recipient, body, account_sid, auth_token)

Send an SMS message from sender phone number to recipient phone number.

  • Credit cost: 1
  • Parameters:
    • sender: string sender's phone number (North America only).
    • recipient: string recipient's phone number (North America only).
    • body: string the body of the message.
    • account_sid: string user provided Twilio Account SID number.
    • auth_token: string user provided Twilio authentication token.
  • Returns:
    • the result is None if all goes well, or an error message from the service

Sample Code

import Twilio

result = Twilio.sendSMS('5555555555','5555555555','Hello from Renesas IoT Sanbox!','YOUR_TWILIO_ACCOUNT_SID_HERE','YOUR_TWILIO_TOKEN_HERE')