Skip to content

A gateway function to convert a Borigo facility's bookings to iCal calendar format for integration in popular calendar apps.

License

Notifications You must be signed in to change notification settings

klinkby/Borigo2iCal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Borigo2iCal

A gateway function to convert a Borigo facility's bookings to iCal calendar format for integration in popular calendar apps.

Usage

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.

Hosting

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 Borigo
  • ApiClient__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>)

References

License

MIT Licensed.

About

A gateway function to convert a Borigo facility's bookings to iCal calendar format for integration in popular calendar apps.

Topics

Resources

License

Stars

Watchers

Forks

Languages