1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Updated API (markdown)

Eugen 2016-11-20 00:47:16 +01:00
parent 199feaf270
commit c603730024

52
API.md

@ -169,26 +169,38 @@ ___
## Status
* `id`
* `uri` - fediverse-unique resource ID
* `url` - URL to the status page (can be remote)
* `account` - Account
* `in_reply_to_id` - null or ID of status it replies to
* `reblog` - null or Status
* `content` - Body of the status. This will contain HTML (remote HTML already sanitized)
* `created_at`
* `reblogs_count`
* `favourites_count`
* `reblogged` - Boolean for authenticated user
* `favourited` - Boolean for authenticated user
* `media_attachments` - array of:
* `url` - URL of the original image (can be remote)
* `preview_url` - URL of the preview image
* `type` - Image or video
* `mentions` - array of:
* `url` - URL of user's profile (can be remote)
* `acct` - Username for local or username@domain for remote users
* `id` - Account ID
| Attribute | Description |
|---------------------|-------------|
| `id` ||
| `uri` | fediverse-unique resource ID |
| `url` | URL to the status page (can be remote) |
| `account` | Account |
| `in_reply_to_id` | null or ID of status it replies to |
| `reblog` | null or Status|
| `content` | Body of the status. This will contain HTML (remote HTML already sanitized) |
| `created_at` ||
| `reblogs_count` ||
| `favourites_count` ||
| `reblogged` | Boolean for authenticated user |
| `favourited` | Boolean for authenticated user |
| `media_attachments` | array of MediaAttachments |
| `mentions` | array of Mentions |
Media Attachment:
| Attribute | Description |
|---------------------|-------------|
| `url` | URL of the original image (can be remote) |
| `preview_url` | URL of the preview image |
| `type` | Image or video |
Mention:
| Attribute | Description |
|---------------------|-------------|
| `url` | URL of user's profile (can be remote) |
| `acct` | Username for local or username@domain for remote users |
| `id` | Account ID |
## Account