hunter v0.3.0 Hunter.Notification

Notification entity

This module defines a Hunter.Notification struct and the main functions for working with Notifications.

Fields

  • id - The notification ID
  • type - One of: “mention”, “reblog”, “favourite”, “follow”
  • created_at - The time the notification was created
  • account - The Hunter.Account sending the notification to the user
  • status - The Hunter.Status associated with the notification, if applicable

Summary

Functions

Deletes all notifications from the Mastodon server for the authenticated user

Retrieve single notification

Retrieve user’s notifications

Types

t()
t() :: %Hunter.Notification{account: Hunter.Account.t, created_at: String.t, id: String.t, status: Hunter.Status.t, type: String.t}

Functions

clear_notifications(conn)
clear_notifications(Hunter.Client.t) :: map

Deletes all notifications from the Mastodon server for the authenticated user

Parameters

  • conn - connection credentials
notification(conn, id)
notification(Hunter.Client.t, non_neg_integer) :: Hunter.Notification.t

Retrieve single notification

Parameters

  • conn - connection credentials
  • id - notification identifier
notifications(conn)

Retrieve user’s notifications

Parameters

  • conn - connection credentials