index.js
function WPCOMUnpublished( token, reqHandler ) {
	if ( ! ( this instanceof WPCOMUnpublished ) ) {
		return new WPCOMUnpublished( token, reqHandler );
	}

	WPCOM.call( this, token, reqHandler );
}
function WPCOMUnpublished( token, reqHandler ) {
	if ( ! ( this instanceof WPCOMUnpublished ) ) {
		return new WPCOMUnpublished( token, reqHandler );
	}

	WPCOM.call( this, token, reqHandler );
}
function WPCOMUnpublished ( token , reqHandler ) { if ( ! ( this instanceof WPCOMUnpublished ) ) { return new WPCOMUnpublished ( token , reqHandler ) ; } WPCOM . call ( this , token , reqHandler ) ; }
Creates a `WPCOMUnpublished` instance

Example
// Create WPCOMUnpublished instance
var WPCOMUnpublished = require( 'wpcom-unpublished' );
var wpcom = WPCOM();

Example
// Create WPCOMUnpublished instance passing a token
var WPCOMUnpublished = require( 'wpcom-unpublished' );
var wpcom = WPCOM( '<your-token>' );

Example
// Create WPCOMUnpublished instance passing request handler
var WPCOMUnpublished = require( 'wpcom-unpublished' );
var proxy = require( 'wpcom-proxy-request' );
var wpcom = WPCOM( proxy );

@param {String} [token] - OAuth API access token
@param {Function} [reqHandler] - function Request Handler
@public
Creates a WPCOMUnpublished instance