How to add a header in a custom webhook?
Hi Everyone,
I created a custom webhook on inventory creation. Now, I want to add a InventoryId into a header. I check the rest API plugin and their
Any way to add a header from the business logic class?
I created a custom webhook on inventory creation. Now, I want to add a InventoryId into a header. I check the rest API plugin and their
- Code: Select all
ServiceStack.JsonServiceClient client = new ServiceStack.JsonServiceClient(url);
- Code: Select all
string body = inventoryItem.DTO_Serialise().ToJson<JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.InventoryItem>();
JiwaFinancials.Jiwa.RESTAPIPlugin.BusinessLogicPlugin.Webhook(inventoryItem.Manager, body, (inventoryItem.InsertFlag) ? "inventory.specialcreated" : (inventoryItem.DeleteFlag) ? "inventory.specialdeleted" : "inventory.specialupdated", JiwaFinancials.Jiwa.RESTAPIPlugin.BusinessLogicPlugin.PluginName);
Any way to add a header from the business logic class?