Simple command-line application which fetches currency exchange data from Croatian National Bank API and prints it out to stdout with user-specified column delimiter.
Only libcurl
jsmn, a json parser library bundled in:
jsmn.h
& jsmn.c
v1.0.0
Simply run make
hnb-app [<query> [delimiter]]
./build/hnb-app
is equivalent to
./build/hnb-app "" $'\t'
./build/hnb-app "datum=2014-03-02"
./build/hnb-app "valuta=EUR"
Multiple currencies can be queried with
./build/hnb-app "valuta=EUR&valuta=USD"
./build/hnb-app "datum-od=2014-03-02&datum-do=2014-04-02"
Note that maximum range for the date is 1 year.