digitalocean-api
The digitalocean-api is a module that allows you to communicate with the DigitalOcean API from node.js
Installation
This module is published in NPM:
npm install digitalocean-api --save
The --save
tells NPM to automatically add it to your package.json
file
Usage
// Import a modulevar DigitalOceanAPI = ;// Create an instance with your API credentialsvar api = 'client_id' 'api_key'; // Get things doneapi;
Methods
All methods follow the official API documentation.
More detailed documentation generated from the source code is available.
Convention for callback arguments: callback(error, data)
Droplets
Regions
Images
SSH keys
Sizes
Domains
Events