cURL is a command line tool for getting or sending files using URL syntax. To install and understand the basic concept of cURL, please click here.
The sample below will show you how cURL works with EAN Rapid 2.0, the Region Descendants API request is going to retrieve all descendants of the root region - world (region ID is 0).
The test was demonstrated on Jan 23rd, 2018, please refer to the latest documentation for the updated parameters or endpoints.
Scripts of the request:
curl 'https://test.ean.com/2/regions/0/descendants?language=en-US&include=details' \
-H 'accept: application/json' \
-H 'accept-encoding: gzip' \
-H 'authorization: EAN APIKey=xxxxxxxxxxxxxx,Signature=xxxxxxxxxxxxxx60af3067a,timestamp=1516671579' \
-H 'customer-ip: 10.10.10.10' \
-H 'customer-session-id: 123' >> "/app/gchen/geo2.zip"