【文件属性】:
文件名称:vultr-node:Vultr Node API客户端
文件大小:667KB
文件格式:ZIP
更新时间:2021-04-29 21:05:27
vultr vultr-api vultr-js vultr-node vultr-javascript
结点
官方Vultr客户端节点模块。
安装
npm install @vultr/vultr-node
用法
Vultr使用PAT(个人访问令牌)与API进行交互/验证。 可以从的API菜单生成和获取API密钥。
初始化
const VultrNode = require ( '@vultr/vultr-node' )
// Initialize the instance with your configuration
const vultr = VultrNode . initialize ( {
apiKey : 'your-api-key-here' ,
baseUrl : 'https://example.com' , // Optional
rateLimit : 600 // Optional
} )
呼叫端点
// Call endpoints using Pro