Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Callbacks when events happen such as new comments or new tasks

Tags:

asana

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.

like image 969
heber.allred Avatar asked Apr 24 '13 02:04

heber.allred


People also ask

What are callback events?

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.

What is the purpose of callbacks?

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.

What is callback in response?

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.

What are the types of callback?

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).


2 Answers

(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.

like image 73
Greg S Avatar answered Sep 18 '22 23:09

Greg S


They have recently implemented Events in asana api.

like image 26
ancho Avatar answered Sep 19 '22 23:09

ancho