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

how to execute http request from script editor

Mon Sep 16, 2019 3:31 pm

necesito ejecutar esta peticion http, para la creacion de nuevo web service.


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 37 times
Captura.PNG
Captura.PNG (61.19 KiB) Viewed 37 times

Return to “GpsGate for Developers”