Example #1
0
def incoming(request):
    """
    The inbound endpoint for UNICEL's API.
    """
    # for now just save this information in the message log and return
    message = api.create_from_request(request)
    return HttpResponse("Received: %s" % message)
Example #2
0
def incoming(request):
    """
    The inbound endpoint for UNICEL's API.
    """
    # for now just save this information in the message log and return
    message = api.create_from_request(request)
    return HttpResponse(json.dumps({"status": "success", "message_id": message._id}), "text/json")
Example #3
0
def incoming(request):
    """
    The inbound endpoint for UNICEL's API.
    """
    # for now just save this information in the message log and return
    message = api.create_from_request(request)
    return HttpResponse(
        json.dumps({
            'status': 'success',
            'message_id': message._id
        }), 'text/json')