Google calendar api

Hello everyone, I’m trying to setup Google calendar api to the invoice but having trouble with where to place it the code and haveing it disply correctly, trying to get it to get data from the invoice and date save it to database and calendar… Kinda annoying but a lil pet project I wanted to try