import requests


def _get_data(input_params):
    """
    Makes a single call to the ServiceNow API and returns the json response

    Parameters
    ----------
    input_params: tuple
        A tuple where [0] is equal to the API username, [1] is equal to the
        API user password, and [2] is equal to the query (or URL)
    """
    api_user = input_params[0]
    api_password = input_params[1]
    query_string = input_params[2]
    result = requests.get(query_string, auth=(api_user, api_password)).json()
    return result