Now that you have private keys and tokens providing access to your Google Drive images, you can set up the Google Drive web service (GDWS). This topic helps you configure this service.
In the GoogleDriveWebService
folder, open the Web.config
file and find the default AppSettings section:
<configuration> <appSettings> <add key="OAuthClientSecretPath" value="..\data\client_secret.json" /> <add key="OAuthClientCredentialPath" value="" /> <add key="ApiSecurityKey" value="UniqueSecurityKey" /> <add key="HttpHeaderAllowOriginDomains" value="*" /> <add key="UnsafeHttpWebApiEnabled" value="false" /> <add key="ApplicationDomain" value="" /> <add key="ShowSharedWithMeFiles" value="false" /> </appSettings> ... </configuration>
Here, you can specify the following parameters for both Google Drive account types:
False
, and you can only call the Web API through the secure protocol (HTTPS)."https://h2.customerscanvas.com"
.Also, Web.config
contains type-specific parameters.
If you have a user account, then you need to specify the following mandatory parameters:
client_secret.json
file.If you have a service account, specify the following mandatory parameters:
To run this service, create a pool with the NetworkService identity and add a website to the Sites list in IIS Manager.
The IIS pool must have Read and Write permissions to the folder where you keep your token file.