From 50c467be2b3495f4d11a453446a65bd27c1c58ef Mon Sep 17 00:00:00 2001 From: santiago Date: Wed, 21 May 2025 00:59:11 +0000 Subject: [PATCH 1/5] Updated readme --- README.md | 46 ++++++++++++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 45e9046c..66ead3a9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ - # Fedi Link Fetcher A pair of PHP scripts that extract links from your Mastodon / snac bookmarks and add them to: @@ -8,27 +7,38 @@ A pair of PHP scripts that extract links from your Mastodon / snac bookmarks and ## TODO instructions readeck API -how to get tokeb in web ui +Explain here how to get readeck token in the web UI. -## TODO isntructions Youtube PlayList +## Instructions to create Youtube Playlist and get a token + + * Go to the Google Cloud Console: + * Project > APIs & Services > Credentials + * Create oauth client ID + * for TV and limited INPUT + * Download the OAuth 2.0 Client ID JSON file + +save as +``` +./_credentials/client_secret.json +``` + +## Add your Google account as a test user + * Go to Google Cloud Console > OAuth consent screen + * ~> Audience + * Under “Test users” + * Add your Google email for your Youtube account - 1. Go to the Google Cloud Console: - • Project > APIs & Services > Credentials - -create oauth client ID -for TV and limited INPUT - • Download the OAuth 2.0 Client ID JSON file - -save as /home/snac/youtube_list/client_secret.json - -Option 1: Add your Google account as a test user - 1. Go to Google Cloud Console > OAuth consent screen -~> Audience - 2. Scroll to “Test users” - 3. Add your Google email (e.g. jacques.lema@gmail.com) - +## Add google Api things with PHP Composer +``` composer require google/apiclient:^2.0 +``` + +# Add to your cron +``` +*/5 * * * * /home/snac/fedi_slurp/fedi_slurp.php > /home/snac/logs/fedi_slurp.log 2>&1 +``` + From eee2c2b4f14738571071bc2802e3d06d4d511e7c Mon Sep 17 00:00:00 2001 From: santiago Date: Wed, 21 May 2025 01:00:52 +0000 Subject: [PATCH 2/5] Update README.md --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 66ead3a9..05e2b43c 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ Explain here how to get readeck token in the web UI. ## Instructions to create Youtube Playlist and get a token - * Go to the Google Cloud Console: - * Project > APIs & Services > Credentials - * Create oauth client ID - * for TV and limited INPUT - * Download the OAuth 2.0 Client ID JSON file +- Go to the Google Cloud Console: +- Project > APIs & Services > Credentials +- Create oauth client ID +- for TV and limited INPUT +- Download the OAuth 2.0 Client ID JSON file save as ``` @@ -23,10 +23,11 @@ save as ``` ## Add your Google account as a test user - * Go to Google Cloud Console > OAuth consent screen - * ~> Audience - * Under “Test users” - * Add your Google email for your Youtube account + +- Go to Google Cloud Console > OAuth consent screen +- ~> Audience +- Under “Test users” +- Add your Google email for your Youtube account ## Add google Api things with PHP Composer From 796dfc516c45cab20f653f5a903acd57ef86c7d8 Mon Sep 17 00:00:00 2001 From: santiago Date: Wed, 21 May 2025 01:06:03 +0000 Subject: [PATCH 3/5] Update README.md --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 05e2b43c..c75bb38d 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,17 @@ A pair of PHP scripts that extract links from your Mastodon / snac bookmarks and - YouTube Playlist (Google oAUTH API) - Readeck (simple API token) -## TODO instructions readeck API +## Instructions to get a Readeck token -Explain here how to get readeck token in the web UI. +In Web UI: + +- Settings, API tokens, Create API Token +- Check Bookmarks Read + Write + +Save it as: +``` +/_credentials/token.json +``` ## Instructions to create Youtube Playlist and get a token @@ -17,9 +25,9 @@ Explain here how to get readeck token in the web UI. - for TV and limited INPUT - Download the OAuth 2.0 Client ID JSON file -save as +Save it as: ``` -./_credentials/client_secret.json +/_credentials/client_secret.json ``` ## Add your Google account as a test user From e1995ab1b0ad52f628584c6ea232c77987078d0b Mon Sep 17 00:00:00 2001 From: santiago Date: Wed, 21 May 2025 01:10:31 +0000 Subject: [PATCH 4/5] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c75bb38d..bee7c0de 100644 --- a/README.md +++ b/README.md @@ -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 ``` From 5cdc25ad9c510ddfb631c4f3f38af01889f4d19a Mon Sep 17 00:00:00 2001 From: santiago Date: Wed, 21 May 2025 01:12:58 +0000 Subject: [PATCH 5/5] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bee7c0de..419bd752 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,13 @@ Save it as: ``` composer require google/apiclient:^2.0 ``` +## 5. Run command to create fedilist and get a token +``` +./create_fedilist.php +``` -## 5. Add the command to your cron to fetch the links regularly + +## 6. 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 ```