Is there a way using the Asana API for my program to receive some sort of notification when items change or are added (such as new tasks, or comments)? I want to make a realtime app that integrates with Asana. For example, using the comments on an item in a way that it's a realtime chat between people. I imagine if Asana API can support this by sockets or long polling, that would be great.
An event callback function is a function in a script that Monitoring Scripting Client calls in response to an event. In your event callback functions, provide code to generate statistics from the data in events. Typically, the following types of statistics can be generated from the data in events: Counter statistics.
A callback's primary purpose is to execute code in response to an event. These events might be user-initiated, such as mouse clicks or typing. With a callback, you may instruct your application to "execute this code every time the user clicks a key on the keyboard." button.
A callback is an asynchronous API request that originates from the API server and is sent to the client in response to an earlier request sent by that client. APIs can use callbacks to signal an event of interest and share data related to that event.
There are two types of callbacks, differing in how they control data flow at runtime: blocking callbacks (also known as synchronous callbacks or just callbacks) and deferred callbacks (also known as asynchronous callbacks).
(I work at Asana.) Not yet, but requests for a notification system are common and we are already designing a solution for it. While we are targeting real- or near-real-time responsiveness, I can't say for certain whether it will be appropriate to support "real-time chat" via comments, nor can I give any details on the timeline, but we'll definitely announce it when we launch.
They have recently implemented Events in asana api.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With