code: function TourCMS(options) {
  
    // Merge the default options with the client submitted options
    this.options = {
      hostname: 'api.tourcms.com',
      apiKey: '',
      marketplaceId: 0,
      channelId: 0,
      channels: []
    };
  
    if(typeof options !== 'undefined') {
      // Process config
      if(typeof options.apiKey !== 'undefined')
        this.options.apiKey = options.apiKey;
  
      if(typeof options.marketplaceId !== 'undefined')
        this.options.marketplaceId = options.marketplaceId;
  
      if(typeof options.channelId !== 'undefined')
        this.options.channelId = options.channelId;
    }
  
  }
docs: Constructor