mstdn.guruのトゥートを表示
2023/3/4 確認
QiitaのAPIでタイトルを表示 を元に作成
Getting started with the API - Mastodon documentation
Fetching public timelines
Playing with public data - Mastodon documentation
$ curl https://mstdn.guru/api/v1/timelines/public | jq | more
Localのトゥートを取得する時はtrueにする。デフォルトはfalse
https://mstdn.guru/api/v1/timelines/public?local=true
timelines - Mastodon documentation
https://mstdn.guru/api/v1/accounts/1/statuses
$ curl https://mstdn.guru/api/v1/accounts/1/statuses | jq | more
Mastodon ユーザーのユーザID番号の簡単な確認方法 - Qiita
https://mstdn.jp/api/v1/timelines/public?local=true
https://qiitadon.com/api/v1/timelines/public?local=true
https://pawoo.net/api/v1/timelines/public?local=true
tag/cats?limit=2
https://docs.joinmastodon.org/client/public/
$ curl https://pawoo.net/api/v1/timelines/tag/ai | jq | more
https://docs.joinmastodon.org/client/token/
https://docs.joinmastodon.org/methods/accounts/#following
Get account’s following
$ curl -X POST \
-F 'client_name=Test Application' \
-F 'redirect_uris=urn:ietf:wg:oauth:2.0:oob' \
-F 'scopes=read write push' \
-F 'website=https://myapp.example' \
https://mstdn.guru/api/v1/apps
$ curl -X POST \
-F 'client_id=your_client_id_here' \
-F 'client_secret=your_client_secret_here' \
-F 'redirect_uri=urn:ietf:wg:oauth:2.0:oob' \
-F 'grant_type=client_credentials' \
https://mstdn.guru/oauth/token
$ curl \
-H 'Authorization: Bearer our_access_token_here' \
https://mstdn.guru/api/v1/apps/verify_credentials
アカウントIDが2のユーザー(mazzo)のfollwingリストを取得
https://mstdn.guru/web/accounts/2/following
$ curl \
-H 'Authorization: Bearer our_access_token_here' \
https://mstdn.guru/api/v1/accounts/2/following | jq | more
認証 クライアントアプリへのアクセスの取得
https://docs.joinmastodon.org/client/token/
アカウントでログインする
https://docs.joinmastodon.org/client/authorized/
ライブラリ
https://github.com/MastodonKit/MastodonKit
metatext
https://github.com/metabolist/metatext
iOS(Swift)から3ステップでMastodonに投稿を行う - Qiita
mastodonのAPIをcurlで試してみた - Qiita
わずか数行のコードで利用できちゃう!Mastodon APIを活用してみた。
https://www.antun.net/tips/api/mastodon.html
環境の設定 - Mastodon documentation
Mastodon の toot を Python で取得する
https://sucher.net/mastodon-toot-python/
ホームタイムラインを見る