Sorry for the documentation. I am currently rewriting a way more detailed documentation. This will be part of the announcement of Tweetinvi 0.9.8.0
It all depends on how much control you want to have over this result. If you don't mind waiting a lot of time before getting ALL the results I would suggest using the RateLimit awaiter.
If you want to do by iteration, you will need to store the NextCursor value of the latest set of data.
I would also advise that you take a look into the RateLimit class to easily await for new operation tokens to be available to perform your queries.
Cheers,
Linvi
It all depends on how much control you want to have over this result. If you don't mind waiting a lot of time before getting ALL the results I would suggest using the RateLimit awaiter.
TweetinviEvents.QueryBeforeExecute += (sender, args) => { Console.WriteLine(args.QueryURL); var rateLimits = RateLimit.GetQueryRateLimit(args.QueryURL); if (rateLimits != null) { Console.WriteLine("{0}/{1}", rateLimits.Remaining, rateLimits.Limit); } }; // Tweetinvi will manage the RateLimits for you and automatically resume the operation when needed. RateLimit.RateLimitTrackerOption = RateLimitTrackerOptions.TrackAndAwait; RateLimit.QueryAwaitingForRateLimit += (sender, args) => { Console.WriteLine("WAITING FOR RATE LIMITS ({0} seconds) : {1}", args.QueryRateLimit.ResetDateTimeInSeconds, args.Query); }; var ladygaga = User.GetUserFromScreenName("ladygaga"); // This code will take a while as it will wait until all the 300000 users are retrieved// It would be a good idea to do this in another Threadvar followers = ladygaga.GetFollowerIds(300000).ToArray();
var results = TwitterAccessor.ExecuteCursorGETCursorQueryResult<IIdsCursorQueryResultDTO>("", int.MaxValue, -1); var nextCursorToUse = results.Last().NextCursor;
Cheers,
Linvi