@eventer/api-client
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

CI

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

How to Release

  • increase the version in package.json
  • run npm publish
  • (optional) create a GitHub release with same version

Readme

Keywords

Package Sidebar

Install

npm i @eventer/api-client

Weekly Downloads

23

Version

2.0.0

License

MIT

Unpacked Size

64.6 kB

Total Files

57

Last publish

Collaborators

  • scthi
  • dast00