Use googleapiclient instead of doing the http request ourselves

The practical difference is small with just one API call, but it may
prevent some errors.