code: def _request_url(self,
                       url,
                       method,
                       params=None,
                       data=None,
                       files=None,
                       with_client_id=False,
                       with_access_token=False):
          
          headers = {}  # type: Dict[str, Any]
          if data is None:
              data = {}
          if params is None:
              params = {}
  
          if with_client_id and self._client_id is not None:
              params['client_id'] = self._client_id
  
          if with_access_token and self._access_token is not None:
              headers['Authorization'] = "Bearer " + self._access_token
  
          try:
              return requests.request(method, url,
                                      params=params,
                                      data=data,
                                      files=files,
                                      headers=headers)
          except requests.RequestException as e:
              raise GyazoError(str(e))
docs: Send HTTP request
  
          :param url: URL
          :param method: HTTP method (get, post or delete)
          :param with_client_id: send request with client_id (default: false)
          :param with_access_token: send request with with_access_token
                                    (default: false)
          :raise GyazoError: