GAE/Go をちょいちょい触っている。 その中の Pull queue を試そうとしたとき、OAuth2 のトークンが必要になったので取得したメモ。 手順 Google Could Platform の API Manager から認証情報(ClientID, Secret)をつくる 下記コマンドを叩く。 [utahta@mbp google-oauth2]% go run oauth2_token.go Input ClientID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com Input Secret: XXXX-XXXXXXXXXXXXXXXXXXXXXX Input Scopes: https://www.googleapis.com/auth/taskqueue,https://www.goo