Kodi Community Forum

Full Version: YouTube Plug-in Thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
You need 3 Credentials

API Key (Browser Key)
Client ID (oauth 2.0)
and
Secret (oauth 2.0)

Code:
Thent go to
https://console.developers.google.com/apis/

Click on Credentials, then New Credentials, then API key, and select Browser Key, give it a name and click Create (this creates the KEY)

Then back to Credentials
Click on Credentials, then New Credentials, then OAuth Client ID, select Other, give it a name and click Create (this creates the ID and SECRET)

At this point you've got 2 sets of credentials

Edited 02/06/16
Verify that the Youtube API is enabled

Go to
https://console.developers.google.com/apis/enabled
Verify that you see YouTube Data API v3 in the list

If it is NOT in the list go to
https://console.developers.google.com/apis/library

Click on the link for YouTube Data Api
Click on Enable API at the top

Go back to
https://console.developers.google.com/apis/enabled

Verify that YouTube Data API v3 is now in the list

End of edit 02/06/16

These are the old instructions minus the editing of the client_help.py file. Since we have a menu for that just take your keys and put it in there.

Thanks
Jeff
Thanks Jeff, these instructions concur with what WHCTHBD posted, except the part in Step 6 about Web App which I noted in my previous post should be Other. Maybe WHCTHBD or a Mod can edit that to save further confusion.

Maybe you could post these instructions on Page 1 too, so that it doesn't get lost in the thread and we can easily point people to it?
I probably will put them in a wiki and then put a link in the first post for creating your own API key. I want to clean it up a bit and put pictures though.
Just an FYI to those who create your own keys.

API must be a Server Key

O-AUTH must be an Other ID.

Thanks
Jeff
Oh, I used Web browser (Javascript) and that seemed to work all ok, but I will change it to Web server if you think it's incorrect?

Please confirm so that we can have a definitive answer on all of this and nobody else will need to post 'kind of working' solutions Smile
All i know is when i created the keys, the API Browser key only gave me part of the options and when i changed it to API Server key, it gave me all and the pictures came back.

Jeff
Ok I didn't notice that (yet) that but I'll change it to be sure Smile
Main Page
Code:
https://console.cloud.google.com/apis/api/youtube/overview?project=[yourprojectname]&authuser=2

Credentials Page
Code:
https://console.cloud.google.com/apis/credentials?project=[yourprojectname]&authuser=2

then click create credentials it'll ask you what type, hit API and then Select Server Key.

Jeff
(2016-04-10, 17:17)jdf76 Wrote: [ -> ]All i know is when i created the keys, the API Browser key only gave me part of the options and when i changed it to API Server key, it gave me all and the pictures came back.

Jeff

Which "options" are you referring to? For Python coding or end-user Settings?
According to several documentations, the Server key provides for the added functionality of whitelisting IP addresses and nothing else, so it should make no difference creating the API Keys for the users of this addon.
I will run some tests for verifying how one should be chosen over the other.
Deleted
(2016-04-10, 18:31)*Spider* Wrote: [ -> ]
(2016-04-10, 17:17)jdf76 Wrote: [ -> ]All i know is when i created the keys, the API Browser key only gave me part of the options and when i changed it to API Server key, it gave me all and the pictures came back.

Jeff

Which "options" are you referring to? For Python coding or end-user Settings?
According to several documentations, the Server key provides for the added functionality of whitelisting IP addresses and nothing else, so it should make no difference creating the API Keys for the users of this addon.
I will run some tests for verifying how one should be chosen over the other.

These buttons

Image


* if you get the parked message, I just moved the domain off the parked location. Sorry about that.
Oh I just PM'd you a set of instructions that I made Jeff. They are much more simplified, but they don't have your pretty screenshots. They do however have all the relevant links to make it crazy easy Wink

There are also some added points that might be useful.
Yup i saw it and replied. We'll get it right once i get access to the wiki or if i don't i'll just put it on the plugin wiki. I'd rather use kodi's wiki though.

jeff
(2016-04-10, 19:06)jdf76 Wrote: [ -> ]How to setup an API key for the Youtube Plugin

I made this real quick. Hope it helps. It's in PDF.

Jeff

On page 1, you didn't advise that a Google Login prompt will appear and that will surprise Google haters.
On page 6, you didn't advise to select Public Data or User Data.
I decided to post my simplified instructions. No screenshots, but instead a very simple step by step.

Please don't re-quote this (unless it's Jeff adding it to a wiki), because if any corrections are needed I will edit this post.

YOUTUBE PERSONAL API KEY INSTRUCTIONS moved to the first page: http://forum.kodi.tv/showthread.php?tid=...pid2299963