Dear All,
I´m using jokhttputils2 trying to authenticate a request with the following:
Based on that in the manual it states:
But I keep getting
I manage to logon to their web interface via chrome easily, but the API just won´t work for me. I tried having username & password both before and after the poststring.
Any idea what´s going wrong?
I´m using jokhttputils2 trying to authenticate a request with the following:
B4X:
httpjob.Username = "user"
httpjob.Password = "pass"
httpjob.PostString ( "https://api.vat-search.eu/v2/bulk_search/?cutoff_score=1" , $"[
{"n": "Linkomat GmbH","a": "1150","cc": "at"},
{"n": "Google","a": ""}
]"$)
)
Based on that in the manual it states:
Example: curl -XPOST "https://api.vat-search.eu/v2/bulk_search/?cutoff_score=1" -d '[ {"n": "Linkomat GmbH","a": "1150","cc": "at"}, {"n": "Google","a": ""} ]' 2. Authentication We support Basic Authentication with the assigned user name and password setup
But I keep getting
B4X:
{"error":"Authentication required"}
I manage to logon to their web interface via chrome easily, but the API just won´t work for me. I tried having username & password both before and after the poststring.
Any idea what´s going wrong?
Last edited: