Skip to main content
Applauz
Inspiring
May 24, 2019 9:37 PM UTC
Question

Webhooks in AIR

Is it possible to listen for webhooks in an AIR app ?

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

natural_criticB837
Legend
May 25, 2019 12:28 PM UTC

Hi,

webhooks usually refer to a third party server calling your server to give you an update on something. Since Air is a client-side technology and not a server-side technology, webhooks can not be sent to Air. I think you misunderstood something when you were reading the documentation of a service.

Maybe let us know what exactly you are trying to do and we can give some more advice how that might work with Air.

Translate
Applauz
ApplauzAuthor
Inspiring
May 25, 2019 1:29 PM UTC

Hello,

Im trying to figure out what can be done with a webook being sent from 3rd party API to my server URL.

From there... can my server after it receives the information pass it on to the user logged in to my app to trigger code in my app?

Translate
natural_criticB837
Legend
May 27, 2019 6:47 AM UTC

This should be no problem if you already have a server and user authentication / sessions. Say the webhook calls your server for user A. Your server stores in your database or in the user session the information. Next time user A comes online or sends a request to your server, you check the session / database for webhook information. Then in your response you add the information of the webhook and user A can use it.

Translate