def process_message_for_twilio(username,
                               sms_identity, sms_text, sms_time, id_string):

    if not sms_identity or not sms_text:
        return get_response({'code': SMS_API_ERROR,
                             'text': _(u"`identity` and `message` are "
                                       u"both required and must not be "
                                       u"empty.")})

    incomings = [(sms_identity, sms_text)]
    response = process_incoming_smses(username, incomings, id_string)[-1]

    return get_response(response)
Process a text instance and return in SMSSync expected format
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/sms_support/providers/twilio.py/process_message_for_twilio