简体   繁体   English

Google + OAuth + Python出现EOF错误

[英]EOF error with Google + OAuth + Python

I am trying to get the Hello Analytics example running to use OAuth2 to connect to the Google Analytics API with Python. 我正在尝试运行Hello Analytics示例,以使用OAuth2通过Python连接到Google Analytics(分析)API。 The code I'm using is the example code found here, but with my project client_id and secret. 我正在使用的代码是此处找到的示例代码,但是带有我的项目client_id和secret。 https://code.google.com/p/google-api-python-client/source/browse/samples/analytics/hello_analytics_api_v3.py https://code.google.com/p/google-api-python-client/source/browse/samples/analytics/hello_analytics_api_v3.py

However, I get the following error: EOFError: EOF when reading a line 但是,出现以下错误:EOFError:读取行时出现EOF

Searching StackOverflow I see others have had the same problem but there wasn't any answer offered. 搜索StackOverflow我看到其他人也遇到了同样的问题,但是没有提供任何答案。 EOF error with Google oauth2client (Python, google-app-engine) Google oauth2client出现EOF错误(Python,google-app-engine)

I'm a beginner and appreciate any help you can offer. 我是一个初学者,感谢您可以提供的任何帮助。 Thanks. 谢谢。

You should check out the recently update Hello Analytics API docs. 您应该查看最近更新的Hello Analytics API文档。 It gives examples for both service accounts and installed apps in Python. 它提供了服务帐户和Python中已安装的应用程序的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM