getStats method

Future<Stats> getStats(
  1. String id, {
  2. bool useOAuth = false,
})

Returns stats about the movies, shows, and episodes a user has watched, collected, and rated.

id - User slug useOAuth - whether to make the request using OAuth header

🔓 OAuth Optional

Implementation

Future<Stats> getStats(String id, {bool useOAuth = false}) async {
  if (useOAuth) {
    return await _manager._authenticatedGet<Stats>("users/$id/stats");
  }
  return await _manager._get<Stats>("users/$id/stats");
}