• Resolved Anonymous User 16243373

    (@anonymized-16243373)


    How can I use the Webhook – Option? Ive 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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi @intelbooking

    what are you trying to achieve? Do you wish to preview the values you are sending?

    Thread Starter Anonymous User 16243373

    (@anonymized-16243373)

    I want to show a notification in the theme`s user dashboard, when his post is approved/published.

    Plugin Author Kuba Mikita

    (@kubitomakita)

    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

    Plugin Author Kuba Mikita

    (@kubitomakita)

    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.com

    Many thanks again!

    Plugin Author Kuba Mikita

    (@kubitomakita)

    The {post_permalink} definitely works but I think you have the wrong key.

    It should rather be value1 instead of VALUE

    IFTTT SERVICE:
    Your key is: SECRET_KEY

    To 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_KEY

    Arguments:
    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!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to use Webhook’ is closed to new replies.