onadata.apps.sms_support.providers package

Submodules

onadata.apps.sms_support.providers.smssync module

Ushaidi’s SMSSync gateway

Supports Receiving and replying SMS from/to the SMSSync App.

See: http://smssync.ushahidi.com/doc

onadata.apps.sms_support.providers.smssync.autodoc(url_root, username, id_string)
onadata.apps.sms_support.providers.smssync.get_response(data)
onadata.apps.sms_support.providers.smssync.import_submission(request, username)

Proxy to import_submission_for_form with None as id_string

onadata.apps.sms_support.providers.smssync.import_submission_for_form(request, username, id_string)

Retrieve and process submission from SMSSync Request

onadata.apps.sms_support.providers.smssync.process_message_for_smssync(username, sms_identity, sms_text, sms_time, id_string)

Process a text instance and return in SMSSync expected format

onadata.apps.sms_support.providers.telerivet module

Telerivet WebHook gateway

Supports Receiving and replying SMS from/to Telerivet Service

See: http://telerivet.com/help/api/webhook/receiving

onadata.apps.sms_support.providers.telerivet.autodoc(url_root, username, id_string)
onadata.apps.sms_support.providers.telerivet.get_response(data)
onadata.apps.sms_support.providers.telerivet.import_submission(request, username)

Proxy to import_submission_for_form with None as id_string

onadata.apps.sms_support.providers.telerivet.import_submission_for_form(request, username, id_string)

Retrieve and process submission from SMSSync Request

onadata.apps.sms_support.providers.telerivet.process_message_for_telerivet(username, sms_identity, sms_text, sms_time, id_string)

Process a text instance and return in SMSSync expected format

onadata.apps.sms_support.providers.textit module

Nyaruka’s TextIt gateway

Supports Receiving and sending reply SMS from/to the TextIt App.

See: https://textit.in/api/v1/webhook/

onadata.apps.sms_support.providers.textit.autodoc(url_root, username, id_string)
onadata.apps.sms_support.providers.textit.get_response(data)
onadata.apps.sms_support.providers.textit.import_submission(request, username)

Proxy to import_submission_for_form with None as id_string

onadata.apps.sms_support.providers.textit.import_submission_for_form(request, username, id_string)

Retrieve and process submission from SMSSync Request

onadata.apps.sms_support.providers.textit.process_message_for_textit(username, sms_identity, sms_text, sms_time, id_string, payload={})

Process a text instance and return in SMSSync expected format

onadata.apps.sms_support.providers.textit.send_sms_via_textit(payload)

onadata.apps.sms_support.providers.twilio module

Twilio SMS gateway

Supports Receiving and replying SMS from/to Twilio. URL must be set to POST method in Twilio.

See: http://www.twilio.com/docs/api/twiml/sms/twilio_request

http://www.twilio.com/docs/api/twiml/sms/your_response

onadata.apps.sms_support.providers.twilio.autodoc(url_root, username, id_string)
onadata.apps.sms_support.providers.twilio.get_response(data)
onadata.apps.sms_support.providers.twilio.import_submission(request, username)

Proxy to import_submission_for_form with None as id_string

onadata.apps.sms_support.providers.twilio.import_submission_for_form(request, username, id_string)

Retrieve and process submission from SMSSync Request

onadata.apps.sms_support.providers.twilio.process_message_for_twilio(username, sms_identity, sms_text, sms_time, id_string)

Process a text instance and return in SMSSync expected format

Module contents

onadata.apps.sms_support.providers.import_submission(request, username, service)

Proxy to the service’s import_submission view

onadata.apps.sms_support.providers.import_submission_for_form(request, username, id_string, service)

Proxy to the service’s import_submission_for_form view

onadata.apps.sms_support.providers.providers_doc(url_root, username, id_string)
onadata.apps.sms_support.providers.unknown_service(request, username=None, id_string=None)

400 view for request with unknown service name