getPersonalRecommendations method

Future<List<PersonalRecommendation>> getPersonalRecommendations({
  1. MoviesShowsType? type,
  2. SortBy? sortBy,
  3. bool extendedFull = false,
  4. 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.

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(
    {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>(
      "sync/recommendations$request",
      extendedFull: extendedFull,
      pagination: pagination);
}