1.1.0 • Published 10 months ago

oss-api-td5 v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Call API Festival in France

With this library you can find festival in France with the "https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/" API.

Installation

For install

npm install oss-api-td5

Requirements

  • Node.JS
  • npm

Use functions

I. Get festival by departments

Use the function :

getFestivalByDepartment(x)

This function search in the API for the festival in the department you enter in the params

x = department number (exemple : 01, 25 or 65)

II. Get festival by domaine

Use the function :

getFestivalByDomaine(x)

This function search in the API for the festival in the domain you enter in the params

x = domaine number (refer to the table under)

ValueNumber
Musiques actuelles01
Cinéma et audiovisuel02
Musiques classiques03
Cirque et Arts de la rue04
Pluridisciplinaire Spectacle vivant05
Livre et littérature06
Transdisciplinaire07
Divers Spectacle vivant08
Pluridisciplinaire Musique09
Danse10
Arts plastiques et visuels11
Théâtre12
Domaines divers13

III. Get festival by department and domaine

getFestival(x, y)

This function search in the API for the festival with the domaine and the department.

x = department number (exemple : 01, 25 or 65) y = domaine number (refer to the table upper)

If you don't want to use one of this params replace it by "0". For example :

getFestival("0","11");

This will search the festival everywhere with the domaine : "Arts plastiques et visuels".

1.1.0

10 months ago

1.0.0

10 months ago