/// <summary> /// Shows how to add a member to a list /// </summary> /// <param name="twitterCtx">TwitterContext</param> private static void AddMemberToListDemo(TwitterContext twitterCtx) { List list = twitterCtx.AddMemberToList("LinqToTweeter", "linq", "15411837"); Console.WriteLine("List Name: {0}, Description: {1}", list.Name, list.Description); }
/// <summary> /// Shows how to add a member to a list /// </summary> /// <param name="twitterCtx">TwitterContext</param> private static void AddMemberToListDemo(TwitterContext twitterCtx) { try { List list = twitterCtx.AddMemberToList(null, "Linq2Tweeter", null, "test", null, "Linq2Tweeter"); Console.WriteLine("List Name: {0}, Description: {1}", list.Name, list.Description); } catch (TwitterQueryException tqex) { Console.WriteLine( "Error querying Twitter - Code: {0}, Message: {1}", tqex.ErrorCode, tqex.Message); } }