I'm trying to use the [LL_REPTAG_RESTCLIENT /] tag in a webreport. Ultimately I want to use it to call custom REST endpoints in my Content Server environment but the problem I have can be reproduced with a core call. Here is my WebReport:
[LL_REPTAG_'' ASSOCACTION:CREATE SETVAR:authHeader /]
[LL_REPTAG_!authHeader ASSOCACTION:ADD:"otcsticket":[LL_REPTAG_OTCSTICKET /] SETVAR:authHeader /]
Auth Header: [LL_REPTAG_!authHeader /]<br/>
[LL_WEBREPORT_RESTCLIENT @HOST:'mtxxxxxxxxxxx.domain.ca'
@PORT:80
@URI:'[LL_REPTAG_URLPREFIX /]/api/v2/members/1000'
@HEADER:[LL_REPTAG_!authHeader /]
@METHOD:GET
@TIMEOUT:10
@OUTPUT:ASSOC:userInfo /]
User Info: [LL_REPTAG_!userInfo /]`
When I run this, I always get an authentication error. I tried calling the same API in Postman where I pass in an appropriate otcsticket obtained from Authentication, it just works. From within a WebReport, this doesn't seem to work. I could not find any documentation about how you would use RESTCLIENT to query Content Server so I'm not absolutely sure I have the right format for the header that needs to go into the RestClient tag. I'm also not sure of the HOST param. It's mandatory but I want to be sure that whatever I call is the same as my ticket.
Can anyone tell me how this is supposed to work for calling a local REST API from your WebReport?