We are using skybrud in the context of a console app, this app will get for about 300 people potential 4 lots of data, twitter,facebook,instagram and youtube. For twitter there is
I know that twitter api has rate limits https://dev.twitter.com/rest/public/rate-limits also when you call twitter endpoints they do send back how many calls you have left, does skybrud expose that information? If not I guess I can look at the end points I am calling via skybrud then make some calculations and make batched staggered requests.
This is console app running over night so no issues with timeouts etc.
Rate limiting information is currently not exposed directly in Skybrud.Social. Each Twitter response class has a Response property, which is a reference to an instance of SocialHttpResponse. This class then has a Headers property from which you can read the rate limiting information manually.
I have created an issue on GitHub, and will see if I can implement it the next time I'm working on Skybrud.Social ;)
Cool, for now what I have done is determined which apis i call and its 2 and they have 180 and 300 limit in 15mins, so i will just batch in 180 over 15mins.
Brilliant this is working a treat, also notice you have added for instagram, i believe from docs for token you can have 5000 per hr so for now i will leave that as is.
Twitter api limits
Anders,
We are using skybrud in the context of a console app, this app will get for about 300 people potential 4 lots of data, twitter,facebook,instagram and youtube. For twitter there is
I know that twitter api has rate limits https://dev.twitter.com/rest/public/rate-limits also when you call twitter endpoints they do send back how many calls you have left, does skybrud expose that information? If not I guess I can look at the end points I am calling via skybrud then make some calculations and make batched staggered requests.
This is console app running over night so no issues with timeouts etc.
Regards
Ismail
Hi Ismail,
Rate limiting information is currently not exposed directly in Skybrud.Social. Each Twitter response class has a
Response
property, which is a reference to an instance ofSocialHttpResponse
. This class then has aHeaders
property from which you can read the rate limiting information manually.I have created an issue on GitHub, and will see if I can implement it the next time I'm working on Skybrud.Social ;)
Anders,
Cool, for now what I have done is determined which apis i call and its 2 and they have 180 and 300 limit in 15mins, so i will just batch in 180 over 15mins.
Regards
Ismail
Hi Ismail,
Rate limiting information is now exposed in the latest code in the repository. You can use it like this:
cool ill pull down tommorow and try it
Anders,
Brilliant this is working a treat, also notice you have added for instagram, i believe from docs for token you can have 5000 per hr so for now i will leave that as is.
Regards
Ismail
is working on a reply...