aeris22’s avataraeris22’s Twitter Archive—№ 61,132

    1. Does anybody masterize with OAuth2 and Mastodon? I can't find a way to extract OAuth2 token usable for streaming API from Mastodon::REST::Client or OAuth2::Client (in ruby). The only token I got (through create_app then auth_code.authorize_url) is not usable for streaming API…
  1. …in reply to @aeris22
    My code is here : git.imirhil.fr/aeris/cross-post/src/master/bin/mastodon-register#L26-L51 I got the correct URL the first time, but a wrong one if I already have consumer key & secret. After accepting the connection from the given URL, I got the "access_grant" token, and not the "access_token" expected by the streaming API.
    1. …in reply to @aeris22
      Fixed! Missed a new call from the code to get the token git.imirhil.fr/aeris/cross-post/src/master/bin/mastodon-register#L55-L57