Currency API_key doesn't work in flutter App

156 Views Asked by At

Here is the my code : enter image description here

Here is my result : enter image description here

What's the actual code for access API ?

1

There are 1 best solutions below

0
On BEST ANSWER

I went through the Fixer API and there was no reference that says your api key should be in the header.

Change your URL to this instead:

String url = "https://data.fixer.io/api?access_key=API_KEY"