有 G Suite/Google Apps API 吗?

发布于 2024-10-25 04:18:56 字数 621 浏览 1 评论 0原文

我对“G Suite/Google Apps API”的可用性有几个疑问。我想将某种文档/电子表格/演示文稿管理直接集成到我正在构建的应用程序中。

该服务必须能够导入和导出到 DOC/XLS/PPT/PDF 等...,所以像 Feng Office(如果你听说过的话),不适合这种需要。

为此,我正在调查这样的事情是否存在。在开始这项工作之前,我想知道:

  • G Suite/Google Apps 生产力工具是否允许从第三方应用程序创建、读取、更新和删除所有文档/电子表格/演示文稿?
  • 潜在用户必须拥有 Google 帐户才能使用文档/电子表格/演示文稿编辑器吗?
  • 如果确实需要帐户,我的应用程序上的多个用户是否可以访问一个 Google 帐户下的文件?
  • 最后,是否可以跳过 Google 帐户,让 Google 文档直接访问并保存文档在我的本地服务器上?

很抱歉问题列表很崩溃,但如果有人可以帮助解决这些问题,我们将不胜感激。

斯普里诺724

I had several questions regarding the usability of a "G Suite/Google Apps API." I would like to integrate some sort of document/spreadsheet/presentation management directly into an application I am building.

This service would have to have the ability to import and export to DOC/XLS/PPT/PDF etc..., so something like Feng Office (if you have ever heard of it), wouldn't suit this need.

For this purpose, I'm looking into such a thing exists. Before I would begin this endeavor, I was wondering:

  • Do the G Suite/Google Apps productivity tools allow documents/spreadsheets/presentations to be created, read, updated, and deleted all from a third-party application?
  • Would potential users have to have a Google account in order to use document/spreadsheet/presentation editor?
  • Could multiple users on my application access files under one Google account, if an account is needed at all?
  • Last, is it possible to skip a Google account, and let Google docs directly access and save documents on my local server?

Sorry for the crash list of questions, but if there is anyone who could help with these, it would be much appreciated.

spryno724

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

囚我心虐我身 2024-11-01 04:18:56
  1. 是的。
  2. 不一定,您可以让后端脚本以您的身份登录,或者更好的是,专门为您的应用程序设置管理员帐户。
  3. 是的,请参阅#2。
  4. 我不这么认为。
  1. Yes.
  2. Not necessarily, you can have your backend script sign in as you, or even better, an admin account set-up specifically for your app.
  3. Yes, see #2.
  4. I don't think so.
逆光下的微笑 2024-11-01 04:18:56

(2017 年 2 月) 执行摘要是,您可以使用 G Suite 实现您的设想(以前称为 Google Apps)API 或 Google Apps 脚本。 TL;DR 下面回应您的“小问题”。

  1. 是的;你可以用...来做
    • 单个应用 REST API,即 Sheets APISlides API 等,或只是 Google 云端硬盘 API
      • 请记住,Drive API 用于面向文件的功能(创建、删除、导入/导出等),而各个 API 用于文档面向功能(编辑、格式化等)
      • 要了解如何使用 REST API,请观看此播放列表中的前几个视频,具体从视频 2、3 和 4 开始
    • 另一种替代方案是 Google Apps 脚本,在 Google 云中托管并运行的服务器端 JavaScript 应用。如果您感兴趣,我为您制作了一个 Apps 脚本介绍视频
      • 仅供参考,上面播放列表中的视频 5、8、22 和 24 适用于 Apps 脚本(如果您想继续使用)
      • 请注意,Google 文档和 Google 表单目前都没有 REST API,但您可以通过 Apps 脚本以编程方式访问它们。
  2. 是的,用户需要拥有 Google 帐户他们不必创建 Gmail 地址。请参阅本页了解如何在不使用 Gmail 的情况下创建 Google 帐户。 (如果他们确实想要创建 Gmail 地址,则可以使用此页面 相反。)
  3. 是的,您可以使用 Drive API 来设置与用户的共享权限。请参阅有关权限的页面有关共享的内容了解更多信息。
  4. 并不真地;您至少需要一个 Google 帐户才能访问存储文件的 Google 云端硬盘。不过,您可以自行管理文件,然后导入云端硬盘并云端硬盘导出,以允许您的用户在您的服务器上进行编辑,然后将其推送回云端硬盘。有关导入/导出格式/MIME类型的更多信息,请参阅我对另一个 SO 问题的回答

(Feb 2017) The executive summary is that you can do what you envision, either by using G Suite (formerly Google Apps) APIs or Google Apps Script. TL;DR below in response to your "mini-questions".

  1. Yes; you can do it with...
    • Individual app REST APIs, i.e., Sheets API, Slides API, etc., or just the Google Drive API.
      • Keep in mind that the Drive API is used for file-oriented functionality (create, delete, import/export, etc.) while the individual APIs are for document-oriented functionality (editing, formatting, etc.)
      • To learn about using the REST APIs, see the first few videos in this playlist, specifically videos 2, 3, and 4 to start with
    • An alternative that's more like using "services" vs. APIs but that can also programmatically CRUD G Suite documents is Google Apps Script, server-side JavaScript apps that are hosted at and run in Google's cloud. If interested, I created an Apps Script intro video for you.
      • FYI, videos 5, 8, 22, and 24 from the playlist above are for Apps Script if you want to pursue that
      • Note that neither Google Docs nor Google Forms currently have REST APIs, but you can programmatically access them from Apps Script.
  2. Yes, users need to have a Google account but they don't have to create a Gmail address. See this page on creating Google accounts without Gmail. (If they do want to create a Gmail address, then they can use this page instead.)
  3. Yes, you would use the Drive API to set the sharing permissions with your users. See this page on Permissions and this one on Sharing for more info.
  4. Not really; you need at least one Google account in order to access Google Drive where the files would be stored. You can, however, manage the files on your own, then import to Drive and export from Drive to allow your users to edit on your servers then push them back to Drive. For more info on import/export formats/MIMEtypes, see my answer to another SO question.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文