Skip to content

Commit

Permalink
chore: formatting terminal command
Browse files Browse the repository at this point in the history
  • Loading branch information
brnhensley authored Jan 22, 2025
1 parent 6909678 commit 442ab82
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,19 @@ Here are the HTTP headers that will appear in API responses if there is a genera

Here is an example API request indicating that the caller has consumed all of the available resources, and that further API calls will be allowed again at noon on Feb. 1, 2016:

```
```sh
curl -X GET 'https://api.newrelic.com/v2/applications.json' \
-H "Api-Key:<a href='/docs/apis/rest-api-v2/getting-started/introduction-new-relic-rest-api-v2#api_key'>$API_KEY</a>" -i
HTTP/1.1 429 Too Many Requests
Content-Type: application/json
...
X-RateLimit-Docs: https://docs.newrelic.com/docs/apis/rest-api-v2/requirements/api-overload-protection-preventing-429-errors
X-RateLimit-Reset: 1454313600
X-RateLimit-Remaining: 0
X-RateLimit-Limit: 1000
{}
-H "Api-Key:$API_KEY" -i
[output]
[output] HTTP/1.1 429 Too Many Requests
[output] Content-Type: application/json
[output] ...
[output] X-RateLimit-Docs: https://docs.newrelic.com/docs/apis/rest-api-v2/requirements/api-overload-protection-preventing-429-errors
[output] X-RateLimit-Reset: 1454313600
[output] X-RateLimit-Remaining: 0
[output] X-RateLimit-Limit: 1000
[output]
[output] {}
```

## Preventing rate limiting errors [#preventing-errors]
Expand Down

0 comments on commit 442ab82

Please sign in to comment.