1.6 KiB
1.6 KiB
Help for GoToSocial
Find your Account ID
- Open your profile (
https://YOUR_INSTANCE_URL/@YOUR_USERNAME) - View the page source and search for this line in the
<head>section:<meta property="og:image" content=".../fileserver/ACCOUNT_ID/attachment/..."> - You will find your account ID in this line between
fileserverandattachment:.../fileserver/ACCOUNT_ID/attachment/... - Copy your account ID and enter it in Yellow's
yellow-system.iniunder MastodonapiAccountId.
Create a Token
- Log in to your GoToSocial instance under
/settingsand click New Application under Applications. - Under
Application name (required), enter a name (e.g., yellow-mastodonapi). The other fields can be left blank. Click Create. - Click the newly created application so that the application details become visible.
- Adjust the following link and paste it into your browser:
→ Log in, authorize, and copy the code.https://DEINE_INSTANZ_URL/oauth/authorize?response_type=code&client_id=DEIN_CLIENT_ID&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=read - Adjust the following lines:
curl -X POST https://DEINE_INSTANZ_URL/oauth/token \ -d "client_id=DEIN_CLIENT_ID" \ -d "client_secret=DEIN_CLIENT_SECRET" \ -d "grant_type=authorization_code" \ -d "code=DER_CODE_AUS_SCHRITT_4" \ -d "redirect_uri=urn:ietf:wg:oauth:2.0:oob" - Copy this code into your terminal and press Enter. You will now receive your user token, which you can enter in Yellow's
yellow-system.ini.