UNPKG

brightbox

Version:

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

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