Closed GoogleCodeExporter closed 8 years ago
Joseph,
Can you post your sample solution here so that I can reproduce the error?
Thanks
Claudio
Original comment by ccherub...@google.com
on 19 Jan 2011 at 6:20
Imports System.Net.Mail
Imports Google.GData.Extensions
Imports Google.GData.Extensions.MediaRss
Imports Google.GData.Extensions.Location
Imports Google.GData.YouTube
Imports Google.YouTube
Imports CookComputing.XmlRpc
Public Class MainForm
Private Sub ButtonCallYouTubeAPI_Click(ByVal sender As System.Object,
Dim AppName As String = "TweetMaker"
Dim DevKey As String = "myAppKey"
Dim MaxNum As Integer = 2000
Dim ytRequestSettings As New Google.YouTube.YouTubeRequestSettings(AppName,
DevKey)
ytRequestSettings.AutoPaging = True
ytRequestSettings.Maximum = MaxNum
Dim ytRequest As New Google.YouTube.YouTubeRequest(ytRequestSettings)
Dim url As String =
"http://gdata.youtube.com/feeds/api/videos?orderby=relevance&vq=puppy"
Dim VidID As String = ""
Dim VidTitle As String = ""
Dim vids() As Google.YouTube.Video = Nothing
Say("FETCHING...")
For Each oneVideo As Google.YouTube.Video In
ytRequest.GetStandardFeed(url).Entries
VidID = oneViddeo.Id
VidTitle = oneViddeo.Title
AppendToFile("K:\[ YOUTUBE VIDEOS ]\YouTubeAPITest.txt", VidID & ", " &
VidTitle)
Next
Say("ALL DONE!")
End Sub
Original comment by PhilipKW...@gmail.com
on 19 Jan 2011 at 7:53
Attachments:
I started a new app from scratch -- nothing on it and just the one button
calling the YouTube API.
Visual Basic gave me some cryptic message about inconsistencies or some such
and asked if I would like to correct them. I said yes.
The DLLs loaded. So problem solved.
But, alas, I do not know how to make the requests properly. Any clue as to
where I can get help.
"Execution of request failed:
http://gdata.youtube.com/feeds/api/videos?orderby=relevance&vq=puppy"
I want to call YouTube API and get as many video urls and titles per keyword as
possible.
Then save them to a file.
Guess I will try the developer forum.
Thanks for your prompt reply before, though.
Main problem Solved.
Thanks
Joseph Love
Original comment by PhilipKW...@gmail.com
on 19 Jan 2011 at 9:37
Glad to hear that you fixed the issue.
I can open the YouTube feed at
http://gdata.youtube.com/feeds/api/videos?orderby=relevance&vq=puppy without
problems.
I'd recommend you going through the YouTube API Developer guide for .NET:
http://code.google.com/apis/youtube/2.0/developers_guide_dotnet.html
Original comment by ccherub...@google.com
on 19 Jan 2011 at 10:04
Original issue reported on code.google.com by
PhilipKW...@gmail.com
on 19 Jan 2011 at 5:27