使用Gmail API。我的客戶機祕密文件已下載並適用於Ruby。當我嘗試了quickstart.py(蟒蛇)版本,我得到這個錯誤Google API quickstart.py錯誤KeyError:'_module'
File "quickstart.py", line 70, in <module>
main()
File "quickstart.py", line 55, in main
credentials = get_credentials()
File "quickstart.py", line 38, in get_credentials
credentials = store.get()
File "/Library/Python/2.7/site-packages/oauth2client/client.py", line 374, in get
return self.locked_get()
File "/Library/Python/2.7/site-packages/oauth2client/file.py", line 79, in locked_get
credentials = Credentials.new_from_json(content)
File "/Library/Python/2.7/site-packages/oauth2client/client.py", line 281, in new_from_json
module = data['_module']
KeyError: '_module'
我沒有改變的文件,同時,剛加入的client_secret.json到工作目錄,並安裝谷歌的API的Python -客戶。我的python代碼來自這裏:https://developers.google.com/gmail/api/quickstart/python
任何適合您的解決方案? – rkatkam