TwilioX

I’ve released TwilioX to VFPX.

Twilio is a service for sending text messages through their API. It’s costs are very reasonable – $1 a month and then .75 cents for each text. Twilio handles all the technical part of sending a text making things very easy.

The code for sending text is also pretty darn easy:

SET PROCEDURE TO w:\vfp7com\prog\TwilioX
PUBLIC o 
o = NEWOBJECT("TwilioX")
o.cAccount = "YourAccount" 
o.cAuthToken = "YourAuthToken" 
o.cFrom = "YourTwilioNumber" 

IF !o.SendText("ToNumber", "Messsage")
    ?"Send", "Failed", o.cErrorMessage
    return
ELSE
    * Good Send
endif
Advertisements

One thought on “TwilioX

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