Hi
In a abmaterial page(tokenpage.pas), I use following code and then get a HTML file(job.getstring) from remote. How could i show the html code(file) in the current page ?
In a abmaterial page(tokenpage.pas), I use following code and then get a HTML file(job.getstring) from remote. How could i show the html code(file) in the current page ?
B4X:
Sub btn1_Clicked(target As String)
Dim url As StringBuilder
url.Initialize
url.Append("https://notify-bot.line.me/oauth/authorize?")
url.Append("response_type=code")
url.Append("&client_id=gKzwJNUaVvNTzkN59TFLTe")
url.Append("&redirect_uri=http://localhost:8100/linenotify/index.html")
url.Append("&scope=notify")
url.Append("&state=abcde")
Dim job1 As HttpJob
job1.Initialize("GetDo",Me,Null)
job1.download(url)
'ws.Eval(url,Null)
'ws.Flush
Sub JobDone (Job As HttpJob)
Log(Job.GetString)
End Sub
End Sub
Last edited: