Jump to content


Photo

Webhooks


Best Answer rechigo , 28 March 2020 - 12:03 AM

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!

Go to the full post


  • Please log in to reply
10 replies to this topic

#1 rafinha OFFLINE  

rafinha

    Advanced Member

  • Members
  • 79 posts
  • Local time: 03:13 AM

Posted 27 March 2020 - 10:23 PM

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



#2 rechigo OFFLINE  

rechigo

    Advanced Member

  • Members
  • 770 posts
  • Local time: 12:13 AM
  • LocationCALIFORNIA

Posted 28 March 2020 - 12:03 AM   Best Answer

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 by rechigo, 28 March 2020 - 12:04 AM.

  • rafinha likes this

#3 rafinha OFFLINE  

rafinha

    Advanced Member

  • Members
  • 79 posts
  • Local time: 03:13 AM

Posted 28 March 2020 - 08:18 AM

thanks @rechigo ;)


  • rechigo likes this

#4 rafinha OFFLINE  

rafinha

    Advanced Member

  • Members
  • 79 posts
  • Local time: 03:13 AM

Posted 28 March 2020 - 08:46 AM

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 by rafinha, 28 March 2020 - 08:49 AM.


#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156731 posts
  • Local time: 03:13 AM

Posted 28 March 2020 - 11:27 AM

Hmm did I not add that one yet?

#6 rafinha OFFLINE  

rafinha

    Advanced Member

  • Members
  • 79 posts
  • Local time: 03:13 AM

Posted 28 March 2020 - 11:31 AM

I don't think so,

 

Version is: 4.4.0.40

 

5e7f6d9f57af6_webhook.png



#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156731 posts
  • Local time: 03:13 AM

Posted 28 March 2020 - 12:02 PM

Ok yes we'll have to add that. Thanks.


  • rafinha likes this

#8 rafinha OFFLINE  

rafinha

    Advanced Member

  • Members
  • 79 posts
  • Local time: 03:13 AM

Posted 03 April 2020 - 08:27 AM

Hey @Luke, just curious, the missing webhook props is planned for the next minor version?

 

Thanks



#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156731 posts
  • Local time: 03:13 AM

Posted 03 April 2020 - 11:30 AM

In a future update to the plugin yes. Thanks.
  • rafinha likes this

#10 rafinha OFFLINE  

rafinha

    Advanced Member

  • Members
  • 79 posts
  • Local time: 03:13 AM

Posted 12 May 2020 - 06:33 PM

Hey @Luke any news about this? I would like to integrate to create a proper notification system for my Telegram/Messenger bot.

 

Thanks



#11 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156731 posts
  • Local time: 03:13 AM

Posted 12 May 2020 - 11:05 PM

Not yet, sorry.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users