From a9cc5d0778262fdcd0dbbf257bd57889bdb4bab2 Mon Sep 17 00:00:00 2001 From: John Baylor Date: Sun, 20 Oct 2013 00:02:17 -0700 Subject: [PATCH] Added my "pro tip" after doing the wrong thing I kept getting failures from curl'ing `https://api.github.com/johnb` --- content/v3/auth.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/v3/auth.md b/content/v3/auth.md index abd9f51df7..63c67b464a 100644 --- a/content/v3/auth.md +++ b/content/v3/auth.md @@ -37,12 +37,16 @@ enter the password.) curl -u mojombo https://api.github.com/user +Problems with the `curl` command above? Be sure that you use the word "user" at the end of the URL, +and *not* your username (i.e. not "mojombo"). (we will know who you from your "-u" username +and don't need it repeated) + ### Via OAuth Tokens Alternatively, you can authenticate using [personal access tokens][personal-access-tokens] or OAuth tokens. To do so, provide the token as -the username and provide a blank password or a password of `x-oauth-basic`. For -example: +the username and provide a blank password or a password of `x-oauth-basic`. +Here is the OAuth Token example (again, use the literal word "user" on the end of the URL, not your username):
 curl -u 3816d821c80a6847ca84550052c1ff6246e8169b:x-oauth-basic https://api.github.com/user