(
self, method, url, withhold_token=False, auth=USE_CLIENT_DEFAULT, **kwargs
)
| 271 | return super().request(method, url, auth=auth, **kwargs) |
| 272 | |
| 273 | def stream( |
| 274 | self, method, url, withhold_token=False, auth=USE_CLIENT_DEFAULT, **kwargs |
| 275 | ): |
| 276 | if not withhold_token and auth is USE_CLIENT_DEFAULT: |
| 277 | if not self.token: |
| 278 | raise MissingTokenError() |
| 279 | |
| 280 | if not self.ensure_active_token(self.token): |
| 281 | raise InvalidTokenError() |
| 282 | |
| 283 | auth = self.token_auth |
| 284 | |
| 285 | return super().stream(method, url, auth=auth, **kwargs) |