https://github.com/s1ntaxe770r/twiliowrapper
A simple Wrapper around the twilio libary for python
https://github.com/s1ntaxe770r/twiliowrapper
python twilio twilio-python
Last synced: 10 months ago
JSON representation
A simple Wrapper around the twilio libary for python
- Host: GitHub
- URL: https://github.com/s1ntaxe770r/twiliowrapper
- Owner: s1ntaxe770r
- Created: 2020-07-14T12:50:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T12:52:07.000Z (almost 6 years ago)
- Last Synced: 2025-06-02T10:06:18.525Z (12 months ago)
- Topics: python, twilio, twilio-python
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A simple wrapper for sending whatsapp messages with twilio
## Usage
* clone the repo
* create a ` .env file `
* There are three enviroment variables that need to be set
- TWILIO_ACCOUNT_SID='YOUR_ACCOUNT_SID'
- TWILIO_AUTH_TOKEN='YOUR_AUTH_TOKEN'
- FROM='-------'
* install the dependencies ` pip install -r requirements.txt `
### now you can import the script along with the ` .env file `
## Example
```python
from script import TwilioMessanger
# to send a message call the send() method
message = 'some random message'
recipeint = 'some_recepients_number'
TwilioMessanger.send(message,recepient)
# this should return True if all went well
```
### feel free to make a PR or create an issue if you find a bug or have a feature request
## leave a star :grin: