/// <summary> /// Add a member to a list. The authenticated user must own the list to be able to add members to it. Lists are limited to having 500 members. /// </summary> /// <param name="tokens">The tokens.</param> /// <param name="ownerUsername">The username of the list owner.</param> /// <param name="listId">The list id.</param> /// <param name="userIdToAdd">The user id to add.</param> /// <param name="options">The options.</param> /// <returns> /// A <see cref="TwitterList"/> representing the list the user was added to, or <c>null</c>. /// </returns> public static TwitterResponse<TwitterList> AddMember(OAuthTokens tokens, string ownerUsername, string listId, decimal userIdToAdd, OptionalProperties options) { Commands.AddListMemberCommand command = new Twitterizer.Commands.AddListMemberCommand(tokens, ownerUsername, listId, userIdToAdd, options); return CommandPerformer.PerformAction(command); }
/// <summary> /// Add a member to a list. The authenticated user must own the list to be able to add members to it. Lists are limited to having 500 members. /// </summary> /// <param name="tokens">The tokens.</param> /// <param name="ownerUsername">The username of the list owner.</param> /// <param name="listId">The list id.</param> /// <param name="userIdToAdd">The user id to add.</param> /// <param name="options">The options.</param> /// <returns> /// A <see cref="TwitterList"/> representing the list the user was added to, or <c>null</c>. /// </returns> public static TwitterResponse <TwitterList> AddMember(OAuthTokens tokens, string ownerUsername, string listId, decimal userIdToAdd, OptionalProperties options) { Commands.AddListMemberCommand command = new Twitterizer.Commands.AddListMemberCommand(tokens, ownerUsername, listId, userIdToAdd, options); return(CommandPerformer.PerformAction(command)); }