Defines a Hunter client
Summary
Types
Functions
@spec log_in(Hunter.Application.t(), String.t(), String.t(), String.t()) :: t()
Retrieve access token
Parameters
app- application details, see:Hunter.Application.create_app/5for more details.username- your account's emailpassword- your passwordbase_url- API base url, default:https://mastodon.social
@spec log_in_oauth(Hunter.Application.t(), String.t(), String.t()) :: t()
Retrieve access token
Parameters
app- application details, see:Hunter.Application.create_app/5for more details.oauth_code- oauth authentication codebase_url- API base url, default:https://mastodon.social
Initializes a client
Options
base_url- URL of the instance you want to connect toaccess_token- [String] OAuth access token for your authenticated user
@spec user_agent() :: String.t()
User agent of the client