This repo is a Nawah Package that allows developers to integrate Unifonic SMS into Nawah apps using Gateway Controller.
- From your app directory run:
nawah packages add gateway_unifonic
- Add
unifonic
Var tonawah_app.py
App Config:
vars = {
'unifonic': {'sid': 'UNIFONIC_SID'}
}
unifonic
gateway requires following args:phone
: Target phone number using international format with prefixed+
. Typestr
.content
: Message body. Typestr
.
unifonic
gateway accepts optional arg, namelyunifonic_auth
, replicatingunifonic
value invars Config Attr
for dynamic Unifonic API credentials.- Use
unifonic
gateway using Nawah Gateway Controller:
from nawah.gateway import Gateway
Gateway.send(gateway='unifonic', phone=phone, content=content)