event-app-api
v1.0.10221
Published
Package for easy access to Event App API
Downloads
311
Readme
API Doc
Using BaseAPI, stateless
Used before initWithToken
BaseAPI.login(basePath, username, password)
Accessing API via stateless interface:
BaseAPI.fetchAttendees(basePath, token, eventID)
Using EventAPIProvider
- Wrap app with Provider:
import { EventAPIProvider } from 'event-app-api';
- Access api via hook:
const { fetchAttendees } = useAPIContext();
**First init or initWithToken needs to be called in order to have authentication setup.
Creating new release
- Commit al changes to git.
- Prepare build:
npm run build
- Create new patch version run:
npm version patch
- Publish package to NPM:
npm publish
All in one publish alternative run: npm run new-version