hunter v0.5.1 Hunter.Client View Source
Defines a Hunter
client
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
log_in(app, username, password, base_url \\ "https://mastodon.social")
View Source
log_in(app, username, password, base_url \\ "https://mastodon.social")
View Source
log_in(Hunter.Application.t(), String.t(), String.t(), String.t()) ::
Hunter.Client.t()
log_in(Hunter.Application.t(), String.t(), String.t(), String.t()) :: Hunter.Client.t()
Retrieve access token
Parameters
app
- application details, see:Hunter.Application.create_app/5
for more details.username
- your account's emailpassword
- your passwordbase_url
- API base url, default:https://mastodon.social
Link to this function
new(options \\ [])
View Source
new(options \\ [])
View Source
new(Keyword.t()) :: Hunter.Client.t()
new(Keyword.t()) :: Hunter.Client.t()
Initializes a client
Options
base_url
- URL of the instance you want to connect tobearer_token
- [String] OAuth access token for your authenticated user
Link to this function
user_agent()
View Source
user_agent()
View Source
user_agent() :: String.t()
user_agent() :: String.t()
User agent of the client