(
self, method, url, withhold_token=False, auth=USE_CLIENT_DEFAULT, **kwargs
)
| 257 | raise OAuthError(error_type, error_description) |
| 258 | |
| 259 | def request( |
| 260 | self, method, url, withhold_token=False, auth=USE_CLIENT_DEFAULT, **kwargs |
| 261 | ): |
| 262 | if not withhold_token and auth is USE_CLIENT_DEFAULT: |
| 263 | if not self.token: |
| 264 | raise MissingTokenError() |
| 265 | |
| 266 | if not self.ensure_active_token(self.token): |
| 267 | raise InvalidTokenError() |
| 268 | |
| 269 | auth = self.token_auth |
| 270 | |
| 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 |
no test coverage detected