node openex 用于nodejs的openexchangerates.org API模块
openex + Openex是提供的API的简单客户端。检查他们的文档以了解每个API调用应返回哪些键/值。安装命令:npm install openex
。
特征
-
支持
/latest
API -
支持
/currencies
API
该API可以提供app_id
应用程序接口。
var openex = require('openex');
openex.app_id = 'your-app-id';
如果设置了openex.app_id
,它将包含在API调用中。使用HTTPS需要付费的app_id
。
示例
openex.latest([options], cb);
查询/latest
API,并用结果调用函数cb(err, res)
。
下载地址
用户评论