Update README.md
This commit is contained in:
parent
796dfc516c
commit
e1995ab1b0
1 changed files with 5 additions and 5 deletions
10
README.md
10
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)
|
- YouTube Playlist (Google oAUTH API)
|
||||||
- Readeck (simple API token)
|
- Readeck (simple API token)
|
||||||
|
|
||||||
## Instructions to get a Readeck token
|
## 1. Getting a Readeck token
|
||||||
|
|
||||||
In Web UI:
|
In Web UI:
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Save it as:
|
||||||
/_credentials/token.json
|
/_credentials/token.json
|
||||||
```
|
```
|
||||||
|
|
||||||
## Instructions to create Youtube Playlist and get a token
|
## 2. Getting a Youtube API token
|
||||||
|
|
||||||
- Go to the Google Cloud Console:
|
- Go to the Google Cloud Console:
|
||||||
- Project > APIs & Services > Credentials
|
- Project > APIs & Services > Credentials
|
||||||
|
@ -30,7 +30,7 @@ Save it as:
|
||||||
/_credentials/client_secret.json
|
/_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
|
- Go to Google Cloud Console > OAuth consent screen
|
||||||
- ~> Audience
|
- ~> Audience
|
||||||
|
@ -38,13 +38,13 @@ Save it as:
|
||||||
- Add your Google email for your Youtube account
|
- 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
|
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
|
*/5 * * * * /home/snac/fedi_slurp/fedi_slurp.php > /home/snac/logs/fedi_slurp.log 2>&1
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue