lib/embdr.js
function Embdr(key) {
    if (!(this instanceof Embdr)) {
        return new Embdr(key);
    }

    this._api = {
        'auth': null,
        'host': Embdr.DEFAULT_HOST,
        'port': Embdr.DEFAULT_PORT,
        'basePath': Embdr.DEFAULT_BASE_PATH,
        'protocol': Embdr.DEFAULT_PROTOCOL
    };

    this.setApiKey(key);
    this._exposeApis();
}
function Embdr(key) {
    if (!(this instanceof Embdr)) {
        return new Embdr(key);
    }

    this._api = {
        'auth': null,
        'host': Embdr.DEFAULT_HOST,
        'port': Embdr.DEFAULT_PORT,
        'basePath': Embdr.DEFAULT_BASE_PATH,
        'protocol': Embdr.DEFAULT_PROTOCOL
    };

    this.setApiKey(key);
    this._exposeApis();
}
function Embdr ( key ) { if ( ! ( this instanceof Embdr ) ) { return new Embdr ( key ) ; } this . _api = { 'auth' : null , 'host' : Embdr . DEFAULT_HOST , 'port' : Embdr . DEFAULT_PORT , 'basePath' : Embdr . DEFAULT_BASE_PATH , 'protocol' : Embdr . DEFAULT_PROTOCOL } ; this . setApiKey ( key ) ; this . _exposeApis ( ) ; }
Create a new Embdr instance

@constructor
@param {string}      key     The API key that allows for uploading to the Embdr REST API
Create a new Embdr instance