Example #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)
Example #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)
Example #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)