Google Apps Integration

etou amane 于 2024/10/27 04:54 最后修改

This is the code for the Google Apps extension, allowing to integrate XWiki with Google's editing application (Google Docs, Spreadsheet, Presentations and Drawing). Thanks to this application it possible to easily import a Google Apps document as an attachment in XWiki (in multiple formats) and also to launch editing of an XWiki attachment in Google Apps. Once your editing session is finished you can reimport it in XWiki.

To use this feature you will first need to generated OAuth2 credentials on the Google Developer Console and obtain a secret key for the OAuth authentication integration. You will need to configure these keys in the Google Apps section of the XWiki Preferences

You can verify your installation by visiting the page TestDocumentList, which should list you 10 documents of your Google Docs instance.

Once you have properly configured the application, you will be able to see the feature in the Attachments section of XWiki pages. You can either click on the edit link next to each attachment or use the "Import from Google Apps" button.

You can also use the "drive" macro to insert a Google Document in your page. See DriveMacroTest to try it out.