Hello guys,
Im using the following code, which seems to work fine:
URL = "
https://api2.xxxxxxxxxxx.com/user?k=xxxxxxxxxxxxxxxxxxxxxx"
Dim Request2 As HttpWebRequest = WebRequest.Create(URL)
body = "{""external_guid"": """ & Session("userid") & """, ""client_guid"": ""ATR-3dfg43dj56cb7b"", ""email"":""" & Email & """}"
Request2.Method = "POST"
Request2.ContentType = "application/json"
Dim writer As New StreamWriter(Request2.GetR
equestStre
am(), System.Text.Encoding.ASCII
)
writer.Write(body)
writer.Close()
The problem is that I have to see the response from the API.
I tried this:
Dim Response2 As HttpWebResponse = Request2.GetResponse
but it returns server 500 error
Any suggestions?
Thanks!
Open in new window