MastodonのWebSocket APIのメモ
はじめに
Mastodonからストリームで取得する際のAPIに関するメモ。
基本形
wss://example.com/api/v1/streaming?access_token=xxxxxxxx?stream=TYPE
access_token は事前に取得する必要がある。
TYPE一覧
なぜかドキュメントに載っていないものがあるが、以下の通り。
TYPE | 内容 |
---|---|
public | 連合タイムライン |
public:local | ローカルタイムライン |
user | ホーム |
hashtag | ハッシュタグ(連合)? |
hashtag:local | ハッシュタグ(ローカル)? |
ソース
https://github.com/tootsuite/mastodon/blob/master/streaming/index.js#L376