Update README.md

This commit is contained in:
Santiago Lema 2025-05-21 01:10:31 +00:00
parent 796dfc516c
commit e1995ab1b0

View file

@ -5,7 +5,7 @@ A pair of PHP scripts that extract links from your Mastodon / snac bookmarks and
- YouTube Playlist (Google oAUTH API)
- Readeck (simple API token)
## Instructions to get a Readeck token
## 1. Getting a Readeck token
In Web UI:
@ -17,7 +17,7 @@ Save it as:
/_credentials/token.json
```
## Instructions to create Youtube Playlist and get a token
## 2. Getting a Youtube API token
- Go to the Google Cloud Console:
- Project > APIs & Services > Credentials
@ -30,7 +30,7 @@ Save it as:
/_credentials/client_secret.json
```
## Add your Google account as a test user
## 3. Add your Google account as a test user
- Go to Google Cloud Console > OAuth consent screen
- ~> Audience
@ -38,13 +38,13 @@ Save it as:
- Add your Google email for your Youtube account
## Add google Api things with PHP Composer
## 4. Download Google API Client with PHP Composer
```
composer require google/apiclient:^2.0
```
# Add to your cron
## 5. Add the command to your cron to fetch the links regularly
```
*/5 * * * * /home/snac/fedi_slurp/fedi_slurp.php > /home/snac/logs/fedi_slurp.log 2>&1
```