hunter v0.4.1 Hunter.Client

Defines a Hunter client

Summary

Functions

Initializes a client

User agent of the client

Types

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

Functions

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

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
new(options \\ [])

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
user_agent()
user_agent() :: String.t

User agent of the client