def METHOD_NAME(url, token):
    headers = {
        "Authorization": "token " + token,
        "User-Agent": "InfraBox"
    }
    url = os.environ['INFRABOX_GITHUB_API_URL'] + url
    # TODO(ib-steffen): allow custom ca bundles
    r = requests.get(url, headers=headers, verify=False)
    result = []
    result.extend(r.json())
    p = get_next_page(r)
    while p:
        r = requests.get(p, headers=headers, verify=False)
        p = get_next_page(r)
        result.extend(r.json())
    return result