Skip to content

gathertown/api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-examples

documentation: https://gathertown.notion.site/Gather-HTTP-API-3bbf6c59325f40aca7ef5ce14c677444

setup

install NodeJS and npm

get an API key here

create a file called config.js that looks like this, but with your own data instead:

module.exports = {
	SPACE_ID: "oFz81x6whatever\\SpaceName", // note the \, NOT / as is in the URL
	API_KEY: "YOUR KEY HERE",
};

npm install

run

example: node get-map.js

examples

create-space.js

Simplest example of creating a new space, using an existing one as a template

get-map.js

Simplest example of fetching map data, with axios

set-map.js

Simplest example of setting map data, with axios