You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -69,14 +69,14 @@ var user = await client.User.Current();
69
69
70
70
### Too Much of a Good Thing: Dealing with API Rate Limits
71
71
72
-
Like any popular API, Github needs to throttle some requests. The OctoKit.NET client allows you to get some insight into how many requests you have left and when you can start making requests again.
72
+
Like any popular API, GitHub needs to throttle some requests. The OctoKit.NET client allows you to get some insight into how many requests you have left and when you can start making requests again.
73
73
74
74
In fact, there are two ways to get the Rate Limits via OctoKit.NET. Calling `GitHubClient.GetLastApiInfo()` returns the Rate Limit status which has been returned with the last api call. So, calling `GitHubClient.GetLastApiInfo()` will not send any extra HTTP requests to GitHub's servers.
75
75
76
76
Example usage:
77
77
78
78
```csharp
79
-
GitHubClientclient;
79
+
GitHubClientclient;
80
80
//Create & initialize the client here
81
81
82
82
// Prior to first API call, this will be null, because it only deals with the last call.
@@ -90,12 +90,12 @@ var howManyRequestsDoIHaveLeft = rateLimit?.Remaining;
90
90
varwhenDoesTheLimitReset=rateLimit?.Reset; // UTC time
91
91
```
92
92
93
-
However, if in some cases you need to get the Rate Limit directly from Github, you should call `GitHubClient.Miscellaneous.GetRateLimits()`.
93
+
However, if in some cases you need to get the Rate Limit directly from GitHub, you should call `GitHubClient.Miscellaneous.GetRateLimits()`.
@@ -115,6 +115,6 @@ var howManySearchRequestsDoIHaveLeft = searchRateLimit.Remaining;
115
115
varwhenDoesTheSearchLimitReset=searchRateLimit.Reset; // UTC time
116
116
```
117
117
118
-
An authenticated client will have a significantly higher limit than an anonymous client.
118
+
An authenticated client will have a significantly higher limit than an anonymous client.
119
119
120
-
For more information on the API and understanding rate limits, you may want to consult [the Github API docs on rate limits](https://developer.github.com/v3/#rate-limiting).
120
+
For more information on the API and understanding rate limits, you may want to consult [the GitHub API docs on rate limits](https://developer.github.com/v3/#rate-limiting).
0 commit comments