简体   繁体   English

我如何使用DotNetOpenAuth库发推文?

[英]How do I tweet, using the DotNetOpenAuth library?

I just downloaded the DotNetOpenAuth library and ran the AuthConsumer demo. 我刚下载了DotNetOpenAuth库并运行了AuthConsumer演示。 It is an excellent library so far! 到目前为止,这是一个很棒的图书馆 Everything worked as advertised, which has not been my experience with a lot of Facebook and Twitter sample code that I have been working with recently. 一切都像宣传的一样,这与我最近一直在使用的很多Facebook和Twitter示例代码的经验不同。

What I am trying to figure out is: How do I tweet using this library? 我想弄清楚的是:我如何使用这个库发推文? I am currently planning to implement this in ASP MVC, but my initial thoughts is that the presentation platform doesn't matter all that much at the level I'm looking at. 我目前正计划在ASP MVC中实现这一点,但我最初的想法是,演示平台在我正在关注的层面上并不重要。

Take a look at the DotNetOpenAuth.ApplicationBlock sample, which includes the Twitter.cs file and the very few sample web method calls that that file has. 看一下DotNetOpenAuth.ApplicationBlock示例,其中包含Twitter.cs文件以及该文件具有的极少数示例Web方法调用。 You can see the pattern, and having looked at the Twitter API documentation on twitter.com, you can add methods to tweet and a bunch of other stuff. 你可以看到这个模式,看过twitter.com上的Twitter API文档,你可以添加推文方法和其他一些东西。

However, it would probably be much easier for you to download LinqToTwitter , which uses DotNetOpenAuth and offers an extensive Twitter library to do most/all the operations Twitter supports. 但是,下载LinqToTwitter可能要容易得多LinqToTwitter使用DotNetOpenAuth并提供广泛的Twitter库来完成Twitter支持的大部分/全部操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM