0.0.2 • Published 7 years ago

vultr.api v0.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

vultr.api

Node promise based vultr api that supports all v1 endpoints, and does local validation of requests.

install

npm install vultr.api

usage

import Vultr from 'vultr.api';

let api = Vultr({key: 'ABCD'});

you can then send get/post requests like this

// get dns records
let info = await api.get('dns/records', {domain: 'example.com'});

// create server
await api.post('server/create', {
	DCID: 40,
	VPSPLANID: 200,
	OSID: 231,
	label: 'example'
})

supported endpoints