1. 首页
  2. 考试认证
  3. 其它
  4. node openex 用于nodejs的openexchangerates.org API模块

node openex 用于nodejs的openexchangerates.org API模块

上传者: 2024-10-21 09:44:22上传 ZIP文件 4.92KB 热度 7次

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)

下载地址
用户评论