(tokenType string)
| 122 | } |
| 123 | |
| 124 | func oauthCredentials(tokenType string) string { |
| 125 | switch tokenType { |
| 126 | case tokenPersonal: |
| 127 | return personalAppKey |
| 128 | case tokenTeamAccess: |
| 129 | return teamAccessAppKey |
| 130 | case tokenTeamManage: |
| 131 | return teamManageAppKey |
| 132 | default: |
| 133 | return "" |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | func setOAuthCredentials(tokenType string, appKey string) { |
| 138 | switch tokenType { |
no outgoing calls