var _ = require('lodash');

var Client = module.exports = function(config) {
  if (! config) {
    config = {};
  }

  this.version = config.version || '1';

  this._apiSetup();
};

Client.prototype._apiSetup = function() {
  var api = require('./v' + this.version + '/api.js');

  // Extend the Client object with the api methods
  _.assign(this, api);
};

@@ -150,9 +150,9 @@
 %7C%7C '
-1
+3
 ';%0A%0A

Change default API version to v3