getLists method
Returns all custom lists for a user.
Use the /users/:id/lists/:list_id/items method to get the actual items a specific list contains.
id
- User slug
useOAuth
- whether to make the request using OAuth header
🔓 OAuth Optional ✨ Extended Info
Implementation
Future<List<TraktList>> getLists(String id, {bool useOAuth = false}) async {
if (useOAuth) {
return await _manager._authenticatedGetList<TraktList>("users/$id/lists");
}
return await _manager._getList<TraktList>("users/$id/lists");
}