import requests


def get_json(url, auth=None, headers=None):
    """Using reqests, perform a get on the appropriate URL.
    Return the json if you get a 200 status code on the response,
    otherwise return an empty object."""

    req = requests.get(url, auth=auth, headers=headers)
    if req.status_code == 200:
        return req.json()
    else:
        return {}