getLatestActivities method

Future<SyncActivity> getLatestActivities()

This method is a useful first step in the syncing process. We recommended caching these dates locally, then you can compare to know exactly what data has changed recently. This can greatly optimize your syncs so you don't pull down a ton of data only to see nothing has actually changed.

Account

settings_at is set when the OAuth user updates any of their Trakt settings on the website. followed_at is set when another Trakt user follows or unfollows the OAuth user. following_at is set when the OAuth user follows or unfollows another Trakt user. pending_at is set when the OAuth user follows a private account, which requires their approval.

🔒 OAuth Required

Implementation

Future<SyncActivity> getLatestActivities() async {
  return await _manager
      ._authenticatedGet<SyncActivity>("sync/last_activities");
}