help-gotoso-en.md aktualisiert

This commit is contained in:
simonpipe 2025-08-12 15:55:40 +02:00
parent 13ec413a5e
commit 6ed05c529d

View file

@ -2,23 +2,23 @@
## Find your Account ID ## Find your Account ID
1. Open your profile (`https://YOUR_INSTANCE_URL/@YOUR_USERNAME`) 1. Open your profile (`https://YOUR_INSTANCE_URL/@YOUR_USERNAME`)
2. View the page source and search for this line in the `<head>` section: 2. View the **page source** and search for this line in the `<head>` section:
```html ```html
<meta property="og:image" content=".../fileserver/ACCOUNT_ID/attachment/..."> <meta property="og:image" content=".../fileserver/ACCOUNT_ID/attachment/...">
``` ```
3. You will find your account ID in this line between `fileserver` and `attachment`: `.../fileserver/ACCOUNT_ID/attachment/...` 3. You will find your **account ID** in this line between `fileserver` and `attachment`: `.../fileserver/ACCOUNT_ID/attachment/...`
4. Copy your account ID and enter it in Yellow's `yellow-system.ini` under *MastodonapiAccountId*. 4. Copy your account ID and enter it in Yellow's `yellow-system.ini` under *MastodonapiAccountId*.
## Create a Token ## Create a Token
1. Log in to your GoToSocial instance under `/settings` and click `New Application` under `Applications`. 1. Log in to your GoToSocial instance under `/settings` and click **New Application** under **Applications**.
2. Under `Application name (required)`, enter a name (e.g., *yellow-mastodonapi*). The other fields can be left blank. Click `Create`. 2. Under `Application name (required)`, enter a name (e.g., *yellow-mastodonapi*). The other fields can be left blank. Click **Create**.
3. Click the newly created application so that the application details become visible. 3. Click the newly created application so that the **application details** become visible.
4. Adjust the following link and paste it into your browser: 4. Adjust the following link and paste it into your browser:
``` ```
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 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
``` ```
→ Log in, authorize, and copy the code. → Log in, authorize, and copy the **code**.
5. Adjust the following lines: 5. Adjust the following lines:
```bash ```bash
curl -X POST https://DEINE_INSTANZ_URL/oauth/token curl -X POST https://DEINE_INSTANZ_URL/oauth/token
@ -28,47 +28,4 @@
-d "code=DER_CODE_AUS_SCHRITT_5" -d "code=DER_CODE_AUS_SCHRITT_5"
-d "redirect_uri=urn:ietf:wg:oauth:2.0:oob" -d "redirect_uri=urn:ietf:wg:oauth:2.0:oob"
``` ```
6. 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`. 6. 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
1. Öffne dein Profil:
`https://DEINE_INSTANZ_URL/@DEIN_BENUTZERNAME`
2. Zeige den **Quelltext** der Seite an (Rechtsklick → *Seitenquelltext anzeigen*).
3. Suche nach dieser Zeile im `<head>` Bereich:
```html
<meta property="og:image" content=".../fileserver/ACCOUNT_ID/attachment/...">
```
4. Deine **Account-ID** steht zwischen `fileserver` und `attachment`.
Beispiel: `.../fileserver/1234567890abcdef/attachment/...`
5. Trage die Account-ID in Yellow in der `yellow-system.ini` unter
`MastodonapiAccountId` ein.
## 2. Token erstellen
1. Melde dich in deiner GoToSocial-Instanz an:
`https://DEINE_INSTANZ_URL/settings`
2. Gehe zu **Applications****New Application**.
3. Trage unter *Application name (required)* z. B. `yellow-mastodonapi` ein.
(Alle anderen Felder können leer bleiben.)
Klicke auf **Create**.
4. Öffne die soeben erstellte Application, um die **Client-Details** zu sehen.
5. Ersetze in diesem Link die Platzhalter und öffne ihn im Browser:
```
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
```
→ Anmelden, bestätigen und den **Code** kopieren.
6. Ersetze in diesem `curl`-Befehl die Platzhalter:
```bash
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"
```
7. Führe den Befehl im **Terminal** aus.
→ Du erhältst dein **User-Token**.
8. Trage den Token in Yellow in der `yellow-system.ini` unter
`MastodonapiAccessToken` ein.