@require_POST
@csrf_exempt
def import_submission_for_form(request, username, id_string):
    """ Retrieve and process submission from SMSSync Request """

    sms_identity = request.POST.get('From', '').strip()
    sms_text = request.POST.get('Body', '').strip()
    now_timestamp = datetime.datetime.now().strftime('%s')
    sent_timestamp = request.POST.get('time_created', now_timestamp).strip()
    try:
        sms_time = datetime.datetime.fromtimestamp(float(sent_timestamp))
    except __HOLE__:
        sms_time = datetime.datetime.now()

    return process_message_for_twilio(username=username,
                                      sms_identity=sms_identity,
                                      sms_text=sms_text,
                                      sms_time=sms_time,
                                      id_string=id_string)
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/sms_support/providers/twilio.py/import_submission_for_form