Merge pull request #432 from moko256/patch-0

Add document of emoji
This commit is contained in:
nightpool 2017-10-27 12:27:59 -04:00 committed by GitHub
commit 45b9e9b714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,7 @@ API overview
- [Attachment](#attachment) - [Attachment](#attachment)
- [Card](#card) - [Card](#card)
- [Context](#context) - [Context](#context)
- [Emoji](#emoji)
- [Error](#error) - [Error](#error)
- [Instance](#instance) - [Instance](#instance)
- [Mention](#mention) - [Mention](#mention)
@ -640,6 +641,14 @@ ___
| `ancestors` | The ancestors of the status in the conversation, as a list of [Statuses](#status) | no | | `ancestors` | The ancestors of the status in the conversation, as a list of [Statuses](#status) | no |
| `descendants` | The descendants of the status in the conversation, as a list of [Statuses](#status) | no | | `descendants` | The descendants of the status in the conversation, as a list of [Statuses](#status) | no |
### Emoji
| Attribute | Description | Nullable |
|--------------------------|------------------------------------|----------|
| `shortcode` | The shortcode of the emoji | no |
| `static_url` | URL to the emoji static image | no |
| `url` | URL to the emoji image | no |
### Error ### Error
| Attribute | Description | Nullable | | Attribute | Description | Nullable |
@ -716,6 +725,7 @@ ___
| `reblog` | `null` or the reblogged [Status](#status) | yes | | `reblog` | `null` or the reblogged [Status](#status) | yes |
| `content` | Body of the status; this will contain HTML (remote HTML already sanitized) | no | | `content` | Body of the status; this will contain HTML (remote HTML already sanitized) | no |
| `created_at` | The time the status was created | no | | `created_at` | The time the status was created | no |
| `emojis` | An array of [Emoji](#emoji) | yes |
| `reblogs_count` | The number of reblogs for the status | no | | `reblogs_count` | The number of reblogs for the status | no |
| `favourites_count` | The number of favourites for the status | no | | `favourites_count` | The number of favourites for the status | no |
| `reblogged` | Whether the authenticated user has reblogged the status | yes | | `reblogged` | Whether the authenticated user has reblogged the status | yes |