Skip to content

EventNotification - Webhook - JSON #130

@adrienlamotte

Description

@adrienlamotte

Hello,

I'm using EventNotification class to define my webhook. I can see you can choose between XML/JSON when I use the website to create the hook :

image

But I can't find a way to ask for JSON when creating the hook programmatically like :

    $eventNotification = new EventNotification();
    $eventNotification->setUrl('https://webhook.site/123456');
    // How to ask for JSON ?

Is this possible?
Thanks for you help!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions