Connect your barrier
Want to connect a barrier we don’t support yet? You can do this yourself: create a new Camping.care app and connect it to your barrier.
Prerequisites
Section titled “Prerequisites”It helps to understand how our App Store works. If you’re new to it, read the App Store documentation or follow our tutorial for Laravel or Vue.js.
Create the app
Section titled “Create the app”Go to the App Store and create a new app. It needs to meet these requirements:
- The app category is
access_control. - The app has a logo and a description.
- The app has one or more webhooks using the
license_plate.add,license_plate.updateandlicense_plate.deleteevents.
Receive webhooks
Section titled “Receive webhooks”Whenever a licence plate event is fired, we send a webhook to the URL you specified, for example:
https://your-app-url/api/webhook-urlWith the request we send the following parameters:
app_id(number): the ID of the appadmin_id(number): theadmin_idof the administrationdata(object): the data sent with the webhooklicense_plate(string)reservation_id(number): the unique ID of the reservationstart_date(string)end_date(string)reservation(object): the complete reservation object
You now have all the data Camping.care provides, and you can send it on to your barrier’s API.