Features such as file transfer to/from Google Drive and creating Google docs, slides and sheets in a room can be made available by enabling Google Drive under
OAuth section in the administration settings and providing the required credentials in the input boxes below.
Google Drive API and
Google Picker API need to be activated for the project. This can be done from
Google API Console.
Google Drive API
Visit the Google API Console and create a new project by clicking on the project button in the menubar and selecting
NEW PROJECTin the modal that opens. In case of an already existing project, simply open it.
In case of a new project, enter the project details such as name and location and click on
CREATEbutton. This will take you to the dashboard from where we will enable the required APIs.
ENABLE APIS AND SERVICESand select
Google Drive API. Click on
CREATE CREDENTIALSto generate the required credentials.
Enter the API details and click on
What credentials do I need?.
Enter the details for the OAuth 2.0 client ID such as Name, Authorized origins and Authorized redirect URIs. Click on
Create OAuth client ID.
Enter the product name for the consent screen that will be displayed while requesting user permission for Rocket.Chat to access Google Drive. Click on
Copy the Client ID and the API key and paste it in the admin settings for Google Drive.
Google Picker API
Google Picker API is needed to generate the GUI to browse through and select Google Drive content.
Navigate to the project in the Google API Console and select
Google Picker API.
CREATE CREDENTIALSto generate the Google Picker key.
Copy and paste it in the corresponding admin setting.