How can I consume this API like I do in Postman. 'Username' and 'password' are required as seen in the image
My Code is:
My Code is:
B4X:
Sub Crear_Token
Dim job As HttpJob
job.Initialize("",Me)
job.PostString("https://apify.epayco.co/login?",$""$)
job.GetRequest.SetHeader("Authorization", "Basic")
job.Username = "c74c2c0a50c0af64ea17d9810e830ae0"
job.Password = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
job.GetRequest.SetContentType("application/json")
Wait For (job) JobDone(j As HttpJob)
Log("Result Token: " & j.Success)
If j.Success Then
Log(j.GetString)
Else
Log(j.ErrorMessage)
End If
j.Release
End Sub