Skip to content

Commit

Permalink
Merge pull request github#21936 from github/repo-sync
Browse files Browse the repository at this point in the history
repo sync
  • Loading branch information
Octomerger authored Oct 6, 2021
2 parents 8771695 + 29d2479 commit 01ff23f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/rest/guides/getting-started-with-the-rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ $ curl -i -u <em>your_username</em> {% 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 <em>username:$token</em> {% data variables.product.api_url_pre %}/users/octocat
$ curl -i -u <em>your_username:$token</em> {% data variables.product.api_url_pre %}/users/octocat
```
Expand Down

0 comments on commit 01ff23f

Please sign in to comment.