.NET Server
- Product Home
- Features
- Prerequisites
- Demo: WebDAV
- Demo: CalDAV / CardDAV
-
Download
-
Server Examples
-
Creating WebDAV Server
-
Creating G Suite Server
-
Creating CalDAV & CardDAV Server
- Activating Product
-
Accessing Server
-
CalDAV
-
CardDAV
-
On Windows
- On Mac OS X
- Using iWork on iPad
- Using Konqueror
- Using Gnome Nautilus
- Clients Comparison
-
- Class Library
-
Previous Versions
-
V2
- Product Home
- Explore Features
- System Requirements
- Server Samples
-
Creating WebDAV Server
- How to Upgrade to V2
- Class 1 Server
- Class 2 Server
- Working with MS Office
-
Uploading Files
- Downloading Files
- DeltaV Server
-
IIS / ASP.NET Hosting
- Debugging
-
Authentication
- Custom Handlers
- Transactions
- Hyperlinked Docs
- Troubleshooting
- Class Library
- FAQ
-
- Help & Support
Creating Google Service Account and Enabling Google API
In this article
Creating Google Service Account and Enabling Google API
In this article, we will create a new Google project, add a service account to the project, generate a service account ID and a private key, enable Google Drive API and finally validate the domain on which your server is running. The Google service account ID (client_email) and a private key (private_key) will be used when creating the聽 GSuiteEngineAsync聽class instance.聽The domain validation is required to sent Google Drive notifications about document changes to your server.
If you are running your server in the development mode, on the localhost, the domain validation is not required. However, in this case, Google Drive notification will not reach your server and file changes will be saved only when the user closes the G Suite editor and the document is unlocked.
-
Create a new Google project. Go to Google Cloud Platform聽 https://console.cloud.google.com/聽and select IAM & Admin -> Service Accounts.聽
Select Create.
Provide a project name.
-
Create a service account.
Provide a service account name.聽Note the "Service account ID" field, which contains "edit-preview-documents@edit-my-dms-files-in-g-suite.iam.gserviceaccount.com" value. You will use this ID when creating the聽 GSuiteEngineAsync聽class instance, passing it as the e-mail parameter. Do not confuse it with your Google account e-mail. This field will be present in the JSON file generated when creating a private key under the "client_email" name.
Select "Create".
Live service account permissions to default.
Create a private key.聽
Select JSON, select Create.
Save the private key.聽You will be using "private_key" and "client_email" values from this file when creating GSuiteEngineAsync class.
-
Enable the Google Drive API.聽Go to APIs & Services -> Library.
Find the Google Drive API.
Enable the Google Drive API.
-
Validate domain. Here you will confirm the ownership of the聽domain on which your IT Hit Server Engine is running.
Go to APIs & Services -> Domain Verification.
Follow Goggle domain verification guidelines to verify your domain.