Sunday, January 15, 2012

[YouTube-API] Where to add Developer key? [Beginner Question]

Hey everybody,

I'm a absolute beginner with the YouTube API and haven't work with many other APIs too. I would like to creat a programm with C# that can use the YouTube API. I would like to add for example a friend. So this is what I got so far:

Service service = new Service("youtube", "YouTube Manager");
service
.setUserCredentials("ImGoogleDeveloperatgmail.com", "MyPassword");

string feedUrl = "http://gdata.youtube.com/feeds/api/users/ImGoogleDeveloper/contacts";

FriendsEntry newFriend = new FriendsEntry();
newFriend
.UserName = "GoogleDevelopers";
newFriend
.Categories.Add(new AtomCategory("Cool Dudes", YouTubeNameTable.FriendsCategorySchema));
service
.Insert(new Uri(feedUrl), newFriend);


I get back that "Developer key required for this operation" and the request failed.
Where and how to add my Developer key??

Cheers,
Nick


--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/1b10n-BaOM0J.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment