hunter v0.1.0 Hunter.Account
Account entity
This module defines a Hunter.Account
struct and the main functions
for working with Accounts.
Fields
id
- the ID of the accountusername
- the username of the accountacct
- equalsusername
for local users, includes@domain
for remote onesdisplay_name
- the account’s display namenote
- Biography of userurl
- URL of the user’s profile page (can be remote)avatar
- URL to the avatar imageheader
- URL to the header imagelocked
- boolean for when the account cannot be followed without waiting for approval firstcreated_at
- the time the account was createdfollowers_count
- the number of followers for the accountfollowing_count
- the number of accounts the given account is followingstatuses_count
- the number of statuses the account has made
Summary
Functions
Retrieve account
Follow a remote user
Get a list of followers
Get a list of followed accounts
Retrieve account of authenticated user
Types
t()
t() :: %Hunter.Account{acct: String.t, avatar: URI.t, created_at: String.t, display_name: String.t, followers_count: non_neg_integer, following_count: non_neg_integer, header: URI.t, id: non_neg_integer, locked: String.t, note: String.t, statuses_count: non_neg_integer, url: URI.t, username: String.t}
Functions
Follow a remote user
Parameters
conn
- Connection credentialsuri
- URI of the remote user, in the format of username@domain