-
Notifications
You must be signed in to change notification settings - Fork 135
Client Twilio
Twilio, among many messaging options provides cost-effective worldwide SMS messaging platform.
For a description on how to register your bot with Twilio and obtain the necessary security tokens read the Twilio Documentation
The Twilio client operates as a RESTfl webhook server that Twilio calls whenever it receives a message. We configure these settings as follows in config.yaml
twilio:
host: 127.0.0.1
port: 5000
debug: false
Twilio developer portal provides the Accoutn SID for your bot and the Authentication token. You will also need to purchase a telephone number with SMS rights, and this is also included in license.keys as follows
TWILIO_ACCOUNT_SID = AC5a29c358a204df93efdc0eafbe9d98ff
TWILIO_AUTH_TOKEN = 624dba32525be7a8063a7ccccd26c595
TWILIO_FROM_NUMBER = +441315105590
You can then run the Twilio client with the following shell script
#! /bin/sh
clear
export PYTHONPATH=../../src:.
python3 ../../src/programy/clients/twilio_client.py --config ./config.yaml --cformat yaml --logging ./logging.yaml
Email: [email protected] | Twitter: @keiffster | Facebook: keith.sterling | LinkedIn: keithsterling | My Blog
- Home
- Background
- Guiding Principles
- Reporting an Issue
- Installation
- You And Your Bot
- Bots
- Clients
- Configuration
- AIML
- Sentence Splitting
- Natural Langauge Processing
- Normalization
- Spelling
- Sentiment Analysis
- Translation
- Security
- Hot Reload
- Logging
- Out of Band
- Multi Language
- RDF Support
- Rich Media
- Asynchronous Events
- Triggers
- External Services
- Dynamic Sets, Maps & Vars
- Extensions
- Pre & Post Processors
- Custom Nodes
- The Brain Tree
- Utilities
- Building It Yourself
- Creating Your Own Bot
- Contributing
- Performance Testing
- FAQ
- History
- Website