43 lines
No EOL
1.8 KiB
Markdown
43 lines
No EOL
1.8 KiB
Markdown
# Help for Snac and GoToSocial
|
|
|
|
## Snac
|
|
|
|
### Create a Token
|
|
|
|
1. Adjust the following link and paste it into your browser:
|
|
```
|
|
https://snac.thepipes.ch/oauth/x-snac-get-token
|
|
```
|
|
→ Log in, authorize, and copy the **code**.
|
|
|
|
## GoToSocial
|
|
|
|
### Find your Account ID
|
|
1. Open your profile (`https://YOUR_INSTANCE_URL/@YOUR_USERNAME`)
|
|
2. View the **page source** and search for this line in the `<head>` section:
|
|
```html
|
|
<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/...`
|
|
4. Copy your account ID and enter it in Yellow's `yellow-system.ini` under *MastodonapiAccountId*.
|
|
|
|
### Create a Token
|
|
|
|
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**.
|
|
3. Click the newly created application so that the **application details** become visible.
|
|
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
|
|
```
|
|
→ Log in, authorize, and copy the **code**.
|
|
5. Adjust the following lines:
|
|
```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_4" \
|
|
-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`. |