code: def get_request(profile, resource):
      
      url = get_url(profile, resource)
      headers = get_headers(profile)
      response = requests.get(url, headers=headers)
      return response.json()
docs: Do a GET request to Github's API.
  
      Args:
  
          profile
              A profile generated from ``simplygithub.authentication.profile``.
              Such profiles tell this module (i) the ``repo`` to connect to,
              and (ii) the ``token`` to connect with.
  
          resource
              The part of a Github API URL that comes after ``.../:repo/git``.
              For instance, for ``.../:repo/git/commits``, it's ``/commits``.
  
      Returns:
          The body of the response, converted from JSON into a Python dict.