Donny van V
Donny van V

Reputation: 961

Catching webhooks from a platform to local

I use a platform that allows me to use webhooks. Webhooks will be triggered by an event. So for example, we have the webhook productUpdate. This hook will send data to my URL: mystore.com/url-for-webhook, and the data will be sent by JSON. So alright, pretty easy to catch, but because I work locally, it's a bit harder. I need to make that webhook think that it's posting to an online website, but then forward it to my local machine. As such, instead of mystore.com/url-for-webhook, it should call local/url-for-webhook

Does anybody have a nice solution to make this local available?

Upvotes: 0

Views: 929

Answers (1)

n3wbie
n3wbie

Reputation: 1126

I know the question is pretty old, but just in case someone struggles with this like me a few minutes ago, I would suggest to use ngrok which allow you to create a real URL which will redirect to your local machine ports.

Upvotes: 1

Related Questions