A gateway function to convert a Borigo facility's bookings to iCal calendar format for integration in popular calendar apps.
After deployment the app will expose the endpoint: https://<YOURSITE>.azurewebsites.net/api/bookings?date=2023-11-10
The date parameter is optional and defaults to today's date minus 4 days. The function returns a VCalendar file with the bookings from the specified date.
Hosted on Azure Functions v4 (Linux) Consumption Plan, the function is triggered by a HTTP request.
Requires the following App Settings in the Function App:
ApiClient__RememberUserToken
: The cookie secret value used to authenticate the user with BorigoApiClient__Subdomain
: The subdomain of the Borigo account (e.g.https://<SUBDOMAIN>.borigo.dk
)ApiClient__FacilityId
: The ID of the facility to fetch bookings from (e.g./booking-engine/bookings?facility_id=<FACILITY_ID>
)
- dotnet 6.0
- Azure Functions v4
- Nuget RestSharp for communication with the Borigo REST API
- Nuget Klinkby.VCard for serializing to VCalendar format