twitter - How to check rate_limit_status in response header in C# -
we see our rate limit being reached in our twitter calls, did research:
https://dev.twitter.com/docs/rate-limiting/1.1
they suggested checking rate_limit_status once in while explained here:
https://dev.twitter.com/docs/api/1.1/get/application/rate_limit_status
so, know how check in code. can this?
string ratelimit = twitterservice.response.headers["application/rate_limit_status"];
my questions are:
do parse ratelimit? because json/xml
according api, contains
"remaining": "reset": "limit":
so, let's want reset rate limit once hits closer limit, should do?
any appreciated.
do parse ratelimit?because json/xml
yes, example using json.net.
if want reset rate limit once hits closer limit, should do?
you can't wait until reset
moment, it's timestamp.
Comments
Post a Comment