package
Complete DreamHost API client for Node.js
npm install dreamhostGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Complete API client for DreamHost's API.
Ready for browser use if DreamHost ever enables CORS on their API.
You'll need a DreamHost account, an API Key, and Node.js >= v4.
npm install --save dreamhostCreate a complete instance
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({
key: '<your api key>'
});
// dreamHost will be initialized with all modules available, e.g.
dreamHost.dns.listRecords()
.then(records => console.log(records))
.catch(err => console.error(err))Or create an instance of an individual API module:
const DNS = require('dreamhost/dns');
const dns = new DNS({
key: '<your api key>'
});
dns.listRecords()
.then(records => console.log(records))
.catch(err => console.error(err))All methods return a promise that resolves to the data field from the DreamHost API response.
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.account.method().then(/*...*/);or
const Account = require('dreamhost/account');
const account = new Account({key: '...'});
account.method().then(/*...*/);Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.announcementList.method().then(/*...*/);or
const AnnouncementList = require('dreamhost/announcement_list');
const announcementList = new AnnouncementList({key: '...'});
announcementList.method().then(/*...*/);See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.api.method().then(/*...*/);or
const Api = require('dreamhost/api');
const api = new Api({key: '...'});
api.method().then(/*...*/);Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.dns.method().then(/*...*/);or
const Dns = require('dreamhost/dns');
const dns = new Dns({key: '...'});
dns.method().then(/*...*/);See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.domain.method().then(/*...*/);or
const Domain = require('dreamhost/domain');
const domain = new Domain({key: '...'});
domain.method().then(/*...*/);Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.jabber.method().then(/*...*/);or
const Jabber = require('dreamhost/jabber');
const jabber = new Jabber({key: '...'});
jabber.method().then(/*...*/);Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.mail.method().then(/*...*/);or
const Mail = require('dreamhost/mail');
const mail = new Mail({key: '...'});
mail.method().then(/*...*/);See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.mysql.method().then(/*...*/);or
const Mysql = require('dreamhost/mysql');
const mysql = new Mysql({key: '...'});
mysql.method().then(/*...*/);See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
See DreamHost's documentation for parameters and return details.
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.oneclick.method().then(/*...*/);or
const Oneclick = require('dreamhost/oneclick');
const oneclick = new Oneclick({key: '...'});
oneclick.method().then(/*...*/);Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.rewards.method().then(/*...*/);or
const Rewards = require('dreamhost/rewards');
const rewards = new Rewards({key: '...'});
rewards.method().then(/*...*/);Params:
Params:
Params:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.services.method().then(/*...*/);or
const Services = require('dreamhost/services');
const services = new Services({key: '...'});
services.method().then(/*...*/);Params:
Params:
Returned objects have the following fields:
const DreamHost = require('dreamhost');
const dreamHost = new DreamHost({key: '...'});
dreamHost.user.method().then(/*...*/);or
const User = require('dreamhost/user');
const user = new User({key: '...'});
user.method().then(/*...*/);Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Returned objects have the following fields:
Params:
Estimated unpacked size across 7 packages.
236.6 kB
Includes dependencies.