Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Have you tried using Postman to get the Bearer token and using it in your logic? Here is an except with token edited and URL edited
//DEFINE CSD URLSdef csdincident = 'api/incidents'def csdevent = '/api/events'def date = new Date()def sdf = new SimpleDateFormat("yyyy-MM-dd")//DEFINE SERVICE IDSdef EOD = 'b56aec29-cb7b-42ec-a329-aeab124b6e84'//CREATE ACCESS BEARER TOKENdef access_token = ''def access_token1 = 'eyJ0LJDMmnasdlkjN'def http = new HTTPBuilder(csdURL)//EOD Incidentdef svcSearch = '?service_id=' + EOD + '&unresolved=true'def GETsearch = ( http.request(GET, JSON) { req ->uri.path = csdincident+svcSearchheaders.'Authorization' = "Bearer $access_token"headers.'Content-Type' = 'application/json'headers.'User-Agent' = 'Mozilla/5.0'
443666 verification code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.