Buggy
April 25, 2024, 10:17pm
1
I’m not able to get Wappler to provide a URL endpoint for Webhook request. This URL is what I’d provide to 3rd party app like IFTTT as the Webhook URL.
I have read that there’s working around from @Apple replies. Would you kindly help me with implementing this work around?
Apple
April 25, 2024, 10:23pm
2
Hi there,
You create a standard Server Action, do you know how to get the URL of such Server Action? (Preview in browser)
Your webhook is the Server Action
Buggy
April 25, 2024, 10:40pm
3
Thanks for your quick response @Apple The URL I got in preview in browser after creating the api is http://localhost:8100/api/getwebhookdata
Using this throws an error when I tried using it. Is that due to current development on local server?
It could be if you use localhost instead of a dynamic ip or static Ip.
Try to deploy it on a server (like a droplet) and it should work.
1 Like
Apple
April 25, 2024, 10:56pm
5
localhost is only accessible on your local computer, you can’t put that URL in any remote service.
You can use tunneling services like ngrok to obtain a public URL you can share while developing the website:
Intro
We’ve made it easier to share your local projects with a single click and debug requests by integrating the ngrok service in Wappler.
Ngrok is a service that enables you to give external access to your local development server. Ngrok creates an address in the cloud that people can use to access your local server, meaning that no public IP or domain name on the local machine is needed. Similar functionality can be achieved with Reverse SSH Tunneling, but this requires more setup as well …
In real life, once your website is deployed, you use your website’s URL on the webhook (instead of localhost).
1 Like