@@ -19,7 +19,7 @@ There's no easier way to kick the tires than through [cURL][curl].
1919### Hello World
2020
2121Let's start by testing our setup. Open up a command prompt and enter the
22- following command (without the ` $ ` ) :
22+ following command:
2323
2424``` command-line
2525$ curl https://api.github.com/zen
@@ -101,9 +101,9 @@ The easiest way to authenticate with the GitHub API is by simply using your GitH
101101username and password via Basic Authentication.
102102
103103``` command-line
104- $ curl -i -u <your_username> https://api.github.com/users/defunkt
104+ $ curl -i -u <em> your_username</em > https://api.github.com/users/defunkt
105105
106- > Enter host password for user '< your_username>' :
106+ > Enter host password for user <em> your_username</em> :
107107```
108108
109109The ` -u ` flag sets the username, and cURL will prompt you for the password. You
@@ -121,9 +121,9 @@ If you have [two-factor authentication][2fa] enabled, the API will return a
121121` 401 Unauthorized ` error code for the above request (and every other API request):
122122
123123``` command-line
124- $ curl -i -u <your_username> https://api.github.com/users/defunkt
124+ $ curl -i -u <em> your_username</em > https://api.github.com/users/defunkt
125125
126- > Enter host password for user '< your_username>' :
126+ > Enter host password for user <em> your_username</em> :
127127
128128> HTTP/1.1 401 Unauthorized
129129> X-GitHub-OTP: required; :2fa-type
@@ -145,7 +145,7 @@ associated with your GitHub account. For example, try getting
145145[ your own user profile] [ auth user api ] :
146146
147147``` command-line
148- $ curl -i -u <your_username> https://api.github.com/user
148+ $ curl -i -u <em> your_username</em > https://api.github.com/user
149149
150150> {
151151> ...
@@ -195,7 +195,7 @@ Also, the [**Authorizations API**][authorizations api] makes it simple to use Ba
195195to create an OAuth token. Try pasting and running the following command:
196196
197197``` command-line
198- $ curl -i -u <your_username> -d '{"scopes": ["repo", "user"], "note": "getting-started"}' \
198+ $ curl -i -u <em> your_username</em > -d '{"scopes": ["repo", "user"], "note": "getting-started"}' \
199199$ https://api.github.com/authorizations
200200
201201> HTTP/1.1 201 Created
@@ -244,7 +244,7 @@ for the above request. You can get around that error by providing a 2FA OTP code
244244in the [ X-GitHub-OTP request header] [ 2fa header ] :
245245
246246``` command-line
247- $ curl -i -u <your_username> -H "X-GitHub-OTP: <your_2fa_OTP_code>" \
247+ $ curl -i -u <em> your_username</em > -H "X-GitHub-OTP: <em> your_2fa_OTP_code</em >" \
248248 -d '{"scopes": ["repo", "user"], "note": "getting-started"}' \
249249 https://api.github.com/authorizations
250250```
@@ -404,8 +404,9 @@ $ curl -i https://api.github.com/repos/rails/rails/issues
404404
405405> HTTP/1.1 200 OK
406406
407- > Link: <https://api.github.com/repos/rails/rails/issues?page=2>; rel="next",
408- > <https://api.github.com/repos/rails/rails/issues?page=14>; rel="last"
407+ > ...
408+ > Link: <https://api.github.com/repositories/8514/issues?page=2>; rel="next", <https://api.github.com/repositories/8514/issues?page=30>; rel="last"
409+ > ...
409410```
410411
411412The [ ` Link ` header] [ link-header ] provides a way for a response to link to
0 commit comments