https://github.com/masaar/limp_gateway_unifonic
LIMP Gateway for Unifonic
https://github.com/masaar/limp_gateway_unifonic
gateway limp unifonic
Last synced: 3 months ago
JSON representation
LIMP Gateway for Unifonic
- Host: GitHub
- URL: https://github.com/masaar/limp_gateway_unifonic
- Owner: masaar
- License: lgpl-3.0
- Created: 2019-11-02T17:01:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-26T13:18:07.000Z (over 6 years ago)
- Last Synced: 2026-01-02T23:14:46.105Z (7 months ago)
- Topics: gateway, limp, unifonic
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LIMP Gateway for Unifonic
This repo is a [LIMP](https://github.com/masaar/limp) [Package](https://github.com/masaar/limp-docs/blob/APIv5.8/api/package.md) for the sole purpose of integrating [Unifonic SMS](https://www.unifonic.com/SMS) into LIMP apps using [LIMP Gateways](https://github.com/masaar/limp-docs/blob/APIv5.8/api/gateways.md).
## How-to
1. Clone this repo into your LIMP `modules` folder.
2. Add following to your app package config:
```python
'vars':{
'unifonic':{'sid':'YOUR_UNIFONIC_SID_HERE'}
}
```
3. Unifonic gateway requires following args:
1. `phone`: Target phone number using international format with prefixed `+`. Type `str`.
2. `content`: Message body. Type `str`.
4. Unifnoic gateway accepts optional arg, namely `unifonic_auth`, replicating `unifonic` value in `vars Config Attr` for dynamic Unifonic API credentials.
5. Use Unifonic gateway using LIMP Gateway Controller:
```python
from gateway import Gateway
Gateway.send(gateway='unifonic', phone=phone, content=content)
```