(tokType string, domain string)
| 350 | } |
| 351 | |
| 352 | func requestAccessToken(tokType string, domain string) (string, error) { |
| 353 | credential, err := requestAccessCredential(tokType, domain) |
| 354 | if err != nil { |
| 355 | return "", err |
| 356 | } |
| 357 | return credential.AccessToken, nil |
| 358 | } |
| 359 | |
| 360 | func requestAccessCredential(tokType string, domain string) (storedCredential, error) { |
| 361 | if err := ensureOAuthAppCredentials(tokType); err != nil { |