npm.io
1.0.10221 • Published 3 years ago

event-app-api

Licence
ISC
Version
1.0.10221
Deps
2
Size
278 kB
Vulns
0
Weekly
0

API Doc

API Documentation

Using BaseAPI, stateless

Used before initWithToken BaseAPI.login(basePath, username, password)

Accessing API via stateless interface: BaseAPI.fetchAttendees(basePath, token, eventID)

Using EventAPIProvider

  1. Wrap app with Provider: import { EventAPIProvider } from 'event-app-api';
  2. Access api via hook: const { fetchAttendees } = useAPIContext();

**First init or initWithToken needs to be called in order to have authentication setup.

Creating new release

  1. Commit al changes to git.
  2. Prepare build: npm run build
  3. Create new patch version run: npm version patch
  4. Publish package to NPM: npm publish

All in one publish alternative run: npm run new-version

Keywords