Not able to use secure setting

Con risposta


Data ultimo post: 20 mag 2022

I am trying to use the secure setting and wants to make an api call to my server. But in the actual request it is sent as {{setting.apikey}} instead of actual value. I already setup my local environment with the steps mentioned in below article.
https://developer.zendesk.com/documentation/apps/app-developer-guide/using-the-apps-framework/#testing-an-app-with-secure-settings-locally

 

var fetchItem  = {
            url: API_URL+'auth',
            headers: {apikey:"{{setting.apikey}}"},
            secure: true,
            data:'',
            type: 'POST',
            httpCompleteResponse:true,
            contentType:"application/json",
            cors: false,
          };
          console.info(fetchItem);
          zafClient.request(fetchItem).then(

 

 

 


1

1

0 commenti

      Accedi per lasciare un commento.

      Non hai trovato quello che cerchi?

      Nuovo post