The main purpose of this library is to communicate with the Ticketsocket Integration API
Script Tag
<script src="/dist/ticketsocket-client-api.umd.js"></script>
<script>
let ticketsocket = new Ticketsocket.API('http://localhost:3000/', 'test-token');
ticketsocket.getCategories().then(console.log, console.error);
ticketsocket.getEvents().then(console.log, console.error);
</script>
ES6
import Ticketsocket from 'ticketsocket-client-api';
let ticketsocket = new Ticketsocket.API('http://localhost:3000/', 'test-token');
ticketsocket.getCategories().then(console.log, console.error);
ticketsocket.getEvents().then(console.log, console.error);
You can link this repository for client API development
Run in this repository directory:
npm link
Run in the project consuming this library
npm link ticketsocket-client-api
To update package version, create new tag and publish new version to npm do:
npm version {x.x.x}
npm run build
npm commit -m "Update package to v{x.x.x}"
npm git push origin
npm publish