linq-to-twitter

Visual Studio 2015 - Debug with HTTP connection problems

眉间皱痕 提交于 2020-05-16 07:43:56
问题 I have a program (console application) that makes use of LinqToTwitter to read some tweets. When I debug the program I get an error "The underlying connection was closed: An unexpected error occurred in a submission". Message = An error occurred while sending the request. Message = The underlying connection was closed: An unexpected send error occurred. If I build the program, I can run the program without any problems. I already researched and can't find the problem. Does it have to do with

Visual Studio 2015 - Debug with HTTP connection problems

心不动则不痛 提交于 2020-05-16 07:43:38
问题 I have a program (console application) that makes use of LinqToTwitter to read some tweets. When I debug the program I get an error "The underlying connection was closed: An unexpected error occurred in a submission". Message = An error occurred while sending the request. Message = The underlying connection was closed: An unexpected send error occurred. If I build the program, I can run the program without any problems. I already researched and can't find the problem. Does it have to do with

Can't get screenName of a list of user ID because of the API rate Limits. What can I do? linqtotwitter c#

妖精的绣舞 提交于 2020-01-15 12:26:07
问题 I have a function in my application that find IDs of a user followers. But I want to get the screenName of these followers. I tried to get directly followers.screenName but it doesn't work because followers type is SocialGraph and not string! I tried to convert this on string but I can't because it returns a list. It cause problems for example when I search someone who has 1680 followers. It gives me the error : The rate limit is exceeded. I want to know if it is possible to do the same thing

Send Private message with LinqToTwitter

风流意气都作罢 提交于 2020-01-06 17:39:13
问题 Hi i want to send private message with linqToTwitter, here is my code : var auth = new MvcAuthorizer { Credentials = new InMemoryCredentials() { ConsumerKey = TwitterClient.ConsumerKey, ConsumerSecret = TwitterClient.ConsumerSecret, OAuthToken = TempData["AccessToken"] as string, AccessToken = TempData["TokenSecret"] as string } }; var twitterContext = new TwitterContext(auth); var message = twitterContext.NewDirectMessage(auth.UserId, "Hi ucef, cool to discuss with you" + DateTime.Now); but

Retrieve userId and send private message with linqtotwitter

此生再无相见时 提交于 2020-01-06 08:16:34
问题 I want to send private message to Twitter with my web app in asp.net mvc3. I was doing the authorization with oauth , here is my code: in AccountController: public ActionResult LogOn() { credentials.ConsumerKey = TwitterClient.ConsumerKey; credentials.ConsumerSecret = TwitterClient.ConsumerSecret; auth = new MvcAuthorizer { Credentials = credentials }; auth.CompleteAuthorization(Request.Url); if (!auth.IsAuthorized) { string callbackUrl = "http://127.0.0.1:31891/Account/CompleteAuth"; Uri uri

Using Linq2Twitter and cached OAuth tokens withing a ServiceStack api

╄→尐↘猪︶ㄣ 提交于 2020-01-04 04:16:15
问题 I want to use Linq2Twitter to make a Twitter API call from within a REST API written in ServiceStack. I have the following information: ConsumerKey ConsumerSecret cached OAuth Token from when the user authenticated our app on the site cached OAuth TokenSecret from when the user authenticated our app on the site How do I create the TwitterContext using this information so that I can make API calls? I am looking at the documentation and I see WebForm, MVC, Desktop examples, but none for my

How to handle LinqtoTwitter Rate(v2.1) limit exceeded Error

时间秒杀一切 提交于 2019-12-25 06:31:34
问题 1 .Hi SO, I have a created a class for fetching user's tweets from twitter with the help of screen name. My problem is I'm getting rate limit exceeded very frequently. 2 .I had created table for screen name in which I'm saving all screen names and 3 .I had created another table to store user's tweets. Below is my Code: public List<TwitterProfileDetails> GetAllTweets(Func<SingleUserAuthorizer> AuthenticateCredentials,string screenname) { List<TwitterProfileDetails> lstofTweets = new List

Find all followers for a user using Linq to Twitter?

我只是一个虾纸丫 提交于 2019-12-24 17:23:47
问题 How can I find all the followers a Twitter user has using Linq2Twitter? All I can find in the documentation is a reference to the .Following property, not the .Followers property. var result = from search in context.List where search.Following //etc How can I find the followers a Twitter user has if I provide the twitter username? twitter.com/foobar // 'foobar' is the username. 回答1: LINQ to Twitter lets you query the social graph for friends and followers. Here's an example of how to get

Work with LinqToTwitter.dll to perform oauth authorization

不羁岁月 提交于 2019-12-24 17:22:05
问题 How to perform OAUTH authorization in C# Desktop Application using LinqToTwitter dll file. Please provide the step-by step process to achieve this task. 回答1: I just created a Windows Forms demo on this page: https://linqtotwitter.codeplex.com/wikipage?title=LINQ%20to%20Twitter%20Samples Here's the LINQ to Twitter Security Documentation that explains OAuth and provides different ways to use OAuth with LINQ to Twitter: https://linqtotwitter.codeplex.com/wikipage?title=Securing%20Your

Streaming Tweets with LinqToTwitter C#

独自空忆成欢 提交于 2019-12-24 15:25:06
问题 Is it possible to get the list of tweets of a twitter user in real-time using LinqToTwitter in C# Following is the code i use to get the tweets of a user without real-time streaming. var rawTwitterItems = twitterContext.Status.Where(x => x.ScreenName == "BloombergNews" && x.Type == StatusType.User); var items= a.ToList(); 回答1: Yes, LinqToTwitter does support streaming. See the documentation example on streaming users status messages: Console.WriteLine("\nStreamed Content: \n"); int count = 0;