How to use auth token in Google API (Ruby) WebmastersV3 (service account access)
问题 I cannot connect the two pieces together: I am able to authenticate my service account and I know how to form the request for the information I need to retrieve from the API, but I cannot figure out how to make that request authenticated with the token. This builds an object from the credential file I got for the service account and generates token successfully: require 'googleauth' require 'google/apis/webmasters_v3' website = "https://example.com" scope = 'https://www.googleapis.com/auth