| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a27f7f9 commit 561ecb7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,14 +39,11 @@ $ curl -u <username> https://api.github.com/user | |||
| 39 | 39 | ||
| 40 | 40 | ### Via OAuth Tokens | |
| 41 | 41 | ||
| 42 | - Alternatively, you can authenticate using [personal access | ||
| 43 | - tokens][personal-access-tokens] or OAuth tokens. To do so, provide the token as | ||
| 44 | - the username and provide a blank password or a password of `x-oauth-basic`. If | ||
| 45 | - you're accessing the API via cURL, replace `<token>` with your OAuth token in | ||
| 46 | - the following command: | ||
| 42 | + Alternatively, you can use [personal access | ||
| 43 | + tokens][personal-access-tokens] or OAuth tokens instead of your password. | ||
| 47 | 44 | ||
| 48 | 45 | <pre class='terminal'> | |
| 49 | - $ curl -u <token>:x-oauth-basic https://api.github.com/user | ||
| 46 | + $ curl -u <username>:<token> https://api.github.com/user | ||
| 50 | 47 | </pre> | |
| 51 | 48 | ||
| 52 | 49 | This approach is useful if your tools only support Basic Authentication but you | |
| Back | FazBrowse Home | New Git URL |
0 commit comments