Example code for Starlark to a Google API?

Would it be possible to open up something like the Google Calendar .star to open source? I’d love to see examples of how you did the authentication to google. I’m wanting to build an app that pulls a random photo from a given Google Photo Album.