99## Enabling Spotify integration
1010
1111Due to restrictions from Spotify, a public api key could not be integrated into the app.
12- Due to this, each user will be required to generate an API key for themselves
12+ Due to this, each user will be required to generate an API key for themselves.
1313
1414### Creating an app on Spotify developer portal
1515
@@ -33,5 +33,67 @@ Paste the string you copied earlier into these fields. Now you should be able to
3333
3434You can add your alternate accounts under ** Users and Access** and use the same Client ID and Client Secret for multiple users.
3535
36+
37+ ## Youtube integration
38+
39+ Due to restrictions from Youtube, a public API key could not be integrated into the app.
40+ Due to this, each user will be required to generate an API key for themselves.
41+
42+ ### Creating a project on Google cloud console
43+
44+ - Head over to [ Google console create project] ( https://console.cloud.google.com/projectcreate ) .
45+
46+ - Enter a project name and press "Create".
47+ ![ Cloud console new app] ( /assets/img/cloud_console_new_app.png )
48+
49+ ### Enabling Youtube API
50+ - Click on "+ ENABLE APIS AND SERVICES" button at top of the dashboard.
51+
52+ - Search for youtube and select "YouTube Data API v3"
53+ ![ Cloud console search API] ( /assets/img/cloud_console_search_api.png ) .
54+
55+ - Click on the "ENABLE" button. You'll then be redirected to "API/Service Details" dashboard.
56+
57+ ### Configuring consent screen
58+ - Select "OAuth consent screen" on the left sidebar and select "Configure Consent screen".
59+
60+ - Select "External" and press "CREATE"
61+ ![ Cloud console oauth consent] ( /assets/img/cloud_console_oauth_consent.png )
62+
63+ - Fill in required details.
64+ ![ Cloud console app details] ( /assets/img/cloud_console_oauth_app_details.png )
65+
66+ - Under "Authorized domains", input "moosync.app"
67+ ![ Cloud console authorized domain] ( /assets/img/cloud_console_oauth_authorized_domain.png )
68+
69+ - Press "SAVE AND CONTINUE"
70+
71+ - Press on "ADD OR REMOVE SCOPES" and search for "Youtube Data API v3". Under it select the scope ".../auth/youtube.readonly" and press update. Then press "SAVE AND CONTINUE"
72+
73+ - Under test users add all the email addresses you wish to use.
74+
75+ - Press "SAVE AND CONTINUE" and return back to the dashboard
76+ ![ Cloud console oauth scope] ( /assets/img/cloud_console_oauth_scope.png )
77+
78+
79+ ### Creating credentials
80+ - Head over to "Credentials" in the sidebar and press "Create credentials". Under it select "OAuth Client ID"
81+
82+ - Set Application type as "Web application" and fill in other required details.
83+
84+ - Under "Authorized Javascript origins" add the URIs
85+ - http://localhost
86+ - http://localhost:8080
87+
88+ - Under "Authorized redirect URIs" add the URI
89+ - https://moosync.app/youtube
90+
91+ ![ Cloud console JS origins] ( /assets/img/cloud_console_cred_js_origins.png )
92+
93+ ![ Cloud console authorized redirects] ( /assets/img/cloud_console_cred_authorized_redirect.png )
94+
95+ - Click on create
96+
97+ - Copy the client ID and secret and paste it under Settings > System > Youtube Client ID and Youtube Client Secret
3698## Discord integration
3799- [ Moosync Discord RPC] ( https://github.com/Ovenoboyo/moosync-discord-rpc/releases ) : Show your song details in discord through Discord RPC.
0 commit comments