hunter v0.2.0 Hunter.Api.HTTPClient
HTTP Client for Hunter
Summary
Functions
Retrieve account
Block a user
Register a new OAuth client app on the target instance
Create new status
Destroy status
Favorite a status
Fetch a user’s favourites
Follow a user
Follow a remote user
Get a list of followers
Get a list of followed accounts
Retrieve statuses from a hashtag
Retrieve statuses from the home timeline
Mute a user
Retrieve statuses from the public timeline
Reblog a status
Get the relationships of authenticated user towards given other users
Search for content
Retrieve status
Get a list of statuses by a user
Unblock a user
Undo a favorite of a status
Unfollow a user
Unmute a user
Undo a reblog of a status
Upload a media file
Retrieve account of authenticated user
Functions
Retrieve account
Parameters
conn- connection credentialsid- account identifier
Callback implementation for Hunter.Api.account/2.
Block a user
Parameters
conn- connection credentialsid- user identifier
Callback implementation for Hunter.Api.block/2.
Register a new OAuth client app on the target instance
Parameters
conn- connection credentialsnameredirect_uriscopeswebsite
Callback implementation for Hunter.Api.create_app/5.
Create new status
Parameters
conn- connection credentialstext- [String]in_reply_to_id- [Integer]media_ids- [Array]
Callback implementation for Hunter.Api.create_status/4.
Destroy status
Parameters
conn- connection credentialsid- status identifier
Callback implementation for Hunter.Api.destroy_status/2.
Favorite a status
Parameters
conn- connection credentialsid- status identifier
Callback implementation for Hunter.Api.favourite/2.
Fetch a user’s favourites
Parameters
conn- connection credentials
Callback implementation for Hunter.Api.favourites/1.
Follow a user
Parameters
conn- connection credentialsid- user id
Callback implementation for Hunter.Api.follow/2.
Follow a remote user
Parameters
conn- connection credentialsuri- URI of the remote user, in the format ofusername@domain
Callback implementation for Hunter.Api.follow_by_uri/2.
Get a list of followers
Parameters
conn- connection credentialsid- account identifier
Callback implementation for Hunter.Api.followers/2.
Get a list of followed accounts
Parameters
conn- connection credentialsid- account identifier
Callback implementation for Hunter.Api.following/2.
Retrieve statuses from a hashtag
Parameters
conn- connection credentialshashtag- list of strings
Options
max_id- [Integer]since_id- [Integer]limit- [Integer]
Callback implementation for Hunter.Api.hashtag_timeline/3.
Retrieve statuses from the home timeline
Parameters
conn- connection credentialsoptions- option list
Options
max_id- [Integer]since_id- [Integer]limit- [Integer]
Callback implementation for Hunter.Api.home_timeline/2.
Mute a user
Parameters
conn- connection credentialsid- user identifier
Callback implementation for Hunter.Api.mute/2.
Retrieve statuses from the public timeline
Parameters
conn- connection credentialsoptions- option list
Options
max_id- [Integer]since_id- [Integer]limit- [Integer]
Callback implementation for Hunter.Api.public_timeline/2.
Reblog a status
Parameters
conn- connection credentialsid- status identifier
Callback implementation for Hunter.Api.reblog/2.
Get the relationships of authenticated user towards given other users
Parameters
id- list of relationship IDs
Callback implementation for Hunter.Api.relationships/1.
Search for content
Parameters
conn- connection credentialsq- the search queryoptions- option list
Options
resolve- whether to resolve non-local accounts
Callback implementation for Hunter.Api.search/3.
Retrieve status
Parameters
conn- connection credentialsid- status identifier
Callback implementation for Hunter.Api.status/2.
Get a list of statuses by a user
Parameters
conn- connection credentialsaccount_id- account identifieroptions- option list
Options
max_id- [Integer]since_id- [Integer]limit- [Integer]
Callback implementation for Hunter.Api.statuses/3.
Unblock a user
conn- connection credentialsid- user identifier
Callback implementation for Hunter.Api.unblock/2.
Undo a favorite of a status
Parameters
conn- connection credentialsid- status identifier
Callback implementation for Hunter.Api.unfavourite/2.
Unfollow a user
Parameters
conn- connection credentialsid- user identifier
Callback implementation for Hunter.Api.unfollow/2.
Unmute a user
Parameters
conn- connection credentialsid- user identifier
Callback implementation for Hunter.Api.unmute/2.
Undo a reblog of a status
Parameters
conn- connection credentialsid- status identifier
Callback implementation for Hunter.Api.unreblog/2.
Upload a media file
Parameters
conn- connection credentialsfile- media to be uploaded
Callback implementation for Hunter.Api.upload_media/2.
Retrieve account of authenticated user
Parameters
conn- connection credentials
Callback implementation for Hunter.Api.verify_credentials/1.