SyncTrait
+ Inheritance diagram for SyncTrait:

Description

Adds event syncing to entities.

Public Methods

Event[] getEvents (?string &$token)
 Polls for new events. More...
 

Methods

◆ getEvents()

Event [] getEvents ( ?string &  $token)

Polls for new events.

Asana throws 400 when events are read from unknown/deleted entities.

See also
https://developers.asana.com/docs/get-events-on-a-resource
Parameters
null | string$tokenUpdated to the new token.
Returns
Event[] Empty if the given token is NULL
Exceptions
AsanaErrorThe given (non-null) token expired, or general API error.