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

New Post: errors retrieving IUsers list from ID

$
0
0
Hi,
I am sorry for not having aswered yo your message any earlier. The mail notification ended up in the spam folder and I stopped looking for an answer.
However, I found out the mistake on my own (I made a mistake in my program and this resulted in a null answer from TW).
I thank you, nonetheless, for your help.


I kindly ask you, if possible, to help me with a problem I have with the getFollowers function. Indeed,
  TwitterCredentials.ExecuteOperationWithCredentials(cred, () =>
                {
                    var followerIds = User.GetFollowerIds(politico);
               }
with this debuff function
    private static void DebuffNoLog()
    {
        TweetinviEvents.QueryBeforeExecute += (sender, args) =>
        {
            string msgDebuff;

            var queryRateLimit = RateLimit.GetQueryRateLimit(args.Query);
            if (queryRateLimit != null)
            {
                if (queryRateLimit.ResetDateTimeInSeconds > 0)
                {
                    msgDebuff = string.Format("Debuff! restart in {0} seconds at {1}; limit: {2}", queryRateLimit.ResetDateTimeInSeconds,  queryRateLimit.ResetDateTime.ToShortTimeString(), queryRateLimit.Limit);
                    Console.WriteLine(msgDebuff);
                }
            }

            RateLimit.AwaitForQueryRateLimit(queryRateLimit);
            Console.WriteLine(args.Query);

        };

gives me a limit of 15 query per 15 min, which slows me down too much. I cannot find the mistake I made but this surely prevents me to go further with my research. Would you please be kind enough to help me with that? (btw the same 15query debuff happens also with the cursored query and does not allow me to retrieve more than 75K followers/user). Should I just wait for 0.9.6 or is there something I am missing in my code?

this is the query I see in the debuff msg:
   api.twitter.com/1.1/followers/ids.json?user_id=158745&count=5000&cursor=-1
best regards,
ML

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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