Skip to content

Commit

Permalink
remove superflous curl and jq tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ruffrey committed Jun 25, 2020
1 parent 744a671 commit 0aab84c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions getting_started/checkmail.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ translates to :code:`https://mailsac.com/api/addresses/user1%40mailsac.com/messa
.. tip:: You can validate the url is properly formatted by accessing it in your web browser. Go ahead and try it with
our `example <https://mailsac.com/api/addresses/user1%40mailsac.com/messages>`_ or try it with a different email address.

Curl requires us to add a few extra parameters. `-X GET` instructs curl to us a HTTP GET request. `-s` suppresses
a progress bar. In the command below we pipe the contents of curl into JQ for JSON formatting. JQ requires a filter to function.
We are using the simplest filter `"."` which matches all JSON. `user1@mailsac` is a popular address and receives lots of email.
JQ will only show the first JSON object with the filter `".[0]"`
Curl requires us to add a single parameter for a GET request. `-H` instructs curl to add an HTTP header.


.. literalinclude:: /about/intro_curl.bash
:language: bash
Expand Down

0 comments on commit 0aab84c

Please sign in to comment.