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