예제 #1
0
        static void PostTweet_Typed()
        {
            // Insert GUID because Twitter denies access to identical tweets
            string       message = "A typed tweet from the Ramone client [" + Guid.NewGuid() + "]";
            StatusUpdate update  = new StatusUpdate {
                status = message
            };

            Session.Bind(TwitterApi.StatusesUpdate, update).Post();
            Console.WriteLine("Posted update using typed object parameters.");
        }
예제 #2
0
파일: Program.cs 프로젝트: JornWildt/Ramone
 static void PostTweet_Typed()
 {
     // Insert GUID because Twitter denies access to identical tweets
       string message = "A typed tweet from the Ramone client [" + Guid.NewGuid() + "]";
       StatusUpdate update = new StatusUpdate { status = message };
       Session.Bind(TwitterApi.StatusesUpdate, update).Post();
       Console.WriteLine("Posted update using typed object parameters.");
 }