Skip to content

Commit 3b3ea5f

Browse files
committed
add oauth token note to getting started guide
1 parent 5ab4d29 commit 3b3ea5f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

content/guides/getting-started.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Also, the [**Authorizations API**][authorizations api] makes it simple to use Ba
196196
to create an OAuth token. Try pasting and running the following command:
197197

198198
<pre class="terminal">
199-
$ curl -i -u &lt;your_username&gt; -d '{"scopes": ["repo"]}' \
199+
$ curl -i -u &lt;your_username&gt; -d '{"scopes": ["repo"], "note": "getting-started"}' \
200200
https://api.github.com/authorizations
201201

202202
HTTP/1.1 201 Created
@@ -217,7 +217,7 @@ Content-Length: 384
217217
"created_at": "2012-11-14T14:04:24Z",
218218
"note_url": null,
219219
"id": 2,
220-
"note": null
220+
"note": "getting-started"
221221
}
222222
</pre>
223223

@@ -243,7 +243,8 @@ in the [X-GitHub-OTP request header][2fa header]:
243243

244244
<pre class="terminal">
245245
$ curl -i -u &lt;your_username&gt; -H "X-GitHub-OTP: &lt;your_2fa_OTP_code&gt;" \
246-
-d '{"scopes": ["repo"]}' https://api.github.com/authorizations
246+
-d '{"scopes": ["repo"], "note": "getting-started"}' \
247+
https://api.github.com/authorizations
247248
</pre>
248249

249250
If you enabled 2FA with a mobile application, go ahead and get an OTP code from

0 commit comments

Comments
 (0)