Skip to content

Commit 1234a57

Browse files
committed
use quotes around curls with more than 1 query param
1 parent aa413ca commit 1234a57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/v3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ are not websites.
219219
### OAuth2 Key/Secret
220220

221221
<pre class="terminal">
222-
$ curl https://api.github.com/users/whatever?client_id=xxxx&client_secret=yyyy
222+
$ curl 'https://api.github.com/users/whatever?client_id=xxxx&client_secret=yyyy'
223223
</pre>
224224

225225
This should only be used in server to server scenarios. Don't leak your
@@ -289,7 +289,7 @@ Note that for technical reasons not all endpoints respect the `?per_page` parame
289289
see [events](http://developer.github.com/v3/activity/events/) for example.
290290

291291
<pre class="terminal">
292-
$ curl https://api.github.com/user/repos?page=2&per_page=100
292+
$ curl 'https://api.github.com/user/repos?page=2&per_page=100'
293293
</pre>
294294

295295
Note that page numbering is 1-based and that omitting the `?page`
@@ -382,7 +382,7 @@ associated with your OAuth application, you can send over your client ID and
382382
secret in the query string.
383383

384384
<pre class="terminal">
385-
$ curl -i https://api.github.com/users/whatever?client_id=xxxxxxxxxxxxxx&client_secret=yyyyyyyyyyyyyyyyyyyyy
385+
$ curl -i 'https://api.github.com/users/whatever?client_id=xxxx&client_secret=yyyy'
386386

387387
HTTP/1.1 200 OK
388388
Date: Mon, 01 Jul 2013 17:27:06 GMT

0 commit comments

Comments
 (0)