Media endpoints let you save pictures and recording files from visual support sessions. SightCall supports email, HTTPS, Amazon S3 buckets, SFTP, Microsoft Azure, and Google Drive media endpoints.
This article explains how to set up Google Drive as a media endpoint.
Requirements
To obtain the necessary credentials from the Google Cloud Console and authorize Sightcall to upload to your Google Drive, you must follow the instructions below:
Step 1: Create a project and enable the Google Drive API
-
Go to the Google Cloud Console (console.cloud.google.com) and create a new project.
-
In the project dashboard, click on "APIs & Services" in the left menu.
-
Click on "Library" and search for "Google Drive API".
-
Enable the Google Drive API for your project.
Step 2: Create service account credentials
-
In the "APIs & Services" section, click on "Credentials".
-
Click on "Create credentials" and select "Service account" from the dropdown menu.
-
Provide a name for your service account and click on "Create and Continue".
-
Now select a role by choosing Project > Editor.
-
Skip the last step
-
Now, go back to the Credentials page and click on the recently created Service Account, go to the "Keys" tab and press the "Add Key" button to create a new key.
-
Select JSON and then a new json file should start downloading. Keep the file, as it needs to be added in the admin page when setting the media endpoint.
Step 3: Share Google Drive folders with the service account
-
Open Google Drive in a web browser (drive.google.com).
-
Right-click on the folder (or create a new one) where you want Sightcall to be able to upload and click on "Share"
-
Add the email address associated with the previosuly created service account (found in the JSON file under the "client_email" key) and grant it “Editor“ access permissions.
-
Open the folder in a new tab and copy its id from the browser’s navigation bar, as it will need to be provided along with the JSON file in the admin page.
PS: The provided folder will be considered as the root folder, any upload to its nested folders can also be done by setting the filename of the media in the admin page (any nested folders can be created automatically by Sightcall, only the root folder needs to be created in advance and given permission to Sightcall).