Estimados amigos, necesitaria, si alguien pudiera convertirme este cdigo de visual basic a xojo.
Dim request = TryCast(System.Net.WebRequest.Create(“http://themoviedb.apiary-proxy.com/3/authentication/guest_session/new”), System.Net.HttpWebRequest)
request.Method = “GET”
request.Headers.Add(“Accept”, “application/json”)
request.ContentLength = 0
Dim responseContent As String
Using response = TryCast(request.GetResponse(), System.Net.HttpWebResponse)
Using reader = New System.IO.StreamReader(response.GetResponseStream())
responseContent = reader.ReadToEnd()
End Using
End Using
no soy capaz de utilizarlo.
Estoy intentando un scrapper pero no hay manera.
Gracias.
Google translation:
Dear friends, would need, if someone could make me this visual basic code to xojo.
Dim request = TryCast(System.Net.WebRequest.Create("http://themoviedb.apiary-proxy.com/3/authentication/guest_session/new" ), System.Net.HttpWebRequest )
request.Method = "GET"
request.Headers.Add("Accept", "application/json")
request.ContentLength = 0
Dim responseContent As String
Using response = TryCast(request.GetResponse(), System.Net.HttpWebResponse )
Using reader = New System.IO.StreamReader(response.GetResponseStream( ))
responseContent = reader.ReadToEnd()
End Using
End Using
I am not able to use it.
I am attempting a scrapper but no way.
Thank you.
(Google translate leaves a lot to be desired.)
[code]Dim http as new HTTPSocket
http.Yield = True
Dim responseContent as String
http.SetRequestHeader(“Accept”,“application/json”)
responseContent = http.Get(“http://themoviedb.apiary-proxy.com/3/authentication/guest_session/new”,30)[/code]
Yeah, ashot Khachatryan, THX