import requests


def object_store_get(api_key, object_type, object_id):
    """
    Fetches an object of specific type from the Object Store
    :param api_key: Import.io API Key
    :param object_type: Type of object: crawlrun, extractor, etc
    :param object_id: Unique identifier of an object
    :return: response
    """
    url = "https://store.import.io/store/{0}/{1}".format(object_type, object_id)
    querystring = {
        "_apikey": api_key
    }
    headers = {
        'accept': "application/json",
        'cache-control': "no-cache",
    }
    response = requests.request("GET", url, headers=headers, params=querystring)
    return response