How to use Webhook
-
How can I use the Webhook – Option? I
ve tried to implement it, but I cant get any value. Ive tested the Webhook and its working fine. But how can I simply echo the values? Do I need to save the values first?Thanks
-
Hi @intelbooking
what are you trying to achieve? Do you wish to preview the values you are sending?
I want to show a notification in the theme`s user dashboard, when his post is approved/published.
Ah I see, this is out of the scope of this plugin. You have to save the values somewhere to display them or listen for them live using WebSockets or WP Heartbeat API.
But doing this using the Notification plugin seems to be an overkill – you are grabbing the action, process it with the plugin and send back to the same WordPress 🙂
Unless you are sending other notifications I’d move to the custom solution that could be easier to integrate with your theme’s user dashboard.
But as I wrote, displaying the notifications is not a subject of this plugin.
I just instaled your plug-in.
Nice job! Good work!
I wanted to notified every WordPress posts.
Email notification works very well but webhooks not.
I am working with IFTTT/maker_webhooks. Tested it! Works!When integrated with the plug-in NOT.
Very poor webhooks documentation. Sorry for that.Yesterday the plug-in firing but the “value” didn’t.
Today the plug-in did not work anymore.I dont’ know … I am very frustrated.
Let’s see the parameters for what’s wrong with me:
TYPE: POST
URL: https://maker.ifttt.com/trigger/NAME
KEY: IFTTT_SECRETKEY
VALUE: {post_permalink}Thank you for making my work and life easier!
LIVIU
Thanks @liviu62!
I think your address should be https://maker.ifttt.com/trigger/{event}/with/key/XXXXXXXXXXXXXXXXXX
Also, the webhook should be JSON encoded.
Thanks for your quick replay!
Yes, my mistake. Works!
But VALUE: {post_permalink} doesn’t!
Here is IFTTTT Maker event:
https://screenshots.firefox.com/2sy3tATBJukwQe4v/ifttt.comMany thanks again!
The
{post_permalink}definitely works but I think you have the wrong key.It should rather be
value1instead ofVALUEIFTTT SERVICE:
Your key is: SECRET_KEYTo trigger an Event
Make a POST or GET web request to:https://maker.ifttt.com/trigger/EVENT_NAME/with/key/SECRET_KEY
With an optional JSON body of:
{ “value1” : “”, “value2” : “”, “value3” : “” }
The data is completely optional, and you can also pass value1, value2, and value3 as query parameters or form variables. This content will be passed on to the Action in your Recipe.
You can also try it with curl from a command line.
curl -X POST https://maker.ifttt.com/trigger/EVENT_NAME/with/key/SECRET_KEY
————————-So, my webhook config is:
URLs:
TYPE: POST
URL https://maker.ifttt.com/trigger/EVENT_NAME/with/key/SECRET_KEYArguments:
Key: SECRET_KEY
Value: {post_permalink}Check JSON “Send the arguments in JSON format”
Headers:Key and Value same as arguments.
I tried everything…
Trigger firing with arbitrary value1, value2 from direct IFTTT site.
I don’t know …
Thanks again!
The topic ‘How to use Webhook’ is closed to new replies.