예제 #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)
}
예제 #2
0
파일: hero.go 프로젝트: nguyenducnhaty/hero
// 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)
}