Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: How to get a long list of followers

$
0
0
In the version 0.9.5.2 that I am about to release you will be able to do the following:
TweetinviEvents.QueryBeforeExecute += (sender, args) =>
{
    var queryRateLimit = RateLimit.GetQueryRateLimit(args.Query);
    RateLimit.AwaitForQueryRateLimit(queryRateLimit);
    Console.WriteLine(args.Query);
};

var obama = User.GetUserFromScreenName("BarackObama");

var followerQuery = String.Format("https://api.twitter.com/1.1/followers/ids.json?user_id={0}", obama.Id);
var results = TwitterAccessor.ExecuteCursorGETCursorQueryResult<IIdsCursorQueryResultDTO>(followerQuery);
var followerIds = results.SelectMany(x => x.Ids);
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>