2
votes

Parsehub provides the webhook feature. But currently I'm testing my Rails app locally. So how could I provide the webhook url for a project on Parsehub to point to my local server or any specific method in my controller.

Parsehub Doc Webhook: https://www.parsehub.com/docs/ref/api/v2/#webhooks

Webhook Url option Screenshot:

enter image description here

2
Hi, if you found my answer useful please upvote it. - rii
Did you figure your issue out? - rii

2 Answers

0
votes

In order to use a webhook, you need to provide a publicly visible IP address for ParseHub to make requests to. You can get one by registering for a cheap VPS host (e.g. DigitalOcean for $5/month).

On that host, you want to run a webserver, and put the endpoint that the webserver listens on into the webhook textbox in ParseHub. To inspect the details of what ParseHub sends, you can just make your webserver log all the request data. You can also check out our API docs which have a description of all the fields: https://www.parsehub.com/docs/ref/api/v2/#run

0
votes

The way I usually test webhooks is by using Request Bin http://requestb.in/ Essentially you get a url from them, you give this as your webhook address and anything that is posted to this URL will be caught by the website for further inspection!

You can then get these parameters and post them to your application manually, thus mimicking the entire process.