The example here should help:
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Jan 15, 9:26 am, NickyN <hpdesig...@gmail.com> wrote:
> 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 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