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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.