Hello,
I trying to call an API with parameters.
here is my code
I would like to call
?refee=xxx&fechai=xxx&horai=xxx&a=x&n=x&pa=x&pn=x (x are values)
and receive a response with a value from server
Please , what I am doing wrong?
The API in server is public, not authentification is required, only feed the data
Thanks in advance
I trying to call an API with parameters.
here is my code
api call:
Dim res() As Double = Array As Double(9999, 9999)
Dim j As HttpJob
j.Initialize("", Me)
'values for the call'
Dim refee As String="WPCD"
Dim FECHAI As String="2021-09-01"
Dim horai As String="11:00"
Dim a As String="3"
Dim n As String="2"
Dim pa As String="1200"
Dim pn As String="0600"
j.Download2("http://xxxx.xxxx.xxxx.xxxx:53/API/FH/W0082", Array As String("refee", refee, "fechai", FECHAI,"horai",horai,"a",a,"n",n,"pa",pa,"pn",pn))
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Dim jp As JSONParser
jp.Initialize(j.GetString)
Dim m As Map = jp.NextObject
Else
Log("Error!")
End If
j.Release
I would like to call
?refee=xxx&fechai=xxx&horai=xxx&a=x&n=x&pa=x&pn=x (x are values)
and receive a response with a value from server
Please , what I am doing wrong?
The API in server is public, not authentification is required, only feed the data
Thanks in advance