hunter v0.5.1 Hunter.Client View Source

Defines a Hunter client

Link to this section Summary

Functions

Initializes a client

User agent of the client

Link to this section Types

Link to this type

t() View Source
t() :: %Hunter.Client{base_url: String.t(), bearer_token: String.t()}

Link to this section Functions

Link to this function

log_in(app, username, password, base_url \\ "https://mastodon.social") View Source

Retrieve access token

Parameters

  • app - application details, see: Hunter.Application.create_app/5 for more details.
  • username - your account's email
  • password - your password
  • base_url - API base url, default: https://mastodon.social

Initializes a client

Options

  • base_url - URL of the instance you want to connect to
  • bearer_token - [String] OAuth access token for your authenticated user
Link to this function

user_agent() View Source
user_agent() :: String.t()

User agent of the client