def make_rest_call(url, secret_key):
    """Connect to SecurityScorecard api and returns json data.

    :param url: str
    :param secret_key: str
    :return: json
    """
    headers = {
        "Accept": "application/json; charset=utf-8",
        'Authorization': 'Token {}'.format(secret_key),
        "X-SSC-Application-Name": "Microsoft Sentinel",
        "X-SSC-Application-Version": "1.0",
    }
    params = {'timing': 'daily'}
    response = requests.get(url, headers=headers, params=params)
    response.raise_for_status()
    return response.json()
Connect to SecurityScorecard api and returns json data.

    :param url: str
    :param secret_key: str
    :return: json
    
Solutions/SecurityScorecard Cybersecurity Ratings/Data Connectors/SecurityScorecardFactor/SecurityScorecardFactorSentinelConnector/utils.py