def _http_resource(self, method, resource, params=None, data=None):

        if not is_collection(resource):
            resource = [resource]

        url = self._url_for(*resource)
        r = self._s.request(method, url, params=params, data=data)

        r.raise_for_status()

        return r
Makes an HTTP request.
dataset/ETHPy150Open kennethreitz-archive/python-github3/github3/api.py/GithubCore._http_resource