我想要一个显示 youtuber 订阅者数量的表格。我已经安装了 API,并且得到了以下代码:
Imports Google.GData.YouTube
Imports Google.GData.Client
Imports Google.GData.Extensions
Public Class Form1
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Dim subshelper As New Service
Dim feedUrl As String = "http://gdata.youtube.com/feeds/api/users/SkyDoesMinecraft"
Dim profile As ProfileEntry = subshelper.Get(feedUrl)
Dim subscount As Integer = profile.Statistics.SubscriberCount
Label1.Text = subscount
End Sub
End Class
我得到了这个错误:
An unhandled exception of type 'Google.GData.Client.GDataRequestException' occurred in Google.GData.Client.dll
Additional information: Execution of request failed:
https://gdata.youtube.com/feeds/api/users/SkyDoesMinecraft
有人能帮我一下吗?谢谢!