Forums
Home / Plugin: Notification - Custom Notifications and Alerts for WordPress / How do I configure to send using JSON?
(@asbell)
6 years, 11 months ago
How do I configure to send using JSON?
(@kubitomakita)
Nope, where did you send it?
I replied. I cant upload here. How do I get it to you?
Please, send it over the email: [email protected]
Thanks for the screenshot, the configuration looks ok. The escaping for chars like / are needed in JSON, it’s expected behaviour.
I asked about the config because the text you pasted looked weird.
the problem is that its NOT escaping, or maybe it is but its keeping the escape characters in the webhook. Can you fix?
I cannot really see there any issue. What is not working there? What are you trying to do?
All I can see is a test webhook receiver that doesn’t decode the JSON.
I don’t think that’s the correct encoding. I never saw a backward slash encoded like that
https://www.w3schools.com/tags/ref_urlencode.asp
https://www.mywebsite.com Should be encoded like this http%3A%2F%2Fwww.mywebsite.com
Jonathan, you are confusing two different encoding types. JSON is not the same as URL encoding.
You can use this tool: https://www.jsonencode.org/ to play around with the JSON.
The reason why your webhook is not working with the Flexie is that you are sending your API key in the JSON array while it should be probably sent in the header. But I’m just guessing.
I’ll experiment and hey back to you
I’ll experiment and get back to you