@dev-crew-berlin/enter-js-api-client
v2.4.4
Published
js client for the enter (https://enter.events) api
Downloads
118
Readme
Js Api Client
install
npm install @dev-crew-berlin/enter-js-api-client
usage
import EnterAPIClient from '@dev-crew-berlin/enter-js-api-client'
const url = 'https://enter.events/api/v1'
async function apiExample() {
// fetch access Token
const accessToken = await EnterAPIClient.fetchAccessToken({
url: url,
user: 'me',
password: 'xxx',
deviceName: 'my-device',
})
const credentials = {
accessToken: accessToken,
url: url
}
// create api instance
const api = new EnterAPIClient({
credentials: credentials,
onLogout: (reason?: string) => { deleteCredetials() }
})
const instances = await api.getInstanceList()
const attendees = await api.getAttendeeList({ instanceId: instances[0].id })
}
publish
This package is automatically published to npm for each new tag starting with v*
.
So you can run:
npm version patch # one of major | minor | patch or just write the version like v1.0.0
git push --follow-tags
You could also create the tag manually.
If the version in the git tag and package.json
differ the git tag is used.