UNPKG

digitalocean-v2

Version:

A lightweight, Promise-based wrapper for the DigitalOcean v2 API.

18 lines (14 loc) 274 B
'use strict'; module.exports = { getUser() { const val = 'account'; return this.request(val, {val}); }, listActions() { const val = 'actions'; return this.request(val, {val}); }, getAction(id) { return this.request(`actions/${id}`, {val: 'action'}); } };