将使用Provisioning API开发的应用程序迁移到新的api(Admin SDK) [英] Migrate application developed with the Provisioning API to the new api (Admin SDK)

查看:43
本文介绍了将使用Provisioning API开发的应用程序迁移到新的api(Admin SDK)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看新的API(Admin SDK) Admin SDK .我发现了以下问题,这些API都不支持google应用程序市场2,有一种方法可以集成这些新api,或者如果将来google应用程序市场将支持OAuth 2.0.

Reviewing the new api (Admin SDK) Admin SDK. I found the following problem, none of these APIs have support 2 legged for the google apps marketplace, there is a way to integrate these new apis or if in the future the google apps marketplace will support for OAuth 2.0.

推荐答案

带有两条腿OAuth的Admin SDK API功能很好,我今天在我的市场应用程序中使用Directory API.您需要进入市场上的供应商资料"页面,单击注册其他API"并启用Admin SDK.您还需要将所需的API范围添加到清单中.

The Admin SDK APIs function with Two Legged OAuth just fine, I'm using the Directory API in my marketplace app today. You'll need to go into your Vendor Profile page on the marketplace, click "Register for additional APIs" and enable Admin SDK. You'll also need to add the needed API scopes to your manifest.

还要注意, google-api-python-client 至少不再支持OAuth 1.0,因此您需要手动执行身份验证或使用旧的GData库来获取正确的身份验证标头.

Also note that the google-api-python-client at least does not support OAuth 1.0 any longer so you'll need to either perform the authentication manually or utilize the old GData library to get the correct auth headers.

这篇关于将使用Provisioning API开发的应用程序迁移到新的api(Admin SDK)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆