English 中文(简体)
Is there a G Suite/Google Apps API?
原标题:

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

最佳回答
  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.
问题回答

(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.




相关问题
get atom feed and display in html (google-api)

Can someone help me out on this. I have a problem with the return results from an google-api call I want to echo them back as html, but firefox keeps displaying a feed page. In IE, I get an error ...

Using Google App Engine With My Dreamhost Registered Domain

I have registered a domain example.com using dreamhost, and currently have a standard wordpress blog set up on www.example.com. I d like to have appengine.example.com point to my Google Appengine ...

google calendar java api

I have an object of CalendarEntry I know that http://www.google.com/calendar/feeds/example@gmail.com/allcalendars/full is the feed url of all calendars but how I can get this feed url from ...

Google API for Internationalization + asp.net

Hai guys, Is there any google api for Internationalization with asp.net or any other open source api for it because i want my users to view my site in multiple indian languages like tamil,malayalam,...

google API translate, only a div into page

I have an HTML page, and I would use Google Translate to translate only a div into my page. <div id="google_translate_element"></div><script> function googleTranslateElementInit() { ...

How to use doctest on a Client script?

I am playing with Google Calendar API, creating some useful function. I another hand, I want to do it right puting some useful doctest and starting agile development. How to write doctest since the ...

using google.loader.ClientLocation

what will be best way to use using google.loader.ClientLocation to get client country & city name in jquery Thanks

热门标签