Skip to content

Commit fbbdb7c

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent 0fc9236 commit fbbdb7c

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

content/guides/best-practices-for-integrators.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ end
122122

123123
In this example the `closed` action is checked first before calling the `process_closed` method. Any unidentified actions are logged for future reference.
124124

125+
{% if page.version == 'dotcom' %}
126+
125127
## Dealing with rate limits
126128

127129
The GitHub API [rate limit](/v3/#rate-limiting) ensures that the API is fast and available for everyone.
@@ -147,6 +149,8 @@ To avoid hitting this limit, you should ensure your application follows the guid
147149

148150
We reserve the right to change these guidelines as needed to ensure availability.
149151

152+
{% endif %}
153+
150154
## Dealing with API errors
151155

152156
Although your code would never introduce a bug, you may find that you've encountered successive errors when trying to access the API.

content/v3.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,13 @@ $ curl '{{ site.data.variables.product.api_url_pre }}/users/whatever?client_id=x
236236
```
237237

238238
This should only be used in server to server scenarios. Don't leak your
239-
OAuth application's client secret to your users. Read [more about
240-
unauthenticated rate limiting](#increasing-the-unauthenticated-rate-limit-for-oauth-applications).
239+
OAuth application's client secret to your users.
240+
241+
{% if page.version == 'dotcom' %}
242+
243+
Read [more about unauthenticated rate limiting](#increasing-the-unauthenticated-rate-limit-for-oauth-applications).
244+
245+
{% endif %}
241246

242247
### Failed login limit
243248

@@ -333,6 +338,8 @@ Name | Description
333338
`first` |The link relation for the first page of results.
334339
`prev` |The link relation for the immediate previous page of results.
335340

341+
{% if page.version == 'dotcom' %}
342+
336343
## Rate Limiting
337344

338345
For requests using Basic Authentication or OAuth, you can make up to 5,000
@@ -416,8 +423,6 @@ If you're using conditional requests and still exceeding your rate
416423
limit, please [contact us][support] to request a
417424
higher rate limit for your OAuth application.
418425

419-
{% if page.version == 'dotcom' %}
420-
421426
### Abuse Rate Limits
422427

423428
To protect the quality of service from GitHub, additional rate limits may apply to some actions.

content/v3/troubleshooting.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ It's important to *not* try and guess the format of the pagination URL. Not ever
2929
API call uses the same structure. Instead, extract the pagination information from
3030
[the Link Header](/v3/#pagination), which is sent with every request.
3131

32+
{% if page.version == 'dotcom' %}
33+
3234
## Can I get my rate limits bumped?
3335

3436
The {{ site.data.variables.product.product_name }} API has a pretty lenient quota for rate limits, for your enjoyment and
@@ -41,4 +43,6 @@ In certain exceptional cases, we may temporarily bump your rate limit higher. Yo
4143
should be prepared to answer technical questions about your goal and your planned usage of the API. We may still choose not to bump your limit if we feel that you can achieve your wildest
4244
dreams with the current rate limit (but don't worry, we'll help you out).
4345

46+
{% endif %}
47+
4448
[oap-guide]: /changes/2015-01-19-an-integrators-guide-to-organization-application-policies/

0 commit comments

Comments
 (0)