Skip to main content
Applauz
Inspiring
May 24, 2019
Question

Webhooks in AIR

  • May 24, 2019
  • 1 reply
  • 478 views

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

This topic has been closed for replies.

1 reply

natural_criticB837
Legend
May 25, 2019

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.

Applauz
ApplauzAuthor
Inspiring
May 25, 2019

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?

natural_criticB837
Legend
May 27, 2019

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.