Reputation: 47945
Reading the official documentation I found this code :
YouTubeRequestSettings settings =
new YouTubeRequestSettings("example app", clientID, developerKey);
YouTubeRequest request = new YouTubeRequest(settings);
but it 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 about Authentication, but if I try :
YouTubeRequestSettings settings =
new YouTubeRequestSettings("example app");
still waiting for a developerKey, so it doesnt works.
How can I create that object without auth? Are there any methods to do so?
Upvotes: 4
Views: 860
Reputation: 20175
Have you tried...
YouTubeRequestSettings settings =
new YouTubeRequestSettings("example app","","");
The strings in the constructor aren't nullable/optional, so you aren't instantiating it right
Upvotes: 1