项目作者: vultr

项目描述 :
Vultr Node API client
高级语言: JavaScript
项目地址: git://github.com/vultr/vultr-node.git
创建时间: 2019-05-30T13:31:24Z
项目社区:https://github.com/vultr/vultr-node

开源协议:MIT License

下载


Automatic Releaser
Code Coverage test
npm version
license

vultr-node

Official Vultr client node module.

Installation

  1. npm install @vultr/vultr-node

Usage

Vultr uses a PAT (Personal Access Token) to interact/authenticate with the APIs. An API Key can be generated and acquired from the API menu in settings.

Initialize

  1. const VultrNode = require('@vultr/vultr-node')
  2. // Initialize the instance with your configuration
  3. const vultr = VultrNode.initialize({
  4. apiKey: 'your-api-key-here',
  5. baseUrl: 'https://example.com', // Optional
  6. rateLimit: 600 // Optional
  7. })

Calling Endpoints

  1. // Call endpoints using Promises
  2. vultr.account.getAccountInfo().then((response) => {
  3. console.log(response)
  4. })

Versioning

This project follows SemVer for versioning. For the versions available, see the tags on this repository

Documentation

This implements Vultr API V2. For documentation on all endpoints, please visit https://www.vultr.com/api/. To use Vultr API V1, please use the version of the library on the V1 branch, or any version of this library before 2.0.0.

For documentation specific to this client please visit https://vultr.github.io/vultr-node

Contributing

Feel free to send pull requests our way! Please see the contributing guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Authors