Answered WhatsApp Transformer Missing Header Information

The example for the callback initiation in tyntec is missing the 'Accept' information for the header, leading to error messages when used as written here.

The header should look like this :

  'Content-Type':'application/json',
  'Accept':'application/problem+json',
  'apikey':'API_KEY'

Didn't find what you were looking for?

New post
Was this post helpful?
0 out of 0 found this helpful

Comments

3 comments

  • Hi Paul,

    Thank you for your post. Please find the stable version of the transformer function here: https://github.com/Cognigy/TransformersSamples/blob/master/transformers/tyntecWhatsAppTransformer/transformer.ts. 

     

    You can just uncomment the Accept header if it is required. 

     

    Best
    Alex

     

    0
  • Oh the transformer worked fine. I was talking about the priming PATCH request for the callback URL.

    0
  • Hi Paul,

    just to be sure. Is your question answered? 

     

    Best
    Alex

    0

Please sign in to leave a comment.