From 768cf709c0f1468eb8a40d2b60522723e1429885 Mon Sep 17 00:00:00 2001 From: "Cody B. Daig" Date: Fri, 1 Oct 2021 09:31:05 -0500 Subject: [PATCH 1/2] (fix) Use the name your_username for consistency Throughout the document, `your_username` is used to replace with one's username. This updates a `username` spot to match the `your_username` --- content/rest/guides/getting-started-with-the-rest-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/rest/guides/getting-started-with-the-rest-api.md b/content/rest/guides/getting-started-with-the-rest-api.md index 3dbba57270..9da0c327c4 100644 --- a/content/rest/guides/getting-started-with-the-rest-api.md +++ b/content/rest/guides/getting-started-with-the-rest-api.md @@ -136,7 +136,7 @@ $ curl -i -u your_username {% data variables.product.api_url_pre %}/use When prompted, you can enter your OAuth token, but we recommend you set up a variable for it: -You can use `-u "username:$token"` and set up a variable for `token` to avoid leaving your token in shell history, which should be avoided. +You can use `-u "your_username:$token"` and set up a variable for `token` to avoid leaving your token in shell history, which should be avoided. ```shell $ curl -i -u username:$token {% data variables.product.api_url_pre %}/users/octocat From fd4c8a580ca27c866f923fba83eb5c3dcb467160 Mon Sep 17 00:00:00 2001 From: Laura Coursen Date: Tue, 5 Oct 2021 13:29:49 -0500 Subject: [PATCH 2/2] Add :nail_care: --- content/rest/guides/getting-started-with-the-rest-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/rest/guides/getting-started-with-the-rest-api.md b/content/rest/guides/getting-started-with-the-rest-api.md index 9da0c327c4..afa2740faa 100644 --- a/content/rest/guides/getting-started-with-the-rest-api.md +++ b/content/rest/guides/getting-started-with-the-rest-api.md @@ -139,7 +139,7 @@ When prompted, you can enter your OAuth token, but we recommend you set up a var You can use `-u "your_username:$token"` and set up a variable for `token` to avoid leaving your token in shell history, which should be avoided. ```shell -$ curl -i -u username:$token {% data variables.product.api_url_pre %}/users/octocat +$ curl -i -u your_username:$token {% data variables.product.api_url_pre %}/users/octocat ```