In this repository I show how to use a Free API from https://fixer.io to convert currency.
I live in Canada and I like to know how much the Canadian dollar (CAD) is in Brazilian currency (BRL).
You can also run with from terminal (BASH), JSON (Postman), but I made it with JAVA as part of my studies for the future to become a JAVA Backend coder.
I ran in Java with IntelliJ IDE.
1) I registered on https://fixer.io and I got my Currency API Key
2) I created a project in IntelliJ as follows: - File -> New -> Project -> Maven -> Project SDK: corretto-11
3) I edited the POM.XML file - Open POM.xml -> paste snippits -> Reimport All Maven Projects:
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.5.0</version>
</dependency>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
4) I created the program - main.java file and customized it as it is in my repository.