Example #1
0
def __get_results():
    __api_key_check(app, flask_request, __language())
    try:
        page = int(__get_value(flask_request, "page"))
    except:
        page = 1
    return jsonify(__select_results(__language(), page)), 200
Example #2
0
def __get_results():
    """
    get list of scan's results through the API

    Returns:
        an array of JSON scan's results if success otherwise abort(403)
    """
    __api_key_check(app, flask_request, __language())
    try:
        page = int(__get_value(flask_request, "page"))
    except:
        page = 1
    return jsonify(__select_results(__language(), page)), 200