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:

  1. do parse ratelimit? because json/xml

  2. 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

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -