nicoalz-oss-festivals
v1.1.1
Published
A beautiful demo package
Downloads
5
Readme
nicoalz-oss-festivals
A festivals information package.
Installation
To install the package, you can use npm:
npm install nicoalz-oss-festivals
Usage
[x] Get festivals by department:
- function:
getFestivalsByDepartment(department)
- parameter: department (string) - Use first two numbers of ZipCode. eg: '01' for Ain
- return: array of festivals, docs: https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/
- function:
[x] Get festivals by month:
- function:
getFestivalsByMonth(month)
- parameter: month (string) - Use two numbers for month. eg: '01' for January
- return: array of festivals, docs: https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/
- function:
[x] Get festivals by region:
- function:
getFestivalsByRegion(region)
- parameter: region (string) - Use region name. eg: 'Auvergne-Rhône-Alpes'
- return: array of festivals, docs: https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/
- function:
[x] Get festivals by domaine:
- function:
getFestivalsByDomaine(domaine)
- parameter: domaine (string) - Use domaine name. eg: 'Musiques actuelles'
- return: array of festivals, docs: https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/
- function:
[x] Get festivals by fiters:
- function:
getFestivalsByFilters(filters)
- parameter: filters (object) - Use filters object. eg: {region: 'Auvergne-Rhône-Alpes', domaine: 'Musiques actuelles'} :warning: Only a wrong value of a correct filter will throw an error
- return: array of festivals, docs: https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/
- function:
More documentation
- https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/
- https://help.opendatasoft.com/apis/ods-explore-v2/explore_v2.1.html