Hunter.Application (hunter v0.7.0)

Copy Markdown View Source

Application entity

This module defines a Hunter.Application struct.

The struct covers both the Application entity embedded in statuses (name and website only) and the CredentialApplication entity returned when registering an app (which adds the client credentials).

Fields

  • id - identifier
  • name - the name of the application
  • website - the website associated with the application, if any
  • client_id - client id
  • client_secret - client secret
  • client_secret_expires_at - when the client secret expires, currently always 0 (never expires)
  • scopes - scopes requested when the app was registered
  • redirect_uris - redirect URIs the app was registered with
  • redirect_uri - redirect URI the app was registered with (deprecated since Mastodon 4.3 in favor of redirect_uris)

Summary

Types

t()

@type t() :: %Hunter.Application{
  client_id: String.t(),
  client_secret: String.t(),
  client_secret_expires_at: non_neg_integer() | nil,
  id: String.t(),
  name: String.t() | nil,
  redirect_uri: String.t() | nil,
  redirect_uris: [String.t()] | nil,
  scopes: [String.t()] | nil,
  website: String.t() | nil
}