Notifications
public struct Notifications
Undocumented
-
Fetches a user’s notifications.
Declaration
Swift
public static func all(range: RequestRange = .default) -> Request<[Notification]>Parameters
rangeThe bounds used when requesting data from Mastodon.
Return Value
Request for
[Notification]. -
Gets a single notification.
Declaration
Swift
public static func notification(id: String) -> Request<Notification>Parameters
idThe notification id.
Return Value
Request for
Notification. -
Deletes all notifications for the authenticated user.
Return Value
Request for
Empty. -
Deletes a single notification for the authenticated user.
Parameters
idThe notification id.
Return Value
Request for
Empty.
View on GitHub
Install in Dash
Notifications Structure Reference