func promptUser() *Config { return &Config{ ClientId: util.Prompt("Enter Client Id: "), ClientSecret: util.Prompt("Enter Client Secret: "), } }
// Get auth code from user func promptUserForAuthCode(config *oauth.Config) string { authUrl := config.AuthCodeURL("state") fmt.Println("Go to the following link in your browser:") fmt.Printf("%v\n\n", authUrl) return util.Prompt("Enter verification code: ") }