Notifications
- class Notification(...)
- delete()
Delete the resource. Requires the respective permission.
- last_request_age_s()
- Returns:
time in seconds since the last request
- Return type:
float | None
- reload(expand=False)
Update the object properties by requesting the current data from the server.
- Parameters:
expand – if
Truethe properties will contain additional information.
Note
if
EXPANDED_ATTRIBUTEScontains'*'expand will always beTrue
- update(**kwargs)
Update the resource properties.
- Parameters:
kwargs – values to be updated (depending on the resource)
- Returns:
a new instance of the updated resource
- Return type:
same as object
- view()
returns a mapping view of the objects internal properties as returned by the REST API.
- EXPANDED_ATTRIBUTES = ('*', 'created_by', 'object', 'type', 'updated_by', 'user')
- created_at: datetime
- id
- object: str
- parent: Notifications
- seen: bool
- type: str
- updated_at: datetime
- url
the API endpoint URL