removeFromPersonalRecommendations method
Remove items from a user's personal recommendations.
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.
🔒 OAuth Required
Implementation
Future<RemoveFromSyncResponse> removeFromPersonalRecommendations(
{List<Movie> movies = const [], List<Show> shows = const []}) async {
Map<String, dynamic> body = {};
if (movies.isNotEmpty) {
body["movies"] = movies.map((movie) => movie.metadata).toList();
}
if (shows.isNotEmpty) {
body["shows"] = shows.map((show) => show.metadata).toList();
}
return await _manager._authenticatedPost<RemoveFromSyncResponse>(
"sync/recommendations/remove",
body: jsonEncode(body));
}