UNPKG

brightbox

Version:

A Node.JS module, which provides an object oriented wrapper for the Brightbox API.

25 lines (23 loc) 689 B
"use strict"; function Zones() { var Brightbox = this; return { // https://api.gb1.brightbox.com/1.0/#zone_list_zones list: function list(opt_opts, opt_callback) { Brightbox.request({ method: "GET", url: "/1.0/zones", opts: opt_opts }, opt_callback); } // https://api.gb1.brightbox.com/1.0/#zone_get_zone , get: function get(opt_opts, opt_callback) { Brightbox.request({ method: "GET", url: "/1.0/zones/" + opt_opts.id, opts: opt_opts }, opt_callback); } }; } module.exports = Zones;