Api to get currency code for country code/name [closed]

懵懂的女人 提交于 2021-02-05 12:23:08

问题


For my shopping site I need to implement an automatic currency converter and I have the current user's country code/name.Is there any api methods to get the currency code for the user's country?


回答1:


If you're working with python, I'd suggest you look into babel, which may well have what you need.

http://babel.pocoo.org/




回答2:


There is no API method for this, you have to roll your own, which in itself is pretty trivial.

It seems there's also existing solutions




回答3:


I know you asked for the currency code, but the closest I found is the currency symbol -

https://www.mashape.com/parsify/format#!endpoint-Currency

Here's a sample response

enter image description here



来源:https://stackoverflow.com/questions/18356194/api-to-get-currency-code-for-country-code-name

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!