@halo-media/ts-client-api
v3.41.9
Published
A library for interacting with the Ticketsocket integration API
Downloads
4,879
Maintainers
Keywords
Readme
Ticketsocket Client API
The main purpose of this library is to communicate with the Ticketsocket Integration API
Usage
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);
Development
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
Update version & NPM package
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