I would like to call API from custom installation page in freshservice. I will get api key from input field and pass it to the headers.
var serviceApiKey = jQuery(“input[name=service_apiKey]”).val();
var headers = {“Authorization”: “Basic <%= encode(serviceApiKey) %>”};
The response is - Error while substituting the templates & status: 400
How can I handle this.
Another:
What is <%= %>