Hi I should download a json from a web service via an api call ,This is the code I used :
and this is the documentation :
but i can't download anything, i always get this error
I tried with Postman to manage the api and it works fine.
What am I doing wrong ?
B4X:
Dim JobDoc As HttpJob
JobDoc.Initialize("JobDoc",Me)
JobDoc.Download("https://webapide.aliasgrouplab.it/api/DocumentoAttivo/100009")
JobDoc.GetRequest.SetHeader("APIKey","2b6dedd8efc2668b56b2d070424a436f0027134c293199724ee80.........")
JobDoc.GetRequest.SetHeader("APISecret","47c55ace70212b27d79db9e5824d09541ea120de3e88bf8993c4152c62239b0df9382242e9570dd00e6cfcf3980ba74a95630305cf00661fe89d8......."")
JobDoc.GetRequest.SetHeader("CodiceCliente","0185469.....")
Wait For (JobDoc) JobDone(JobDoc As HttpJob)
If JobDoc.Success Then
Log(JobDoc.GetString)
Else
Log(JobDoc.ErrorMessage)
End If
and this is the documentation :
but i can't download anything, i always get this error
I tried with Postman to manage the api and it works fine.
What am I doing wrong ?