(tokenType string, appKey string)
| 135 | } |
| 136 | |
| 137 | func setOAuthCredentials(tokenType string, appKey string) { |
| 138 | switch tokenType { |
| 139 | case tokenPersonal: |
| 140 | personalAppKey = appKey |
| 141 | case tokenTeamAccess: |
| 142 | teamAccessAppKey = appKey |
| 143 | case tokenTeamManage: |
| 144 | teamManageAppKey = appKey |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | func needsOAuthCredentialsOverride(tokenType string) bool { |
| 149 | return oauthCredentials(tokenType) == "" |
no outgoing calls