Today I am going to develop a small tool that uses github Restful API to get all the issues in my repository:
After executing, I can see from the response header x-Ratelimit-limit that the Restful API can only be called 60 times per hour. I have already called it twice, leaving 58 calls.
From the header field x-ratelimit-reset, we know that if all 60 times are used up, it will take an hour to recover.
Fortunately, Github also supports oAuth authentication to call these apis:
The NUMBER of API calls made through this authentication method skyrocketed to 5,000 per hour, which was pretty sweet.
For more of Jerry's original articles, please follow the public account "Wang Zixi ":