https://github.com/juliuste/websozicms-calendar
Queries a WebSoziCMS website calendar.
https://github.com/juliuste/websozicms-calendar
library spd
Last synced: 8 months ago
JSON representation
Queries a WebSoziCMS website calendar.
- Host: GitHub
- URL: https://github.com/juliuste/websozicms-calendar
- Owner: juliuste
- License: isc
- Created: 2017-03-04T15:58:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T04:17:41.000Z (about 6 years ago)
- Last Synced: 2025-01-26T15:36:24.838Z (over 1 year ago)
- Topics: library, spd
- Language: JavaScript
- Size: 15.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# websozicms-calendar
Queries a [WebSoziCMS](https://www.websozicms.de) website for events.
[](https://www.npmjs.com/package/websozicms-calendar)
[](https://travis-ci.org/juliuste/websozicms-calendar)
[](https://greenkeeper.io/)
[](https://david-dm.org/juliuste/websozicms-calendar)
[](license)
[](https://gitter.im/juliuste)
## Installation
```bash
npm install websozicms-calendar
```
## Usage
```js
const calendar = require('websozicms-calendar')
const events = calendar('http://cool-organization.com').then(…)
```
You need to provide the base URL of the WebSoziCMS website you want to query as a single parameter. Returns a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/promise) that resolves in a list of events which looks like this:
```js
{
location: 'Zum wilden Troll, Meister-Eder-Platz 8, 48484 Blubdorf', // optional
start: '2017-03-03T18:30:00.000Z', // Date() Object
end: '2017-03-03T21:00:00.000Z', // Date() Object, optional
title: 'Monthly meeting',
organization: {
id: 'spdbutzwest',
name: 'SPD Butz-West'
}
}
```
## Contributing
If you found a bug or want to propose a feature, feel free to visit [the issues page](https://github.com/juliuste/websozicms-calendar/issues).