1

我正在尝试使用 fixer.io API,但我不明白如何提交我的访问密钥!

我一直在尝试使用这些代码片段:https ://pypi.org/project/fixerio/

例如:

from fixerio import Fixerio

fxrio = Fixerio()
fxrio.latest()

但后来我收到:

404 Client Error: Not Found for url: http://api.fixer.io/latest

我也尝试了这里找到的例子:http: //fixerio.readthedocs.io/en/latest/

from fixerio import Fixerio

fxrio = Fixerio(access_key='513eb....')
fxrio.latest()

但没有 kwarg“access_key”。唯一的 kwarg 是 base、symbols 和 secure。

最后我也尝试编辑我的client.py(没有成功),但我认为这是错误的。

我使用的是 0.1.1 版

感谢您的支持!

4

1 回答 1

2

显然,文档是最新的 alpha 版本,但通过 pip install 我只能下载他们的旧版本 0.1.1。

我通过从 GitHub 手动更新它来解决它。

于 2018-08-06T07:37:55.107 回答