JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q51622F
  • License MIT

API client for eventer

Package Exports

  • @eventer/api-client
  • @eventer/api-client/lib/cjs/index.js
  • @eventer/api-client/lib/esm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@eventer/api-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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