Skip to content

Instantly share code, notes, and snippets.

@mimikun
Last active May 9, 2018 14:23
Show Gist options
  • Save mimikun/b864f34ad4e649cf5dc602022397c205 to your computer and use it in GitHub Desktop.
Save mimikun/b864f34ad4e649cf5dc602022397c205 to your computer and use it in GitHub Desktop.
MastodonでcURL使ってaccess tokenを貰う方法

MastodonでcURL使ってaccess tokenを貰う方法

条件とか

  • 2FAを設定したアカウント
  • Mastodon v2.4.0 rc-1
  • macOS 10.13
  • zsh

いろいろ

Authorization Codeの期限、デフォでは10分なので早く作業する必要がある

https://github.com/tootsuite/mastodon/blob/master/config/initializers/doorkeeper.rb#L21

手順

1.

gistだと書きにくいのでBoostnote使って書いてOKならブログに書く感じにする

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment