API : Text messages from https://www.twilio.com/

If you need text / sms notification or alerts to be triggered by your program when https://www.twilio.com/ is the best option. You can consume it in any language like java, python, node etc. Simple to use and very effective.

Here is its code base in python : https://github.com/twilio/twilio-python

Use case :

  1. Bank account it going through some suspicious activities and need text alert.
  2. Text appointment reminder to customers.
  3. Text status of services etc.

Sample code of usage.

__author__ = ‘asee2278’
import twilio

from twilio.rest import TwilioRestClient

# put your own credentials here
ACCOUNT_SID = “AC72b94808df4448e5923b27258493df48”
AUTH_TOKEN = “XXXXXXXXXXXX”

client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)

message = client.messages.create(
to=”+13045047736″,
from_=”+16814044918″,
body=”Test message “,
)

print message.sid

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s