echo "pls open https://mastodon.example/oauth/authorize?response_type=code&client_id=$(http POST https://mastodon.example/api/v1/apps client_name=mastoposter redirect_uris=urn:ietf:wg:oauth:2.0:oob scopes=read | jq -r .client_id)&redirect_uri=urn:ietf:wg:oauth:2.0:oob and gimme da code"
No need to use webpage
@hatkidchan и потом копировать code из юрла руками? Нах надо