twilio
Provides methods for working with Twilio service.
getLastSentApiSms
Retrieves last SMS message sent from API.
Parameters:
Name | Type | Description |
---|---|---|
|
| Specifies whether to delete the message after reading it. |
|
| Timeout in milliseconds for waiting for the message to arrive. |
|
|
|
Returns:
String
- SMS text.
getLastSms
Retrieves last SMS message.
Parameters:
Name | Type | Description |
---|---|---|
|
| Specifies whether to delete the message after reading it. |
|
| Timeout in milliseconds for waiting for the message to arrive. |
|
|
|
|
|
|
Returns:
String
- SMS text.
init
Set Twilio authentication details.
Parameters:
Name | Type | Description |
---|---|---|
|
| Account SID. |
|
| Authentication token. |
sendSms
Send an SMS.
** Usage example:**
Parameters:
Name | Type | Description |
---|---|---|
|
| Phone number to send from. |
|
| Phone number to send to. |
|
| Message to send. |
Returns:
String
- Message SID.
Last updated