%h3 OAuth2
%p All API methods require a valid access token.
%h3 Statuses
%ul.api-descriptions
%li
.address
%samp.method GET
%samp /api/statuses/home
.description
Returns user's home timeline
%samp /api/statuses/mentions
Returns user's mentions timeline
%samp.method POST
%samp /api/statuses
.options
Options:
= succeed ',' do
%samp status
%samp in_reply_to_id
Creates a new status, optionally as a response to another, from user's account. Returns the new status.
%samp /api/statuses/:id
Returns a single status
%samp /api/statuses/:id/reblog
Reblogs a status from user's account. Returns the target status.
%samp /api/statuses/:id/favourite
Favourites a status from user's account. Returns the target status.
%h3 Accounts
%samp /api/accounts/:id
Returns a single account
%samp /api/accounts/:id/statuses
Returns an account's statuses
%samp /api/accounts/:id/followers
Returns accounts following an account
%samp /api/accounts/:id/following
Returns the accounts the target account follows
%samp /api/accounts/:id/follow
Follows target account from the user's account. Returns the target account.
%samp /api/accounts/:id/unfollow
Unfollows target account from the user's account. Returns the target account.
%h3 Follows
%samp /api/follows
%samp uri
Follows a user, regardless of where they are, from user's account. URI assumed to be of username@domain form. Returns the target account.