/// <summary> /// Creates a new list for the authenticated user. Note that you can create up to 1000 lists per account. /// </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-create</cref> /// </see> public SocialHttpResponse CreateList(TwitterCreateListOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.DoHttpPostRequest("https://api.twitter.com/1.1/lists/create.json", options)); }
/// <summary> /// Creates a new list for the authenticated user. Note that you can create up to 1000 lists per account. /// </summary> /// <param name="options">The options for the request to the API.</param> /// <returns>An instance of <see cref="TwitterCreateListResponse"/> representing the response.</returns> /// <see> /// <cref>https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-create</cref> /// </see> public TwitterCreateListResponse CreateList(TwitterCreateListOptions options) { return(TwitterCreateListResponse.ParseResponse(Raw.CreateList(options))); }