Post “Hello World” to twitter from .NET application

后端 未结 6 1319
耶瑟儿~
耶瑟儿~ 2020-12-14 04:30

My client would like me to use .NET to post to Twitter, and suggests that I use C#.

Q: How do I post \"Hello World\" to twitter using C#?

This post mentions

6条回答
  •  暖寄归人
    2020-12-14 05:10

    Just use this implemented wrapper for the Twitter API:

    https://github.com/danielcrenna/tweetsharp

        var twitter = FluentTwitter.CreateRequest()   
        .AuthenticateAs("USERNAME", "PASSWORD")   
        .Statuses().Update("Hello World!")   
        .AsJson();   
    
        var response = twitter.Request();  
    

    From: http://code-inside.de/blog-in/2009/04/23/howto-tweet-with-c/

    There is even a DotNetRocks interview with the developers.

提交回复
热议问题