Ejemplo n.º 1
0
// GetClient returns an authenticated http.Client that can be used to make requests to
// protected Github resources
func (provider *InstagramProvider) GetClient(creds *common.Credentials) (*http.Client, error) {
	return oauth2.GetClient(provider.TripperFactory(), creds, provider)
}
Ejemplo n.º 2
0
// GetClient returns an authenticated http.Client that can be used to make requests to
// protected Github resources
func (h *HeroProvider) GetClient(creds *common.Credentials) (*http.Client, error) {
	return oauth2.GetClient(h.TripperFactory(), creds, h)
}