const { useGather } = require('gathertown.js');
const access = require('./config.json'); // load your apikey
const spaceId = 'space-id/space-name';
const mapId = 'map-name';
// load only needed functions
const { getMap } = useGather(access.key);
getMap({ spaceId, mapId })
.then((data) => console.log(data))
.catch((err) => console.log(err));