javier.movilform
Posts: 2
Joined: Fri Sep 13, 2019 2:45 pm

how to execute http request for Web Service from the Script editor

Mon Sep 16, 2019 3:20 pm

I need to make this request
Captura.PNG
Captura.PNG (61.19 KiB) Viewed 47 times
Captura.PNG
Captura.PNG (61.19 KiB) Viewed 47 times
I think I need to insert the header with the Authorization token, but I don't know how to do it

Code: Select all

// Web Service Script template

// The user needs to have _WebServiceScriptLogin privilege
// Example query string: user=x&pass=y
var user = request.queryParams.get('user');
var pass = request.queryParams.get('pass');


auth.login(user,pass);



var url="http://sistema2.gpsmobile.cl/comGpsGate/api/v.1/applications/23/usersstatus?FromIndex=0&PageSize=1000";

log(http.GET(url,"") );
Attachments
Captura1.PNG
Captura1.PNG (68.91 KiB) Viewed 47 times

Return to “GpsGate for Developers”