/// <summary> /// Allows the authenticating users to follow the user specified in the userName parameter. /// </summary> /// <param name="tokens">The tokens.</param> /// <param name="userName">The user name.</param> /// <param name="options">The options.</param> /// <returns> /// Returns the followed user in the requested format when successful. /// </returns> public static TwitterResponse<TwitterUser> Create(OAuthTokens tokens, string userName, CreateFriendshipOptions options) { Commands.CreateFriendshipCommand command = new Commands.CreateFriendshipCommand(tokens, userName, options); return CommandPerformer.PerformAction(command); }
/// <summary> /// Allows the authenticating users to follow the user specified in the userID parameter. /// </summary> /// <param name="tokens">The tokens.</param> /// <param name="userId">The user id.</param> /// <param name="options">The options.</param> /// <returns> /// Returns the followed user in the requested format when successful. /// </returns> public static TwitterResponse<TwitterUser> Create(OAuthTokens tokens, decimal userId, CreateFriendshipOptions options) { Commands.CreateFriendshipCommand command = new Commands.CreateFriendshipCommand(tokens, userId, options); return CommandPerformer<TwitterUser>.PerformAction(command); }