rafinha 8 Posted March 28, 2020 Share Posted March 28, 2020 Hi, I'm trying to use the webhhoks and I have some questions. I created in my side a POST endpoint and I point the webhooke to my endpoint, that its fine, I got the call when an event happens. Now I take a look in the request, and there is nothing on body. What should I expect in the POST from plugin webhooks? Thanks Link to comment Share on other sites More sharing options...
Solution rechigo 293 Posted March 28, 2020 Solution Share Posted March 28, 2020 (edited) I'm guessing you're expecting JSON (application/json) to be the content type - that's not the case here The data that comes in from a POST via the webhooks plugin is in multipart/formdata under a key called "data" Hope this helps! Edited March 28, 2020 by rechigo 1 Link to comment Share on other sites More sharing options...
rafinha 8 Posted March 28, 2020 Author Share Posted March 28, 2020 thanks @@rechigo 1 Link to comment Share on other sites More sharing options...
rafinha 8 Posted March 28, 2020 Author Share Posted March 28, 2020 (edited) AH, @@rechigo, @@Luke I forgot to ask, there is no way to get "New Content Added" from Webhooks? I subscribed for "System Events" but I got nothing. Thanks Edited March 28, 2020 by rafinha Link to comment Share on other sites More sharing options...
Luke 36887 Posted March 28, 2020 Share Posted March 28, 2020 Hmm did I not add that one yet? Link to comment Share on other sites More sharing options...
rafinha 8 Posted March 28, 2020 Author Share Posted March 28, 2020 I don't think so, Version is: 4.4.0.40 Link to comment Share on other sites More sharing options...
Luke 36887 Posted March 28, 2020 Share Posted March 28, 2020 Ok yes we'll have to add that. Thanks. 2 Link to comment Share on other sites More sharing options...
rafinha 8 Posted April 3, 2020 Author Share Posted April 3, 2020 Hey @@Luke, just curious, the missing webhook props is planned for the next minor version? Thanks Link to comment Share on other sites More sharing options...
Luke 36887 Posted April 3, 2020 Share Posted April 3, 2020 In a future update to the plugin yes. Thanks. 1 Link to comment Share on other sites More sharing options...
rafinha 8 Posted May 12, 2020 Author Share Posted May 12, 2020 Hey @@Luke any news about this? I would like to integrate to create a proper notification system for my Telegram/Messenger bot. Thanks Link to comment Share on other sites More sharing options...
Luke 36887 Posted May 13, 2020 Share Posted May 13, 2020 Not yet, sorry. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now