From f6a14f0423bcd7a0ae907ace2795e63ec5f9fe51 Mon Sep 17 00:00:00 2001 From: Sean Harger Date: Mon, 2 May 2016 11:01:36 -0700 Subject: [PATCH] google: Update godocs to reflect recent GCP front-end changes. Updated references to the API manager to reflect the new stand-alone API manager at http://console.developers.google.com. Change-Id: I156cce7b844850a560bfbf2b64fb0d8da5edaefe Reviewed-on: https://go-review.googlesource.com/22706 Reviewed-by: Brad Fitzpatrick --- google/google.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/google/google.go b/google/google.go index 9a3d5fe..464c75a 100644 --- a/google/google.go +++ b/google/google.go @@ -37,9 +37,10 @@ const JWTTokenURL = "https://accounts.google.com/o/oauth2/token" // ConfigFromJSON uses a Google Developers Console client_credentials.json // file to construct a config. -// client_credentials.json can be downloadable from https://console.developers.google.com, -// under "APIs & Auth" > "Credentials". Download the Web application credentials in the -// JSON format and provide the contents of the file as jsonKey. +// client_credentials.json can be downloaded from +// https://console.developers.google.com, under "Credentials". Download the Web +// application credentials in the JSON format and provide the contents of the +// file as jsonKey. func ConfigFromJSON(jsonKey []byte, scope ...string) (*oauth2.Config, error) { type cred struct { ClientID string `json:"client_id"` @@ -81,8 +82,8 @@ func ConfigFromJSON(jsonKey []byte, scope ...string) (*oauth2.Config, error) { // JWTConfigFromJSON uses a Google Developers service account JSON key file to read // the credentials that authorize and authenticate the requests. -// Create a service account on "Credentials" page under "APIs & Auth" for your -// project at https://console.developers.google.com to download a JSON key file. +// Create a service account on "Credentials" for your project at +// https://console.developers.google.com to download a JSON key file. func JWTConfigFromJSON(jsonKey []byte, scope ...string) (*jwt.Config, error) { var key struct { Email string `json:"client_email"`