@eventer/api-client
v2.1.0
Published
API client for eventer
Downloads
67
Readme
A web client library to access the Eventer API.
Getting started
Install it via npm
npm install @eventer/api-client
Use it in your code
import { eventerApiClient } from '@eventer/api-client'
// See examples below for more details
const response = await eventerApiClient.searchEvents({ ... })
For more information, have a look at the OpenAPI documentation: apidoc.eventer.app
Examples
Find upcoming events which have the word "music" in their title or description:
const response = await eventerApiClient.searchEvents({
search: "music"
})
response.events?.forEach((event) => {
console.log(`upcoming music event '${event.title}' starts at ${event.starts_at}`)
})
Find all upcoming movies for the Cinestar Chemnitz cinema:
const placeId_cinestar = 'ChIJqz9jQFxGp0cRiaEOhbcVxSM';
const response = await eventerApiClient.searchEvents({
google_place_ids: [placeId_cinestar],
categories: ['movie']
})
response.events?.forEach((event) => {
console.log(`upcoming Cinestar Chemnitz movie '${event.title}' starts at ${event.starts_at}`)
})
References
- API Documentation: The related OpenAPI documentation.
- Eventer: A mobile web app, which is using this library.
How to Release
- increase the version in
package.json
- run
npm publish
- (optional) create a GitHub release with same version