code: function Partyflock(consumerKey, consumerSecret, endpoint, debug) {
    this.endpoint = 'partyflock.nl';
    // Check instance arguments
    this.endpoint = (endpoint ? endpoint : this.endpoint);
    this.consumerKey = (consumerKey ? consumerKey : false);
    this.consumerSecret = (consumerSecret ? consumerSecret : false);
    this.debug = (typeof debug !== 'undefined' ? debug : false);
    // Check config options
    if(config.partyflock) {
      this.consumerKey = (this.consumerKey === false ? config.partyflock.consumerKey : false);
      this.consumerSecret = (this.consumerSecret === false ? config.partyflock.consumerSecret : false);
      this.endpoint = (this.endpoint !== config.partyflock.endpoint ? config.partyflock.endpoint : this.endpoint);
      this.debug = (this.debug === false && config.partyflock.debug !== 'undefined' ? config.partyflock.debug : this.debug);
    }
    // CI integration
    if(process.env['CONSUMER_KEY'] && process.env['CONSUMER_SECRET']) {
      this.consumerKey = process.env['CONSUMER_KEY'];
      this.consumerSecret = process.env['CONSUMER_SECRET'];  
    }
    this.type = 'json';
  
  
    this.date = new date(this);
    this.location = new location(this);
    this.artist = new artist(this);
    this.user = new user(this);
    this.party = new party(this);
  
    this.oauth = new OAuth.OAuth(
      'https://' + this.endpoint + '/request_token',
      '', // no need for an oauth_token request
      this.consumerKey,
      this.consumerSecret,
      '1.0A',
      null,
      'HMAC-SHA1'
    );
  }
docs: Partyflock instance constructor
  @prototype
  @class  Partyflock