digital-ocean-api-v2
Documentation-generated library for Digital Ocean's API v2
npm install digital-ocean-api-v2
This library is more or less generated automatically from the excellent Digital Ocean API documentation. A parser converts that page into parsed-digital-ocean-api-documentation, and a small factory turns those descriptions into functions, which index piles onto an object, yielding:
var DigitalOceanAPI = require('digital-ocean-api-v2');
var api = new DigitalOceanAPI(DIGITALOCEAN_ACCESS_TOKEN);
api.floatingIpActions.assignFloatingIpToDroplet(floatingIp, { droplet_id: 8219222 })
Each method returns a promise. For a list of methods, see ./methods.md