October 2020
Intermediate to advanced
358 pages
8h 39m
English
In the Chapter Exercise, the task is to use the curl command-line tool to pull a series of responses from three related services (company, account, and activity) and save them to disk for later reference. Here is a step-by-step solution.
First, create a folder called services on your local drive and then change directories to move into that newly created services folder:
| | mca@mamund-ws:~/$ mkdir services |
| | mca@mamund-ws:~/$ cd services |
| | mca@mamund-ws:~/services$ |
Next, using the list supplied in the Chapter Exercise, as a guide, start to pull the API responses from the services and save them to disk. Here’s one way to do this:
| | mca@mamund-ws:~/services$ curl |
Read now
Unlock full access