-
Hi Jericho First off, may I say I am so happy i found your library, it looks like its going to save me a lot of time. I had a couple of questions on how the WebhookSettings works for managing multiple webhooks. Ref:
In the get and update functions in WebhookSettings or EventWebhookSettings, I can't see any references to an How do these work when you have more than one webhook setup? Thanks for your help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The functionality to update webhook settings was added to StrongGrid back in March 2017. At the time (if I remember correctly) , you couldn't have multiple webhooks configured and there was no "id" to uniquely identify a particular set of webhook settings. This explains why you can't find an Id property on the webhook settings class in the StrongGrid library. In the intervening 7 years, SendGrid has changed their API to allow multiple webhook settings but, as you found out, StrongGrid has not been updated to match this new functionality. As far as your question about "How do these work when you have more than one webhook setup?", the answer is in SendGrid's documentation:
|
Beta Was this translation helpful? Give feedback.
-
@saan800 I uploaded a beta package called StrongGrid.0.107.0-multiple-webhook0023 to my personal NuGet feed to allow you to mange webhook settings by ID. Let me know if you have a chance to test it and if you have any feedback. |
Beta Was this translation helpful? Give feedback.
The functionality to update webhook settings was added to StrongGrid back in March 2017. At the time (if I remember correctly) , you couldn't have multiple webhooks configured and there was no "id" to uniquely identify a particular set of webhook settings. This explains why you can't find an Id property on the webhook settings class in the StrongGrid library. In the intervening 7 years, SendGrid has changed their API to allow multiple webhook settings but, as you found out, StrongGrid has not been updated to match this new functionality.
As far as your question about "How do these work when you have more than one webhook setup?", the answer is in SendGrid's documentation: