Skip to content

Updated URL and app.js file accordingly. Now It is working properly. #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

divyanshupatel17
Copy link

Migration Guide:

Change the URL from https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/{date}/{endpoint}
to
https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@{date}/v1/{endpoint}

There is no /currencies/{currencyCode}/{currencyCode} endpoint in this new API, so please only use /currencies/{currencyCode} endpoint. For example:

json = fetchJSON(/currencies/{fromCurrency}/{toCurrency})
rate = json[toCurrency]
becomes

json = fetchJSON(/currencies/{fromCurrency})
rate = json[fromCurrency][toCurrency]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant