i am using this api
http://ip-api.com/php/
using okhttp i grab its data like following
i wanted to parse out this data like grabing country , region , etc.. which i couldn't do it sense the string is not static each time its change
http://ip-api.com/php/
using okhttp i grab its data like following
B4X:
Sub getipinfo(gip As String)
Dim j As HttpJob
Dim urllok As String
Dim getdata As String
urllok = "http://ip-api.com/php/"&gip
j.Initialize("", Me)
j.Download(urllok)
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
getdata = j.GetString
End If
j.Release
' parse the out put of getdata
End Sub
i wanted to parse out this data like grabing country , region , etc.. which i couldn't do it sense the string is not static each time its change
Last edited: