Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowSafin authored Sep 23, 2024
1 parent 5fbd922 commit 4bdc31a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,18 @@ This is a python script that could randomly take a file from a Google Drive fold
# Authentication
To make the script work change add the Google drive API OAuth2.0 file as "credentials.json" and YouTube data v3 API client secret as "client_secret.json" in the folder.

You must rename the file according to the upper instruction. Renaming it will not chance anything in the file.
# Folder ID
(Source_File_ID) and (Destination_Folder_ID) should be changed with your desired folder id.

# Gtting GDrive API Oauth Client ID
Go to your google cloud console and enable Google Drive API, then follow the official google documentation - https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid

Make Sure add "http://localhost:80" as authorised JavaScript Origins and "http://localhost:80/oauth2callback" + "http://localhost:80/" as authorised redirect urls.

# Getting YouTube Data V3 API client secret
Go to your google cloud console and enable YouTuve Data v3 API, then follow the official google documentation - https://developers.google.com/youtube/v3/guides/auth/installed-apps#uwp

Make Sure add "http://localhost:80" as authorised JavaScript Origins and "http://localhost:80/oauth2callback" + "http://localhost:80/" as authorised redirect urls.


0 comments on commit 4bdc31a

Please sign in to comment.