Get All tickets using VB.net or C#

Can someone help me with getting tickets from fd using code bellow? The connection is working but i don't have idea how to handle it further.


 Dim Authorization As String = Convert.ToBase64String(System.Text.Encoding.Default.GetBytes("XXXXX......"))

        Dim wHeader As WebHeaderCollection = New WebHeaderCollection()

        wHeader.Clear()

        wHeader.Add("Authorization", "Basic " + Authorization)

        Dim wRequest As HttpWebRequest = CType(System.Net.HttpWebRequest.Create("https://xxxxx.freshdesk.com/api/v2/tickets"), HttpWebRequest)

        wRequest.Headers = wHeader

        wRequest.ContentType = "application/json; charset=utf-8"

        wRequest.Method = "GET"



Thanks

Login or Signup to post a comment