public void TwitterList_Lifecycle()
 {
     var authenticatedUser = User.GetAuthenticatedUser();
     var newList = TwitterList.CreateList("myTemporaryList", PrivacyMode.Private, "tmp");
     var userLists = TwitterList.GetUserSubscribedLists(authenticatedUser);
     var newListVerify = TwitterList.GetExistingList(newList);
     var updateParameter = new TwitterListUpdateParameters();
     updateParameter.Name = "piloupe";
     newListVerify.Update(updateParameter);
     newListVerify.Destroy();
 }
Exemple #2
0
        public static void TwitterList_UpdateList(long listId)
        {
            var list = TwitterList.GetExistingList(listId);
            var updateParameters = new TwitterListUpdateParameters();
            updateParameters.Name = "piloupe";
            updateParameters.Description = "pilouping description";
            updateParameters.PrivacyMode = PrivacyMode.Private;
            list.Update(updateParameters);

            Console.WriteLine("List new name is : {0}", list.Name);
        }