发布“Hello World"从 .NET 应用程序到 Twitter [英] Post "Hello World" to twitter from .NET application
本文介绍了发布“Hello World"从 .NET 应用程序到 Twitter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的客户希望我使用 .NET 发布到 Twitter,并建议我使用 C#.
My client would like me to use .NET to post to Twitter, and suggests that I use C#.
问:如何使用 C# 将Hello World"发布到 Twitter?
Q: How do I post "Hello World" to twitter using C#?
这篇文章提到了一个名为 twitterizer 的库.没有使用 3rd 方库的本地方法吗?(也许不是,因为身份验证是要求之一).
This post mentions a library called twitterizer. Isn't there a native way to do it without using a 3rd party library? (Maybe not since authentication is one of the requirements).
推荐答案
只需为 Twitter API 使用这个实现的包装器:
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();
来自:http://code-inside.de/blog-in/2009/04/23/howto-tweet-with-c/
这篇关于发布“Hello World"从 .NET 应用程序到 Twitter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文