mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Created API (markdown)
parent
95e72aeb09
commit
28809f9b8a
1 changed files with 39 additions and 0 deletions
39
API.md
Normal file
39
API.md
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
## Posting a new status
|
||||||
|
|
||||||
|
**POST /api/statuses**
|
||||||
|
|
||||||
|
Form data:
|
||||||
|
|
||||||
|
- status: The text of the status
|
||||||
|
- in_reply_to_id (optional): local ID of the status you want to reply to
|
||||||
|
|
||||||
|
Returns the new status.
|
||||||
|
|
||||||
|
## Retrieving a timeline
|
||||||
|
|
||||||
|
**GET /api/statuses/home**
|
||||||
|
|
||||||
|
Returns statuses, most recent ones first.
|
||||||
|
|
||||||
|
Query parameters:
|
||||||
|
|
||||||
|
- offset (optional, default 0): Skip this many statuses
|
||||||
|
- limit (optional, default 20): Return this many statuses
|
||||||
|
|
||||||
|
## Following a remote user
|
||||||
|
|
||||||
|
**POST /api/follows**
|
||||||
|
|
||||||
|
Form data:
|
||||||
|
|
||||||
|
- uri: username@domain of the person you want to follow
|
||||||
|
|
||||||
|
Returns the local representation of the followed account.
|
||||||
|
|
||||||
|
## Reblogging and favouriting a status
|
||||||
|
|
||||||
|
TODO
|
||||||
|
|
||||||
|
## Following and unfollowing users
|
||||||
|
|
||||||
|
TODO
|
||||||
Loading…
Reference in a new issue