fetchToken simulates a token lookup and omits the details of proper token acquisition. For examples of how to acquire an OAuth2 token, see: https://godoc.org/golang.org/x/oauth2
()
| 80 | // acquisition. For examples of how to acquire an OAuth2 token, see: |
| 81 | // https://godoc.org/golang.org/x/oauth2 |
| 82 | func fetchToken() *oauth2.Token { |
| 83 | return &oauth2.Token{ |
| 84 | AccessToken: "some-secret-token", |
| 85 | } |
| 86 | } |