This sample shows a basic call structure to print a list of country names and their corresponding DHS Country Code.
For more information, refer http://api.dhsprogram.com
Step-by-step on how to use this snippet.
-
Grab latest source
git clone git://github.com/ajotwani/dhs-data-api.git
-
Fire up the terminal and navigate to the directory you cloned the repo to.
ruby get-countries.rb