@api_key_only_webhook_view
@has_request_variables
def api_taiga_webhook(request, user_profile, stream=REQ(default='taiga'), topic=REQ(default='General')):

    try:
        message = ujson.loads(request.body)
    except __HOLE__:
        return json_error("Malformed JSON input")

    parsed_events = parse_message(message)

    content = ""
    for event in parsed_events:
        content += generate_content(event) + '\n'

    check_send_message(user_profile, get_client('ZulipTaigaWebhook'), 'stream', [stream], topic, content)

    return json_success()
dataset/ETHPy150Open zulip/zulip/zerver/views/webhooks/taiga.py/api_taiga_webhook