TypeError: client.request.get is not a function

Hi ,

I am facing an issue when developing a React FreshDesk App. I get the below error when using the client.request.get()

uncaught (in promise) TypeError: client.request.get is not a function

Code snippet below. -

 useEffect( async () => {

      const apiKey = "22fytwes0VwDCo9Jm22";

      var options = {
        headers: {
          Authorization: `Basic <%= encode(${apiKey}) %>`, // substitution happens by platform
          "Content-Type": "application/json",

      client.iparams.get().then(function (iparams) {
        const URL = `https://${iparams.domain}.freshdesk.com/api/v2/tickets`;
          .get(URL, options)
          .then(function ({ response }) {
    }, [])

Can someone help me to resolve this issue?


"platform-version": "2.3",

Hi @Ajay_Emmanuel

Welcome to Freshworks Developer Community!! :bouquet: :fireworks:

Using request methods with platform 2.3 is not supported. Kindly use request templates for the use case. Kindly refer to request method samples to understand more.


1 Like