@@ -196,8 +196,8 @@ Also, the [**Authorizations API**][authorizations api] makes it simple to use Ba
196196to create an OAuth token. Try pasting and running the following command:
197197
198198<pre class =" terminal " >
199- $ curl -i -u< ; your_username> ; -d '{"scopes": ["repo", "public_repo" , "user", "gist"], \
200- "note": "getting-started"}' https://api.github.com/authorizations
199+ $ curl -i -u< ; your_username> ; -d '{"scopes": ["repo", "user"] , "note": "getting-started"}' \
200+ https://api.github.com/authorizations
201201
202202HTTP/1.1 201 Created
203203Location: https://api.github.com/authorizations/2
@@ -206,9 +206,7 @@ Content-Length: 384
206206{
207207 "scopes": [
208208 "repo",
209- "public_repo",
210- "user",
211- "gist"
209+ "user"
212210 ],
213211 "token": "5199831f4dd3b79e7c5b7e0ebe75d67aa66e79d4",
214212 "updated_at": "2012-11-14T14:04:24Z",
@@ -233,9 +231,9 @@ Next, let's look at the `scopes` we're sending over in this call. When creating
233231a new token, we include an optional array of[ _ scopes_ ] [ scopes ] , or access
234232levels, that indicate what information this token can access. In this case,
235233we're setting up the token with_ repo_ access, which grants access to read and
236- write to private repositories,_ public \_ repo _ grants access to read and write to
237- public repositories, _ user _ grants access toread andwrite to all user data, and
238- _ gist _ grants access to create new gists. See [ the scopes docs] [ scopes ] for a full list of
234+ write topublic and private repositories,and _ user _ scope, which grants read
235+ and write access topublic andprivate userprofile data. See
236+ [ the scopes docs] [ scopes ] for a full list of
239237scopes. You should** only** request scopes that your application actually needs,
240238in order to not frighten users with potentially invasive actions. The` 201 `
241239status code tells us that the call was successful, and the JSON returned
@@ -248,8 +246,8 @@ in the [X-GitHub-OTP request header][2fa header]:
248246
249247<pre class =" terminal " >
250248$ curl -i -u< ; your_username> ; -H "X-GitHub-OTP:< ; your_2fa_OTP_code> ; " \
251- -d '{"scopes": ["repo", "public_repo" , "user", "gist"], \
252- "note": "getting-started"}' https://api.github.com/authorizations
249+ -d '{"scopes": ["repo", "user"] , "note": "getting-started"}' \
250+ https://api.github.com/authorizations
253251</pre >
254252
255253If you enabled 2FA with a mobile application, go ahead and get an OTP code from