如何避免googleapi Python客户端发出关于3个位置参数而不是2个必需参数的警告?

2024-06-23 19:32:15 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用Google API Python Client来处理另一个Google服务,并使用以下代码使用服务帐户进行授权:

credentials = AppAssertionCredentials(scope='https://www.googleapis.com/auth/fusiontables')
http = credentials.authorize(httplib2.Http(memcache))
service = build('fusiontables', 'v1', http=http)

我经常在应用程序日志中看到以下记录:

^{pr2}$

我的代码是否需要更改以避免此警告消息?在


Tags: 代码httpscomclientauthapihttpwww

热门问题