1
這是我使用從我的應用程序上傳視頻代碼:有關YouTube認證上傳視頻
Dim setting As New YouTubeRequestSettings("my app name ", "my developer key, username, password ")
Dim request As New YouTubeRequest(setting)
Dim newVideo As New Video()
newVideo.Title = "My Test Movie"
newVideo.Tags.Add(New MediaCategory("Autos", YouTubeNameTable.CategorySchema))
newVideo.Keywords = "cars, funny"
newVideo.Description = "My description"
newVideo.YouTubeEntry.[Private] = False
newVideo.Tags.Add(New MediaCategory("mydevtag, anotherdevtag", YouTubeNameTable.DeveloperTagSchema))
newVideo.YouTubeEntry.Location = New GeoRssWhere(37, -122)
' alternatively, you could just specify a descriptive string
' newVideo.YouTubeEntry.setYouTubeExtension("location", "Mountain View, CA");
' Dim token As FormUploadToken = Request.CreateFormUploadToken(newVideo)
Dim token As FormUploadToken = Request.CreateFormUploadToken(newVideo)
Console.WriteLine(token.Url)
Console.WriteLine(token.Token)
現在,這裏有我的應用程序名稱,開發者密鑰,我收到憑證無效的錯誤。
只是想知道什麼應該給這個用戶名和密碼,我上傳我的網站,一個網站項目的視頻。