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

New Post: Hey I missing a .dll?

$
0
0
Hi,

Don't specify the cursor yourself, let Tweetinvi manage it for you.
I have changed the query so that the count and cursor information are no longer added to the query. Tweetinvi will add these information for you.
var maxObjectsToRetrieve= 200;
long lastCursor = -1;
var followerQuery = String.Format("https://api.twitter.com/1.1/followers/ids.json?user_id={0}", userId);


var results = TwitterAccessor.ExecuteCursorGETCursorQueryResult<IIdsCursorQueryResultDTO>(followerQuery, maxObjectsToRetrieve, lastCursor);
lastCursor = results.Last().NextCursor;

var returnedIds = TwitterAccessor.ExecuteCursorGETCursorQueryResult<IIdsCursorQueryResultDTO>(followerQuery, maxObjectsToRetrieve, lastCursor).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>