3.3 KiB
3.3 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 clickNew ApplicationunderApplications. - Under
Application name (required), enter a name (e.g., yellow-mastodonapi). The other fields can be left blank. ClickCreate. - 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_5" -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.
Hilfe für GoToSocial
1. Account-ID herausfinden
- Öffne dein Profil:
https://DEINE_INSTANZ_URL/@DEIN_BENUTZERNAME - Zeige den Quelltext der Seite an (Rechtsklick → Seitenquelltext anzeigen).
- Suche nach dieser Zeile im
<head>Bereich:<meta property="og:image" content=".../fileserver/ACCOUNT_ID/attachment/..."> - Deine Account-ID steht zwischen
fileserverundattachment.
Beispiel:.../fileserver/1234567890abcdef/attachment/... - Trage die Account-ID in Yellow in der
yellow-system.iniunter
MastodonapiAccountIdein.
2. Token erstellen
- Melde dich in deiner GoToSocial-Instanz an:
https://DEINE_INSTANZ_URL/settings - Gehe zu Applications → New Application.
- Trage unter Application name (required) z. B.
yellow-mastodonapiein.
(Alle anderen Felder können leer bleiben.)
Klicke auf Create. - Öffne die soeben erstellte Application, um die Client-Details zu sehen.
- Ersetze in diesem Link die Platzhalter und öffne ihn im Browser:
→ Anmelden, bestätigen und den Code kopieren.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 - Ersetze in diesem
curl-Befehl die Platzhalter: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_5" -d "redirect_uri=urn:ietf:wg:oauth:2.0:oob" - Führe den Befehl im Terminal aus.
→ Du erhältst dein User-Token. - Trage den Token in Yellow in der
yellow-system.iniunter
MastodonapiAccessTokenein.