Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
goauth2包有一个示例使用。但是在应用引擎上,普通的 http.Client 不可用。如何将应用引擎 urlfetch 包与 goauth2 一起使用?
您必须Transport在回调的第一行添加一个参数:
Transport
t := &oauth.Transport{ Config: oauth_conf, Transport: &urlfetch.Transport{Context: c}, }