Question

J'ai eu plusieurs questions concernant l'utilisation d'une "API G Suite / Google Apps." Je voudrais intégrer une sorte de documents / tableur / gestion de présentation directement dans une application que je construis.

Ce service devrait avoir la possibilité d'importer et d'exporter vers DOC / XLS / PPT / PDF etc ..., donc quelque chose comme Bureau Feng (si vous avez déjà entendu parler), ne conviendrait pas à ce besoin.

A cet effet, je suis à la recherche dans une chose existe. Avant que je commencerais cette entreprise, je me demandais:

  • Est-ce que les outils de productivité G Suite / Google Apps permettent des documents / feuilles de calcul / présentations à créer, lire, mis à jour et supprimé à partir d'une application tierce?
  • Would utilisateurs potentiels Vous pour avoir un compte Google afin d'utiliser le document / tableur / éditeur de présentation?
  • pourrait plusieurs utilisateurs sur mes fichiers d'accès aux applications sous un compte Google, si un compte est nécessaire à tous?
  • Enfin, il est possible de sauter un compte Google, et de laisser Google docs accéder directement et enregistrer des documents sur mon serveur local?

Désolé pour la liste crash des questions, mais s'il y a quelqu'un qui pourrait l'aider avec ces derniers, il serait très apprécié.

spryno724

Était-ce utile?

La solution

  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.

Autres conseils

(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.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top