I ended up finding what I needed in their documentation here and here, and through an example they linked to from the latter documentation link
The example seemed to be using a previous version of the Google PHP Api Library but I was able to make some minor tweaks and get it to work.