getPersonalRecommendations method
Future<List<PersonalRecommendation> >
getPersonalRecommendations(
- String id, {
- MoviesShowsType? type,
- SortBy? sortBy,
- bool extendedFull = false,
- RequestPagination? pagination,
Returns all items a user personally recommendeds to others including optional notes explaining why they recommended an item.
These recommendations are used to enchance Trakt's social recommendation algorithm. Apps should encourage user's to build their personal recommendations so the algorithm keeps getting better.
id
- User slug
type
- Possible values: movies , shows.
sortBy
- How to sort (only if type is also sent). Possible values: rank , added , released , title .
🔒 OAuth Required 📄 Pagination Optional ✨ Extended Info 😁 Emojis
Implementation
Future<List<PersonalRecommendation>> getPersonalRecommendations(String id,
{MoviesShowsType? type, SortBy? sortBy, bool extendedFull = false, RequestPagination? pagination}) async {
var request = "";
if (type != null) {
request += "/${type.value}";
if (sortBy != null) {
request += "/${sortBy.value}";
}
}
return await _manager._authenticatedGetList<PersonalRecommendation>("users/$id/recommendations$request",
extendedFull: extendedFull, pagination: pagination);
}