如何同时使用Google Drive API和Chrome网上付款授权API [英] How to use both Google Drive API and the chrome web payments licensing API

查看:175
本文介绍了如何同时使用Google Drive API和Chrome网上付款授权API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新以澄清问题...

在尝试使用Google Drive示例应用程序Dr edit for php在我们的测试应用程序中工作,该应用程序已成功实施授权API, https://developers.google.com/chrome/web-store/docs / samples#php ,我们收到了'error saving'消息和dredit.js尝试将错误记录到控制台的语法错误。



我们意识到我们需要使用一些所需信息更新现有应用程序manifest.json,将CONTAINER设置为GOOGLE_DRIVE,并将API从控制台设置为ID。 b
$ b

但是,开发人员仪表板带来了一个警告,令我们感到难过,因为看起来我们的任务不可行:



  • 在清单中指定除CHROME之外的容器的应用可能不会使用Chrome网上应用店付款。


Catch22:使用CHROME(显然是默认值)还是GOOGLE_DRIVE作为容器?

这就是我们的问题:我们希望将驱动器和铬网上商店付款在PHP和我不知道如何驱动器和授权API的教程可以协调容器。我们没有看到启用GDrive的应用程序必须是免费的吗?



注意:使其更复杂的是,似乎许多解决方案通过文档访问文档 - list-API现在已被弃用,例如authsub和oauth 1.0解决方案。理想情况下,我们不希望编写一个在2015年停止工作的Web应用程序。 解决方案

Google Drive API是全新的此时。谷歌已经确定这是一个错误,并将解决这个问题。在此之前,我们可以为我们的应用收费,并通过文档列表API访问相同的数据。


UPDATE to clarify the question...

In attempting google drive example app Dr edit for php working in our test app which had already successfully implemented the licensing API, https://developers.google.com/chrome/web-store/docs/samples#php, we got an 'error saving' message and a syntax error from dredit.js trying to log error to console.

We realized that we needed to update the existing apps manifest.json with some needed info, setting the CONTAINER to GOOGLE_DRIVE and the id from API console.

However, that brought a warning from developer dashboard that made us sad because it seems our task is not possible:

  • Apps that specify a container other than CHROME in the manifest may not use Chrome Web Store payments.

Catch22: Use CHROME (apparently the default) or GOOGLE_DRIVE for container?

So that's our question: We want to incorporate the drive AND chrome web store payments in php and I am not sure how the tutorials for drive and licensing API can be reconciled regarding container. Did we fail to read that GDrive enabled apps must be free?

NOTE: Making it more complicated is the fact that it seems lots of solutions to access docs via the documents-list-API are deprecated now, for instance authsub and oauth 1.0 solutions. Ideally, we wouldn't want to write a web app that stops working in 2015.

解决方案

The Google Drive API is brand new at this time. Google has decided this is a bug and will be fixing the issue. Thanks folks!

Until then, we can charge for our app and access the same data via the documents list api.

这篇关于如何同时使用Google Drive API和Chrome网上付款授权API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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