I am struggling with getting/setting the X-egain-session at runtime required for some of the API calls.
The URL parameter __eg_request_token __ (the space between n and _ is intentional) seems to be the magic value through the console.
When I hardcode the X-egain-session header the API call is successful on the article, but I cannot get/set the value dynamically at runtime.
Using <% __eg_request_token __ %> will prompt for the value in the console but I can’t seem to get and set the correct parameters at runtime.
I’ve tried the composite API as well, but I cannot seem to get the required value.
What am I missing?