code: def request(self, method, url, **kwargs):
          
  
          if "data" in kwargs:
              kwargs["data"] = json.dumps(kwargs["data"])
  
          kwargs["headers"] = {
              'Content-Type': 'application/json',
              'Authorization': 'token %s' % self.__token__,
          }
          req = make_request(
              method,
              url,
              **kwargs
          )
          self.logger.debug(
              "Request::{}::{}".format(method, url),
              extra={
                  "request": kwargs,
                  "response": {"headers": req.headers, "code": req.status_code, "data": req.content}
              }
          )
          return req
docs: Unified method to make request to the Github API
  
          :param method: HTTP Method to use
          :param url: URL to reach
          :param kwargs: dictionary of arguments (params for URL parameters, data for post/put data)
          :return: Response