Working of iparams

Hi Team,

I would like to know about the working of iparams config . I have added custom keys apart from the freshworks API key in my application. But the key values are not binding when i run the application .

Am i missing anything apart from above 2 points?

hi @Divakar

Did you use the API key in the below format as a part of the header in the request like given below

  client.request.post("https://<%=iparam.freshdesk_subdomain%>.freshdesk.com/api/v2/tickets", {
    headers: {
      Authorization: "Basic <%= encode(iparam.freshdesk_api_key)%>",
      "Content-Type": "application/json;charset=utf-8"
    },
    body: JSON.stringify({
      description: `A sample description`,
      email: `john.doe@email.com`,
      subject: `A Subject`
    })
  })
    .then(function (data) {
      console.data(data);
    })
    .catch(function (error) {
      console.error(error);
    });

If you used the correct format, please show us the iparams.json file and the function in which you are trying to use the iparams!

Ok now i got it , Client object that gets returned in app.initialized is responsible for parsing these iparams right?
I was using this iparams outside client interface that might be the reason it is not working. I thought you are parsing each and every line of the code and transforming iparam at your library.