小编Vin*_*nzo的帖子

IOError:[Errno 2]没有这样的文件或目录:'README.md'

当我尝试使用pip安装omniture时,我收到以下错误:

IOError: [Errno 2] No such file or directory: 'README.md'
Run Code Online (Sandbox Code Playgroud)

我基本上试图连接到Adobe Analytics API.有人能帮我吗?

谢谢

python pip adobe-analytics

6
推荐指数
1
解决办法
3571
查看次数

403 使用 python 的 gmail api 权限不足

我正在尝试运行 gmail API 以从特定用户获取电子邮件。但是我总是收到以下错误:googleapiclient.errors.HttpError:https://www.googleapis.com/gmail/v1/users/me/settings/filters?alt=json 返回“权限不足”>

我已经尝试了所有不同的建议,从更改范围到在 gmail 设置中启用安全性较低的应用程序。最后一件事是我的代码可能是错误的:

from __future__ import print_function
from googleapiclient import discovery
from googleapiclient.discovery import build
from httplib2 import Http
from oauth2client import file, client, tools

# Setup the Gmail API
SCOPES = 'https://mail.google.com/'
store = file.Storage('credentials.json')
creds = store.get()
if not creds or creds.invalid:
    flow = client.flow_from_clientsecrets('client_secret.json', SCOPES)
    creds = tools.run_flow(flow, store)
service = build('gmail', 'v1', http=creds.authorize(Http()))

# Call the Gmail API
    # results = service.users().labels().list(userId='me').execute()
    # labels = results.get('labels', [])
    # if not labels: …
Run Code Online (Sandbox Code Playgroud)

python api gmail

3
推荐指数
1
解决办法
3116
查看次数

标签 统计

python ×2

adobe-analytics ×1

api ×1

gmail ×1

pip ×1