How can I connect to YouTube API without Auth?

Reading the official documentation I found this code:

YouTubeRequestSettings settings = new YouTubeRequestSettings("example app", clientID, developerKey); YouTubeRequest request = new YouTubeRequest(settings); 

but he says If you do not specify authentication information when creating the YouTubeRequestSettings object, then you will only be able to use the YouTubeRequest object to perform operations that do not require authentication.

I don't mind authentication, but if I try:

 YouTubeRequestSettings settings = new YouTubeRequestSettings("example app"); 

Key is still waiting for the developer, so it does not work.

How can I create this object without auth? Are there any methods for this?

+4
source share
1 answer

You tried...

 YouTubeRequestSettings settings = new YouTubeRequestSettings("example app","",""); 

Lines in the constructor are not null / optional, so you do not instantiate the right

+1
source

Source: https://habr.com/ru/post/1384299/


All Articles