-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
In order to properly implement rate-limiting per these docs: https://developer.apple.com/documentation/retentionmessaging/identifying-rate-limits
We need to expose the response headers like this to access the Retry-After value
@define
class APIException(Exception):
http_status_code: int
api_error: Optional[APIError]
raw_api_error: Optional[int]
error_message: Optional[str]
response_headers: Optional[Dict[str, str]] = None # <---- add thisWill submit a PR shortly to add this functionality
Metadata
Metadata
Assignees
Labels
No labels