예제 #1
0
        /// <summary>
        /// Shows how to do a Notifications Follow
        /// </summary>
        /// <param name="twitterCtx">TwitterContext</param>
        private static void EnableNotificationsWithUserIDDemo(TwitterContext twitterCtx)
        {
            var user = twitterCtx.EnableNotifications(null, "15411837", null);

            if (user == null) return;

            Console.WriteLine("User Name: " + user.Name);
        }
예제 #2
0
        /// <summary>
        /// Shows how to do a Notifications Follow
        /// </summary>
        /// <param name="twitterCtx">TwitterContext</param>
        private static void EnableNotificationsWithScreenNameDemo(TwitterContext twitterCtx)
        {
            var user = twitterCtx.EnableNotifications(null, null, "JoeMayo");

            if (user == null) return;

            Console.WriteLine("User Name: " + user.Name);
        }