首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >面向谷歌v3用户的谷歌日历应用编程接口

面向谷歌v3用户的谷歌日历应用编程接口
EN

Stack Overflow用户
提问于 2013-06-18 22:15:30
回答 1查看 151关注 0票数 0

我们正在为谷歌市场的用户与谷歌日历集成的应用程序。documentation https://developers.google.com/google-apps/marketplace/best_practices中的许多链接都不起作用。有没有人能为市场用户推荐使用带有RESTful Google Calendar API V3的两条腿的OAuth?TIA,Riyaz .A

EN

回答 1

Stack Overflow用户

发布于 2013-10-03 18:09:38

下载下面的库,它支持两条腿的oauth

google-api-python-client==1.0beta4

并确保您的清单包含更新的日历(V3)作用域

代码语言:javascript
复制
from apiclient.oauth import TwoLeggedOAuthCredentials
from apiclient.discovery import build
import httplib2

credentials = TwoLeggedOAuthCredentials(OAUTH_CONSUMER_KEY,OAUTH_CONSUMER_SECRET,'referer')
credentials.requestor = user_email
http = httplib2.Http()
http = credentials.authorize(http)
calendar_service = build('calendar', 'v3', http=http)
list = calendar_service.events().list(calendarId="primary").execute()
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17171243

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档