-
Notifications
You must be signed in to change notification settings - Fork 5
Scheduler
pacharanero edited this page May 17, 2015
·
3 revisions
The scheduler is based on Celery and Redis and accepts new scheduled calls/SMS via a JSON object:
var = {
'message': 'text of the SMS message you want to send',
'audiourl': 'URL for the MP3 file of the audio message',
'telnumber': '07555555555',
'reminder_times': [
'0 7 * * *',
'30 12 * * *',
'45 8 * * *',
]
}
- if the
'message'
key is present and has a valid value then an SMS will be sent and this will over-ride sending of an audio message if both'message'
and'audiourl'
is specified. -
'telnumber'
can be prepended with the international dialling code (eg in the UK '+44') however this is not mandatory. -
'reminder_times'
are supplied as an array of strings, specified in cron notation format. Times can be scheduled to a minimum 'resolution' of 15 minutes.