getList method
Returns a single custom list.
Use the /users/:id/lists/:list_id/items method to get the actual items this list contains.
id
- User slug
listId
- Trakt ID or Trakt slug
useOAuth
- whether to make the request using OAuth header
🔓 OAuth Optional 😁 Emojis
Implementation
Future<TraktList> getList(String id, String listId, {bool useOAuth = false}) async {
if (useOAuth) {
return await _manager._authenticatedGet<TraktList>("users/$id/lists/$listId");
}
return await _manager._get<TraktList>("users/$id/lists/$listId");
}