index.js
function Jusibe(publicKey, accessToken) {
  if (!(publicKey || accessToken)) {
    throw new Error('Provide both Jusibe PUBLIC_KEY and ACCESS_TOKEN');
  }

  if (!(this instanceof Jusibe)) {
    return new Jusibe(publicKey, accessToken);
  }

  this.options = {
    auth: {
      user: publicKey,
      pass: accessToken
    },
    json: true
  };
}
function Jusibe(publicKey, accessToken) {
  if (!(publicKey || accessToken)) {
    throw new Error('Provide both Jusibe PUBLIC_KEY and ACCESS_TOKEN');
  }

  if (!(this instanceof Jusibe)) {
    return new Jusibe(publicKey, accessToken);
  }

  this.options = {
    auth: {
      user: publicKey,
      pass: accessToken
    },
    json: true
  };
}
function Jusibe ( publicKey , accessToken ) { if ( ! ( publicKey || accessToken ) ) { throw new Error ( 'Provide both Jusibe PUBLIC_KEY and ACCESS_TOKEN' ) ; } if ( ! ( this instanceof Jusibe ) ) { return new Jusibe ( publicKey , accessToken ) ; } this . options = { auth : { user : publicKey , pass : accessToken } , json : true } ; }
Create new Jusibe instances
@param {String} publicKey Jusibe Public Key
@param {String} accessToken Jusibe Access Token
@return {Jusibe}
Create new Jusibe instances