Instance entity
This module defines a Hunter.Instance struct and the main functions
for working with Instances.
Fields
domain- The instance's domain nametitle- The instance's titleversion- The Mastodon version used by instancesource_url- The URL for the source code of the software running this instancedescription- A short, plain-text description of the instanceusage- Statistics about how much use the instance has seenthumbnail- Assets associated with server brandinglanguages- Primary languages of the instance and its staffconfiguration- Configured values and limits for this instanceregistrations- Information about registering for this instancecontact- Hints related to contacting a representative of the instancerules- An itemized list of rules for this instance
Summary
Functions
Retrieve instance information
Types
Functions
@spec instance_info(Hunter.Client.t()) :: t()
Retrieve instance information
Parameters
conn- connection credentials
Examples
iex> conn = Hunter.new([base_url: "https://social.lou.lt", access_token: "123456"])
%Hunter.Client{base_url: "https://social.lou.lt", access_token: "123456"}
iex> Hunter.Instance.instance_info(conn)
%Hunter.Instance{description: "Mostly French instance - <a href=\"/about/more#rules\">Read full description</a> for rules.",
domain: "social.lou.lt", title: "Loultstodon", version: "4.3.8"}