...
Sign up for a developer account at Twilio
Study the Twilio API documentation for sending an SMS and making Twilio requests.
Generate an
account_sid
and the correspondingauth_token
Create a local file holding these keys. Do not check it in to any public repository.
Create a Twilio module to wrap their API:
Write a function to return a page of messages sent
Write a user-defined action to send an SMS
Write another ruleset to use and test your Twilio module by:
calling the function and returning the messages
defining a rule which actually sends an SMS
Note |
---|
The code below does not work with v1.0.x of the pico-engine |
An SMS Action
Our first attempt will ignore some aspects of creating a useful module in order to just get something that works. Later we'll come back and clean those up.
...