lookupNotifications abstract method

Future<MastodonResponse<List<Notification>>> lookupNotifications({
  1. String? maxNotificationId,
  2. String? sinceNotificationId,
  3. String? minNotificationId,
  4. int? limit,
  5. List<NotificationType>? types,
  6. List<NotificationType>? excludeTypes,
  7. String? accountId,
})

Notifications concerning the user.

Parameters

  • maxNotificationId: Return results older than this ID.

  • sinceNotificationId: Return results newer than this ID

  • minNotificationId: Return results immediately newer than this ID

  • limit: Maximum number of results to return. Defaults to 15 notifications. Max 30 notifications.

  • types: Types to include in the result.

  • excludeTypes: Types to exclude from the results.

  • accountId: Return only notifications received from the specified account.

Endpoint Url

  • GET /api/v1/notifications HTTP/1.1

Authentication Methods

  • OAuth 2.0

Required Scopes

  • read:notifications

Reference

Implementation

Future<MastodonResponse<List<Notification>>> lookupNotifications({
  String? maxNotificationId,
  String? sinceNotificationId,
  String? minNotificationId,
  int? limit,
  List<NotificationType>? types,
  List<NotificationType>? excludeTypes,
  String? accountId,
});