how do i write a rest API script in C++ that shows a value of a property related to a currency in JSON format (executable linux)

Viewed 27

I have tried watching tutorials on youtube and all of the tutorials use third-party API apps or API services via copying repositories on github or don't use C++ which I am finding out is not the most common for APIs. I think libcurl only works for the C language? I am not seeing that much info on libcurl for C++ I am on to reading a C++ API textbook but I am looking for something a little more streamlined.

I need to write it from scratch :)

Notice - API requests are limited to 3 per hour.

• You do not need to fool the API to get around the cap.

• Clients should have the ability to send unlimited requests.

• Values must always be as up-to-date as possible.

• An executable Linux must be provided.

• Compiling instructions must be provided.

C++ must be used

Here is the API https://www.live-rates.com/rates

Must have flags that allow the user to choose what value and currency to return.

For example: ./script -c “EUR/USD” -v rate

Does anyone have advice?

0 Answers
Related