-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting data from Webhook #30
Comments
@orjanskaar Right now, the plugin only sends an empty POST request. Feel free to open a PR, it shouldn't be too complicated to implement in the existing code. |
Hello I would love to try and help out and give it a go, but im am pretty shure this is just beyond my programming capabilities right now. |
@orjanskaar WebhookPlugin.init({
httpMethod: 'POST',
events: [ProductEvent, ProductVariantChannelEvent, ProductVariantEvent],
requestFn: (event) => {
return {
headers: { test: '1234' },
body: JSON.stringify({ createdAt: event.createdAt }),
};
},
}), Let me know if you have any questions. Closed in #52 |
Hi
I've managed to get my webhook firing for the "StockMovementEvent" using the POST method
I only get an empty string on "request.body". (Like the readme hints to)
Is there some way to configure what data to send like the current stock balance?
The text was updated successfully, but these errors were encountered: