mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00
Document Authorization header for WebSocket API (#1576)
Fixes #1575 Co-authored-by: Bastian Blank <waldi@debian.org>
This commit is contained in:
parent
5c792e83d9
commit
c7d6167dbc
@ -600,6 +600,12 @@ wss://mastodon.example/api/v1/streaming
|
|||||||
|
|
||||||
Open a multiplexed WebSocket connection to receive events.
|
Open a multiplexed WebSocket connection to receive events.
|
||||||
|
|
||||||
|
#### Request
|
||||||
|
##### Headers
|
||||||
|
|
||||||
|
Authorization
|
||||||
|
: {{<required>}} Provide this header with `Bearer <user_token>` to gain authorized access to this API method.
|
||||||
|
|
||||||
##### Parameters
|
##### Parameters
|
||||||
|
|
||||||
{{< hint style="info" >}}
|
{{< hint style="info" >}}
|
||||||
@ -619,7 +625,7 @@ Example unsubscription from user updates:
|
|||||||
{{</hint>}}
|
{{</hint>}}
|
||||||
|
|
||||||
access_token
|
access_token
|
||||||
: {{<required>}} String. A user-authorized OAuth token.
|
: {{<required>}} String. A user-authorized OAuth token. Alternative to `Authorization` header.
|
||||||
|
|
||||||
stream
|
stream
|
||||||
: {{<required>}} String. The stream to watch for events. See [Streams](#streams) for possible values.
|
: {{<required>}} String. The stream to watch for events. See [Streams](#streams) for possible values.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user