def METHOD_NAME(self, suburl, params=None, raise_for_status=True):
    if params:
        r = requests.post(self.APIBASE + suburl,
                          list(self._api_encode(params)),
                          auth=HTTPBasicAuth(self.secret_key, ''),
                          headers={
                              'Stripe-Version': self.APIVERSION,
                          },
        )
    else:
        r = requests.get(self.APIBASE + suburl,
                         auth=HTTPBasicAuth(self.secret_key, ''),
                         headers={
                             'Stripe-Version': self.APIVERSION,
                         },
        )
    if raise_for_status:
        r.raise_for_status()
    return r