mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-09 00:15:58 -05:00
Updated API (markdown)
9
API.md
9
API.md
@@ -205,6 +205,7 @@ Form data:
|
||||
- `client_name`: Name of your application
|
||||
- `redirect_uris`: Where the user should be redirected after authorization (for no redirect, use `urn:ietf:wg:oauth:2.0:oob`)
|
||||
- `scopes`: This can be a space-separated list of the following items: "read", "write" and "follow" (see [this page](https://github.com/Gargron/mastodon/wiki/OAuth-details) for details on what the scopes do)
|
||||
- `website`: (optional) URL to the homepage of your app
|
||||
|
||||
Creates a new OAuth app. Returns `id`, `client_id` and `client_secret` which can be used with [OAuth authentication in your 3rd party app](https://github.com/Gargron/mastodon/wiki/Testing-with-cURL).
|
||||
|
||||
@@ -230,6 +231,7 @@ ___
|
||||
| `favourited` | Boolean for authenticated user |
|
||||
| `media_attachments` | array of MediaAttachments |
|
||||
| `mentions` | array of Mentions |
|
||||
| `application` | Application from which the status was posted |
|
||||
|
||||
Media Attachment:
|
||||
|
||||
@@ -247,6 +249,13 @@ Mention:
|
||||
| `acct` | Username for local or username@domain for remote users |
|
||||
| `id` | Account ID |
|
||||
|
||||
Application:
|
||||
|
||||
| Attribute | Description |
|
||||
|---------------------|-------------|
|
||||
| `name` | Name of the app |
|
||||
| `website` | Homepage URL of the app |
|
||||
|
||||
## Account
|
||||
|
||||
| Attribute | Description |
|
||||
|
||||
Reference in New Issue
Block a user