Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
I want to fetch my subscribed channel videos from youtube data api , this is my code from which i am able to get the subscribed channel's id's, What I want is the video list of subscribed channel. Any help will be greatly appreciated here is my code

Dim request1 As WebRequest = _
                WebRequest.Create("https://www.googleapis.com/youtube/v3/subscriptions?part=snippet&mine=true&access_token=" & Session("accessToken") & "")

        request1.Credentials = CredentialCache.DefaultCredentials
        Dim response1 As WebResponse = request1.GetResponse()
        Console.WriteLine(CType(response1, HttpWebResponse).StatusDescription)
        Dim dataStream10 As Stream = response1.GetResponseStream()
        Dim reader10 As New StreamReader(dataStream10)
        Dim responseFromServer10 As String = reader10.ReadToEnd()
        Dim dict3 = New JavaScriptSerializer().Deserialize(Of Dictionary(Of String, Object))(responseFromServer10)

        Dim postalCodevid = dict3("items")
        For i As Integer = 0 To postalCodevid.count - 1
            Dim vid_id = postalCodevid(i)
            Dim temp As String = String.Empty
            Dim temp1 = temp("Id")
        Next
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900