简体   繁体   English

有G Suite / Google Apps API吗?

[英]Is there a G Suite/Google Apps API?

I had several questions regarding the usability of a "G Suite/Google Apps API." 关于“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. 这项服务必须能够导入和导出到DOC / XLS / PPT / PDF等......所以像Feng Office这样的东西(如果你听说过的话)就不适合这种需要。

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? G Suite / Google Apps生产力工具是否允许从第三方应用程序创建,读取,更新和删除文档/电子表格/演示文稿?
  • Would potential users have to have a Google account in order to use document/spreadsheet/presentation editor? 潜在用户是否必须拥有Google帐户才能使用文档/电子表格/演示文稿编辑器?
  • Could multiple users on my application access files under one Google account, if an account is needed at all? 我的应用程序中的多个用户是否可以访问一个Google帐户下的文件,如果需要帐户的话?
  • Last, is it possible to skip a Google account, and let Google docs directly access and save documents on my local server? 最后,是否可以跳过Google帐户,让Google文档直接访问并保存本地服务器上的文档?

Sorry for the crash list of questions, but if there is anyone who could help with these, it would be much appreciated. 对于问题的崩溃列表感到抱歉,但如果有人可以帮助解决这些问题,我们将不胜感激。

spryno724 spryno724

  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. 是的,见#2。
  4. I don't think 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. (2017年2月)执行摘要是您可以通过使用G Suite (以前的Google Apps)API或Google Apps脚本来实现您的设想。 TL;DR below in response to your "mini-questions". TL; DR以下是对你的“迷你问题”的回应。

  1. Yes; 是; you can do it with... 你可以用......
    • Individual app REST APIs, ie, Sheets API , Slides API , etc., or just the Google Drive API . 单独的应用REST API,即Sheets APISlides API等,或者只是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.) 请记住,Drive API用于面向文件的功能(创建,删除,导入/导出等),而各个API用于面向文档的功能(编辑,格式化等)
      • To learn about using the REST APIs, see the first few videos in this playlist , specifically videos 2, 3, and 4 to start with 要了解有关使用REST API的信息,请参阅此播放列表中的前几个视频,特别是视频2,3和4以开始
    • 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. 另一种更像是使用“服务”而不是API,但也可以通过编程方式编写CRUD G Suite文档的是Google Apps脚本 ,这是一种服务器端JavaScript应用程序,托管在Google的云中并在其中运行。 If interested, I created an Apps Script intro video for you. 如果有兴趣,我会为您创建一个Apps Script介绍视频
      • FYI, videos 5, 8, 22, and 24 from the playlist above are for Apps Script if you want to pursue that 仅供参考,上述播放列表中的视频5,8,22和24是针对Apps脚本的
      • Note that neither Google Docs nor Google Forms currently have REST APIs, but you can programmatically access them from Apps Script. 请注意,Google文档和Google表单目前都没有REST API,但您可以通过编程方式从Apps脚本访问它们。
  2. Yes, users need to have a Google account but they don't have to create a Gmail address. 是的,用户需要拥有Google帐户, 他们无需创建Gmail地址。 See this page on creating Google accounts without Gmail. 有关创建没有 Gmail的Google帐户的信息,请参阅此页 (If they do want to create a Gmail address, then they can use this page instead.) (如果他们确实想要创建Gmail地址,则可以使用此页面 。)
  3. Yes, you would use the Drive API to set the sharing permissions with your users. 是的,您可以使用Drive API为您的用户设置共享权限。 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. 您需要至少一个 Google帐户才能访问存储文件的Google云端硬盘。 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. 有关导入/导出格式/ MIME类型的更多信息,请参阅对另一个SO问题的回答。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以将 Google Apps Script Web App 发布到 G Suite Marketplace? - Is it possible to publish a Google Apps Script Web App to G Suite Marketplace? 使用 Google Apps 脚本发送的 G Suite 电子邮件未发送“邮件已阻止” - G Suite Emails Sent with Google Apps Script Are Not Delivered "Message Blocked" 事件保存/更新时的 g-suite Google 日历应用程序脚本 - g-suite Google Calender Apps script On Event Save/Update 使用 Google Apps 脚本从 G Suite 管理控制台中删除 web 应用程序 - Remove the web apps from the G Suite Admin Console by using Google Apps Script Google Suite - Apps 脚本 - 通过 API 将幻灯片下载为 PNG 文件 - Google Suite - Apps Script - Download Slides as PNG files via API 在 G-Suite Enterprise 的 Google Apps 脚本中显示 Google Picker,无需访问 GCP - Show Google Picker in a Google Apps Script in G-Suite Enterprise without access to GCP 使用第二因素身份验证在G Suite帐户上执行Google Apps脚本 - Executing Google Apps Scripts on G Suite accounts with 2nd Factor Authentication 应用程序脚本不发送 email 包含指向给定 G Suite 域上的 Google Drive 文件的链接,没有错误消息 - Apps script does not send email containing links to Google Drive files on a given G Suite domain, no error message 如何获取使用 Google Apps 脚本的 G Suite 用户列表? - How to get a list of G Suite users which are using Google Apps Script? 是否可以使用Google Apps脚本以编程方式锁定用户帐户(G Suite) - is it possible to lock a user account (g suite) programmatically using google apps scripts
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM