How to use appengine / urlfetch package using goauth2?

The goauth2 package has an example usage. But in the application, the usual http.Client engine is not available. How to use urlfetch package for application using goauth2?

+6
source share
1 answer

You must add the Transport parameter to the first line of the callback:

 t := &oauth.Transport{ Config: oauth_conf, Transport: &urlfetch.Transport{Context: c}, } 
+6
source

All Articles