I have a property website where I have listed multiple properties. Each property has a Google Calendar and when the property is booked on that particular day, then a note is added on that day for that particular calendar.
I was doing all this manually, where I was updating the HTML of the website by showing the availability with a layout like this.
Now I am trying to make all this automated by using the Google Calendar API where I can display the booking of each property in a calendar like the example above.
I am trying to use the Google API PHP Client Library which is located at https://github.com/google/google-api-php-client
My biggest problem here is that I am unable to find any basic example of this also over the internet. Google pages are not showing the full examples.
For example, the guide page of Google shows just one example of "books", which I don't need at all.
I have searched all over the internet for some basic examples of the code but unable to find it at all. I search stackoverflow itself but all the codes that I have find are really confusing and all of them are different.
Moreover, most of them already "know" about it so there is no way to understand what is required.
If someone has a simple example where I can pull events of a day of a calendar, please post it here.
Also if you know of some other way to display the availability like the image above, would be great help !
Thanks.