0
我在那对用户进行认证,并试图检索当前认证的用户播放列表,但是要求是inavlid和错误是因为这样的时刻这段代码检索用户的播放列表使用YouTube API
的要求执行失败:
http://gdata.youtube.com/feeds/api/users/[email protected]/playlists
Public Function GetRequest(ByVal username As String, ByVal password As String) As YouTubeRequest
Dim youtubeSettings = New YouTubeRequestSettings("test", DeveloperKey, username, password)
Dim youtubeRequest As New YouTubeRequest(youtubeSettings)
Return youtubeRequest
End Function
Public Function GetUserPlaylists(ByVal username As String, ByVal password As String)
Dim youtubeRequest As YouTubeRequest = Me.GetRequest(username, password)
Try
Dim userPlaylists As Feed(Of Playlist) = youtubeRequest.GetPlaylistsFeed(username)
If True Then
End If
Catch ex As Exception
End Try
End Function
难道是用的用户名这样做,因为它使用特定的字符,也许我需要来urlencode – redoc01 2011-12-19 13:52:38