-
2 votesanswersviews
AppEngine上的AppAssertionCredentials:如何模拟用户帐户?
我在我的python GAE应用程序上使用AppAssertionCredentials,以作为服务帐户进行身份验证 . 但是,这是一个通用服务帐户,我不知道如何授权它在我的Google Apps域中模拟用户帐户 . 这可以通过JWT凭证方式实现(请参阅此视频:http://www.youtube.com/watch?v=iK14bfd6qhs),但JWT不适用于appengine . 有什么建议... -
0 votesanswersviews
Google Calendar API:禁用同步到Google日历的Apple日历的提醒
我正在使用Google Calendar API和Google Python客户端库在用户的Google日历中创建日历和活动 . 我正在创建的事件旨在成为一个待办事项列表,因此它们是全天事件,不应该有警报通知 . 我正在创建一个这样的事件: event = { 'summary': summary, 'start': { 'date': start_date }, 'end... -
2 votesanswersviews
来自GAE - 403 Access的 Cloud 存储API请求未配置
我的GAE应用正试图操纵存储在Google Cloud 端存储上的文件 . 这些文件存储在我的应用程序的默认存储桶中 . 我已经设法使用GCS Python客户端库(https://developers.google.com/appengine/docs/python/googlecloudstorageclient/)读取/写入该文件桶 . 不幸的是它不支持复制 . 相反,我正在尝试使用API客... -
2 votesanswersviews
403 on google api searchanalytics.query
我正在尝试查询我网站的搜索分析数据 . 我确信这是我创建的网站 . 但当我尝试使用google-api-python-client请求时,我收到403错误: x = gapi.webmasters_service.searchanalytics().query(body={"startDate": "2014-01-01", "endDate&qu... -
0 votesanswersviews
使用google-api-python-client访问G Suite Admin SDK时收到403错误
我已经阅读了大量文档,尝试了数百种不同的请求,但始终收到: googleapiclient.errors.HttpError: <HttpError 403 when requesting https://www.googleapis.com/admin/directory/v1/users?domain=example.com&alt=json returned "Not... -
0 votesanswersviews
在Google自定义搜索API中指定日期范围
在特定日期范围内搜索特定网站中的一组关键字非常简单 - >在您输入的Google搜索框中:desired-kewords site:desired-website然后从工具菜单中选择日期范围 . 例如这里"arab spring"在2011年1月1日到2013年12月31日期间在www.cnn.com上搜索词: 正如您在第二张图片中看到的,大约有773个结果!搜索URI如... -
11 votesanswersviews
如何从谷歌驱动器上传csv文件(并使用它)到google colaboratory
想尝试python,谷歌colaboratory似乎是最简单的选择 . 我有一些文件在我的谷歌驱动器,并希望上传到谷歌colaboratory . 所以这是我正在使用的代码: !pip install -U -q PyDrive from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from googl... -
3 votesanswersviews
GAE中的OAuth2身份验证访问Calendar API V3(域托管)
我正在用Python开发一个Google App Engine应用程序 . 我正在使用: Google Calendar API v3(用于访问我自己域中的日历 . 因此,这是我的域中安装的Google Apps) 适用于Python的Google API客户端库 . OAuth2对我的域用户进行身份验证(name@mydomain.com) 我以为我必须使用服务帐户,因为这样: ... -
1 votesanswersviews
使用google cloud python api client创建磁盘快照
我'm trying to create a disk snapshot using python api client of google cloud platform, Heres what' s我试过:从 views.py if request.method == 'POST': form = forms.SnapshotForm(request.POST) ... -
1 votesanswersviews
Google Plus Domains API AccessTokenRefreshError
我'm attempting to use the Google+ Domains API to provision circles for my Google Apps domain. I'm使用域名范围的委托https://developers.google.com/+/domains/authentication/delegation我已成功用于组,用户和日历配置 . 在API控制台中,我尝...