Connect your barrier
Do you want to connect a barrier that we haven't connected yet? This is quite easy to do, just create a new Camping Care app and connect it with your barier.
Pre-requirements
For this tutorial it's good to have an understanding how our App Store works. If not, you can read the documentation here or follow our tutorial for Laravel or Vue.js.
Creating the app
Go to the Appstore and create a new app. These are the requirements:
- Your app needs to be category:
access_control
. - It also needs a logo and description.
- Your app can have one or multiple webhooks, using the
license_plate.add
,license_plate.update
andlicense_plate.delete
events.
Recieving webhooks
Whenever a license plate event is fired it sends a webhook to the specified url.
https://your-app-url/api/webhook-url
Along with the URL we will send the following parameters:
app_id
(number) = The id of the appadmin_id
(number) = The admin_id of the administrationdata
(object) = The data send with the webhooklicense_plate
(string)reservation_id
(number) = Unique id for this reservationstart_date
(string)end_date
(string)reservation
(object) = The complete reservation object
info
Webhooks are always post
requests
Now you have all the data Camping Care provides and can send it to your API.