From 778bfc7a449684c1f5065485c5cbccaa2ddea1b7 Mon Sep 17 00:00:00 2001 From: Eugen Date: Sun, 15 Jan 2017 14:32:52 +0100 Subject: [PATCH] Updated API (markdown) --- API.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/API.md b/API.md index 603cc56..c91a28c 100644 --- a/API.md +++ b/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 |