Beispiel #1
0
 /// <summary>
 /// Users / List Items / Add items to custom list
 /// http://docs.trakt.apiary.io/#reference/users/list-items/add-items-to-custom-list
 /// Add one or more items to a custom list
 /// </summary>
 /// <param name="userName">The name of the user</param>
 /// <param name="traktId">Trakt ID of the list</param>
 /// <param name="customListItemIds">The ids of the items to add to the list</param>
 /// <returns>Number of items added</returns>
 public Task <AddItemsToCustomListResult> AddItemsToCustomListAsync(string userName, int traktId, CustomListItemIds customListItemIds)
 => ExecutePostRequestAsync <AddItemsToCustomListResult>($"users/{userName}/lists/{traktId}/items", customListItemIds);
Beispiel #2
0
 /// <summary>
 /// Users / Remove List Items / Remove items from custom list
 /// http://docs.trakt.apiary.io/#reference/users/remove-list-items/remove-items-from-custom-list
 /// Remove one or more items from a custom list
 /// </summary>
 /// <param name="userName">The name of the user</param>
 /// <param name="traktId">Trakt ID of the list</param>
 /// <param name="customListItemIds">The ids of the items to remove from the list</param>
 /// <returns>Number of items removed</returns>
 public Task <RemoveItemsFromCustomListResult> RemoveItemsFromCustomListAsync(string userName, int traktId, CustomListItemIds customListItemIds)
 => ExecutePostRequestAsync <RemoveItemsFromCustomListResult>($"users/{userName}/lists/{traktId}/items/remove", customListItemIds);