/// <summary> /// Deletes the specified list. The authenticated user must own the list to be able to destroy it. /// </summary> /// <param name="options">The options for the request to the API.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns> /// <see> /// <cref>https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-destroy</cref> /// </see> public SocialHttpResponse DeleteList(TwitterDeleteListOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.DoHttpPostRequest("https://api.twitter.com/1.1/lists/destroy.json", options)); }
/// <summary> /// Deletes the matching the specified <paramref name="options"/>. The authenticated user must own the list to be able to destroy it. /// </summary> /// <param name="options">The options for the request to the API.</param> /// <returns>An instance of <see cref="TwitterDeleteListResponse"/> representing the response.</returns> /// <see> /// <cref>https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-destroy</cref> /// </see> public TwitterDeleteListResponse DeleteList(TwitterDeleteListOptions options) { return(TwitterDeleteListResponse.ParseResponse(Raw.DeleteList(options))); }