lib/api/whitelists.js

Up one level

Whitelists API

See also Whitelists CLI

var Promise = require('bluebird'); module.exports = function Whitelists(config) {

add

Adds an entry to the whitelist.

Signature:

Disqus#whitelists.add(options[, cb])

Usage:

Method not yet implemented.
this.add = function (options, cb) { return Promise.resolve({}) .then(function (qs) { options = options || {}; qs.api_key = options.api_key || config.api_key; throw new Error('Not yet implemented!'); }).nodeify(cb); };

list

Returns a list of all whitelist entries.

Signature:

Disqus#whitelists.list(options[, cb])

Usage:

Method not yet implemented.
this.list = function (options, cb) { return Promise.resolve({}) .then(function (qs) { options = options || {}; qs.api_key = options.api_key || config.api_key; throw new Error('Not yet implemented!'); }).nodeify(cb); };

remove

Removes an entry from the whitelist.

Signature:

Disqus#whitelists.remove(options[, cb])

Usage:

Method not yet implemented.
this.remove = function (options, cb) { return Promise.resolve({}) .then(function (qs) { options = options || {}; qs.api_key = options.api_key || config.api_key; throw new Error('Not yet implemented!'); }).nodeify(cb); }; };