Key File Path

KeyFilePath

Key Name Default Value Required

KeyFilePath

None

Yes, if OAuth Mechanism is set to Service Authentication (OAuthMechanism=0) and KeyFile is not set.

Description

When configuring Service Authentication, set this option to the full path to the .p12 or .json key file that is used to authenticate the service account email address.

When configuring User Authentication with a .json key file, set this option to the full path to the .json key file containing your OAuth 2.0 credentials. The file must define a JSON object of type authorized_user containing the refresh token, client ID, and client secret associated with your user account. For example, the .json key file must be written in the following format:

{

"type": "authorized_user",

"client_id": "[YourClientID]",

"client_secret":"[YourClientSecret]",

"refresh_token":"[YourRefreshToken]"

}