cic-internal-integration/apps/cic-notify/scripts/send_sms.py

13 lines
247 B
Python
Raw Permalink Normal View History

2021-02-07 03:29:24 +01:00
# local imports
import cic_notify
# third-part imports
import celery
# TODO: Add configurable backend
celery_app = celery.Celery(broker='redis:///', backend='redis:///')
api = cic_notify.Api('cic-notify')
print(api.sms('+25412121212', 'foo'))