Ghost Webhook implementation example

#1

Hi,

Does anyone have a working example of the use of Ghost Webhook? Any explanation would be really appreciated.

  • What are the requirements to be called by a webhook function?
  • What are the arguments we have to define in the rest calls?

Any explanation until the official documentation is present.

Thanks :slight_smile:

#2

These questions are lacking enough background info to make sense. What are you using to receive the webhooks?

#3

I just want to write something like send a push notification using firebase push notifications API when I publish a post on Ghost.

something like posting the URL on facebook, twitter whenever a post published on Ghost. (I know we can use Zapier, but this is just to do the same using Webhook, since we already have the functionality within Ghost.)

I want to create a restful service to deal with Ghost Webhook.

#4
  • What are the requirements to be called by a webhook function?
  • What are the arguments we have to define in the rest calls?

I’m afraid I’m not really following what you mean by these questions. There are no requirements for your service to be called by Ghost’s webhooks other than a publicly available URL. Calls are made from Ghost to your service, I’m not sure which arguments you are trying to define and which REST calls you are referring to?

If you want to look at what Ghost sends out, then you can view that yourself by using something like https://webhook.site and putting the URL that it gives you into your webhook config inside Ghost’s admin area. It will then show you what Ghost has sent to that URL any time the webhook is triggered by Ghost.

#5

Thank you very much! This is exactly what I was looking for… :heart_eyes::heart_eyes::heart_eyes:

closed #6

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.