linq-to-twitter

Linq to Twitter Authenticated But Getting 215 “Bad Authentication Data”

元气小坏坏 提交于 2019-12-14 04:08:35
问题 I have been using Linq to Twitter for Authenticating with OAuth for the Twitter API 1.1. I set my credentials and then pass them to Linq to Twitter which states I that isAuth returns true. However, at run time I receive at 215 "Bad Authentication Data" error. Has anyone else had this problem? var auth = new SingleUserAuthorizer { Credentials = new InMemoryCredentials { ConsumerKey = TwitterSettings.ConsumerKey, ConsumerSecret = TwitterSettings.ConsumerKeySecret, OAuthToken = TwitterSettings

Get all followers using LINQ to Twitter

二次信任 提交于 2019-12-12 03:42:37
问题 I'm using LINQ to Twitter API for gathering followers for specific users on twitter. I am able to get all IDs, and with those IDs I can request their screen name and other properties I need. I do this in a batch of 100 users (as I understand - 100 per request is the limit). I'm also using oAuth. So now I am able to get the info on 350 * 100 = 35000 followers. What if a specific user has let's say 100000+ followers. How do I gather info on all of them? 回答1: It sounds like you're already dong

Sign in using twitter. OAuth or Xauth using linq2twitter

一个人想着一个人 提交于 2019-12-12 02:32:54
问题 For the past few days, I am struggling with this issue. At this moment, I have a simple c# console app. Ultimately, I want to make a small library to be reused in mobile apps for sign in with twitter, but that is a problem for later. At this moment, I have the following code, that should in theory allow me to sign in to twitter. var auth = new XAuthAuthorizer() { Credentials = new XAuthCredentials() { UserName = "username", Password = "supersecretpassword", ConsumerKey = "2131341234Q123123",

search fails with maxid (ulong.max) and sinceid set, but separately it works

北城以北 提交于 2019-12-11 05:39:51
问题 the following query works ok if you comment out either the SinceID or the MaxID clause, but when both are included a "bad url" exception is generated. var maxId = ulong.MaxValue; var sinceId = (ulong)341350918903701507; var searchResult = ( from search in ctx.Search where search.Type == SearchType.Search && search.ResultType == ResultType.Mixed && search.Query == "red wedding" && search.SinceID == sinceId && search.MaxID == maxId && search.IncludeEntities == false && search.Count == 200

Getting Results from Search entity for twitter search

点点圈 提交于 2019-12-11 03:22:13
问题 Im using linq-to-twitter and I want to pass in a tag to search from and collect the data (the text, username, user picture. I can return a search entity, but I want to go further to find the text, and in the docs it says the Search entity has a result field which is a list of SearchEntities, but it is not appearing for me. I got the red lines under it for both of the below cases: Case 1: using (var twitterCtx = new TwitterContext()) { var searchResults = (from search in twitterCtx.Search

LinqToTwitter - IsAuthorized always returns false for ApplicationOnlyAuthorizer

时光毁灭记忆、已成空白 提交于 2019-12-10 00:19:36
问题 I have an MVC4 web application that uses LinqToTwitter to display Tweets when a user's profile page is visited, if they have a Twitter handle. For this I use ApplicationOnlyAuthorizer: var auth = new ApplicationOnlyAuthorizer { Credentials = new InMemoryCredentials { ConsumerKey = "twitterConsumerKey", ConsumerSecret = "twitterConsumerSecret" } }; auth.Authorize(); My problem is that I have found that auth.IsAuthorized always returns false, even when I have call Authorize() and am

Return all tweets from my timeline

。_饼干妹妹 提交于 2019-12-07 11:21:16
问题 I wish to return ALL the Tweets I have ever posted on my timeline. I am using the Linq To Twitter library as so - var statusTweets = from tweet in twitterCtx.Status where tweet.Type == StatusType.User && tweet.UserID == MyUserID && tweet.Count == 200 select tweet; statusTweets.ToList().ForEach( tweet => Console.WriteLine( "Name: {0}, Tweet: {1}\n", tweet.User.Name, tweet.Text)); This works fine and brings back the first 200. However the first 200 seems to be the maximum I can retrieve, as

linqtotwitter - grab the saved credentials

天涯浪子 提交于 2019-12-06 17:04:27
问题 i use linqtotwitter library, in my win forms application i can do api calls to twitter, but when i closed my application and reopen, i need again repeat enter pin code/// in twitter programm tweetdesc its need only once enter the pin? How i can do well as in the application itself? i read: After authorize, save the credentials associated with that user. Next time the user needs to perform an action with your app, grab the saved credentials and load all 4 credentials into the authorizer. When

Return all tweets from my timeline

ぐ巨炮叔叔 提交于 2019-12-05 17:54:32
I wish to return ALL the Tweets I have ever posted on my timeline. I am using the Linq To Twitter library as so - var statusTweets = from tweet in twitterCtx.Status where tweet.Type == StatusType.User && tweet.UserID == MyUserID && tweet.Count == 200 select tweet; statusTweets.ToList().ForEach( tweet => Console.WriteLine( "Name: {0}, Tweet: {1}\n", tweet.User.Name, tweet.Text)); This works fine and brings back the first 200. However the first 200 seems to be the maximum I can retrieve, as there a way to bring back say 1000? There does not seem to be a next cursor movement option like there is

linqtotwitter - grab the saved credentials

北战南征 提交于 2019-12-04 21:48:18
i use linqtotwitter library, in my win forms application i can do api calls to twitter, but when i closed my application and reopen, i need again repeat enter pin code/// in twitter programm tweetdesc its need only once enter the pin? How i can do well as in the application itself? i read: After authorize, save the credentials associated with that user. Next time the user needs to perform an action with your app, grab the saved credentials and load all 4 credentials into the authorizer. When the authorizer has all 4 credentials, it no longer needs to perform the authorization process and you