

def get(self, request, api_key, *args, **kwargs):
    msg = request.GET.get('msg', None)
    snr = request.GET.get('snr', None)
    to = request.GET.get('to', None)
    if ((not msg) or (not snr)):
        return HttpResponseBadRequest('ERROR: Missing msg or snr')
    incoming(snr, msg, SQLSMSGHBackend.get_api_id())
    return HttpResponse('')

dataset/ETHPy150Open dimagi/commcare-hq/corehq/messaging/smsbackends/smsgh/views.py SMSGHIncomingView.get/original