From 6947c0964ccd2c893bb19068b4d20d7c9e5e08d4 Mon Sep 17 00:00:00 2001 From: Gijs van Dam Date: Fri, 25 Mar 2022 11:35:59 +0800 Subject: [PATCH] Add `-I` parameter to curl command When checking the rate limit while using your app's client ID and secret, you need to supply the `-I` argument to show the header of the response, containing `x-ratelimit-limit` and `x-ratelimit-remaining` --- content/rest/overview/resources-in-the-rest-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/rest/overview/resources-in-the-rest-api.md b/content/rest/overview/resources-in-the-rest-api.md index 889a4876172a..a90a91820010 100644 --- a/content/rest/overview/resources-in-the-rest-api.md +++ b/content/rest/overview/resources-in-the-rest-api.md @@ -449,7 +449,7 @@ If you exceed the rate limit, an error response returns: If your OAuth App needs to make unauthenticated calls with a higher rate limit, you can pass your app's client ID and secret before the endpoint route. ```shell -$ curl -u my_client_id:my_client_secret {% data variables.product.api_url_pre %}/user/repos +$ curl -u my_client_id:my_client_secret -I {% data variables.product.api_url_pre %}/user/repos > HTTP/2 200 > Date: Mon, 01 Jul 2013 17:27:06 GMT > x-ratelimit-limit: 5000