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

New Post: Resolving Mutual Relationship (2 way follow)

$
0
0
Hello there,

Sorry for taking so much time to reply to your post. I usually respond within hours but I have been working a lot lately.

Either way, you are going to be playing against the rate limits of Twitter. I have personally done such a program and the issue is that you will quickly have to wait for your rate limit to be reset. What I would advise is to request multiple user token and use these tokens in order to perform your requests.
// Get the number of followersvar user = User.GetUserFromScreenName("BarackObama");
var numberOfFollowers = user.FollowersCount;

// Get multiple follower users at once (BE CAREFUL WITH RATE LIMIT WITH THIS ONE!)// Each 250 users = 1 token from the rate limitvar followers = User.GetFollowers(user, 5000);

// Get the rate limitvar rateLimitInfos = RateLimit.GetCurrentCredentialsRateLimits().UsersLookupLimit;
Please let me know if this helps.
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles