Listens for messages containing Google Drive links, then compares the file permissions with the stream membership (excluding bots) and adds any missing members to the file.
demo.mp4
- Add the appropriate service account and private key details into
src/main/resources/application.yaml
- Follow the steps in the next section, then add the resulting
credentials.json
file from Google Cloud Console intosrc/main/resources
- Upon initial launch, visit the URL presented in the logs to perform the OAuth authorisation flow
To get started integrating with the Google Drive, you need to enable the Drive API within your app's Cloud Platform project and provide configuration details. This gives you access to the API as well as access to UI integration features.
To enable the Drive API, complete these steps:
- Go to the Google API Console
- Select a project
- In the sidebar on the left, click on APIs & Services and select APIs
- From the Library list of available APIs, click the Google Drive API link and click Enable API.
Once you have enabled the Google Drive API you will need to create credentials that your project will use to interact with the APIs.
To create credentials, complete these steps:
- Within the Google Drive API click on Create Credentials
- Choose the OAuth client ID option
- In the next screen, Application Type should be selected as Web Application
- Then provide a meaningful name for your user account, (e.g. Gdrive Bot)
- Then click on Create
- You will then see the following screen to download your OAuth client credentials in the form of a JSON file.