Ejemplo n.º 1
0
def api_chat():
    offset = False
    if request.args.get('offset'):
        offset = request.args.get('offset')

    chats = fetch_chats(request, offset)
    return json.dumps(chats)
Ejemplo n.º 2
0
def api_chat():
    offset = False
    if request.args.get('offset'):
        offset = request.args.get('offset')

    try:
        chats = fetch_chats(request, offset)
    except Exception as e:
        return str(e)

    return json.dumps(chats)
Ejemplo n.º 3
0
def api_chat():
    offset = False
    if request.args.get('offset'):
        offset = request.args.get('offset')

    try:
        chats = fetch_chats(request, offset)
    except Exception as e:
        return str(e)

    return json.dumps(chats)