如何在Twitter中不使用tweetinvi发布消息? [英] How to post a message without using tweetinvi in twitter?

查看:101
本文介绍了如何在Twitter中不使用tweetinvi发布消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Windows应用程序并添加了tweetinvi dll的引用并在twitter中发布了一条消息。它工作正常,但我需要使用OAUTH而不是使用tweetinvi在Twitter上发布消息。我使用了以下代码:



TwitterCredentials.SetCredentials(AccessToken,AccessTokenSecret,ConsumerKey,ConsumerSecret);



var newTweet = Tweet.CreateTweet(Hello);



newTweet.Publish();



请帮助我!!!

I created a windows application and add the reference for tweetinvi dll and post a message in twitter. Its working fine, but i need to post a message in twitter using OAUTH instead of using tweetinvi. I used the following code:

TwitterCredentials.SetCredentials(AccessToken, AccessTokenSecret, ConsumerKey, ConsumerSecret);

var newTweet = Tweet.CreateTweet("Hello");

newTweet.Publish();

Please help me !!!

推荐答案

这篇关于如何在Twitter中不使用tweetinvi发布消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆