Using ZDK.HTTP.Request /First argument must be a String / Whats a Wrong?
Hi Team
Here again with a little problem using ZDK.HTTP.Request, i need to make a http request from client script, my source code is the following:
- filtro = 'DocumentNumber eq ';
- filtro = filtro + '\'844989539\'';
- filtro = filtro + 'and DocumentType eq ';
- filtro = filtro + '\'NationalId\'';
- filtro = filtro + 'and DocumentCountry eq ';
- filtro = filtro + '\'CL\'';
- filtro = '=' + filtro;
- ZDK.Client.showMessage(filtro);
- kk=ZDK.HTTP.request({
- url: 'https://proxy1.qa.sked24api.io/v1/Patients',
- method: 'GET',
- parameters: {
- $filter: filtro ,
- },
- headers: {
- 'Authorization': 'Bearer XXXXXXXXXX',
- 'Ocp-Apim-Subscription-Key': 'XXXXXXXXXXX'
- }
- }
- );
When i try to run code i get the message:
First argument must be a String
What happens with the code?, can you get me a hand for to solve it?
Thanks in advance
Pablo