GSheets Operator > Google Sheets Operator > Generate Token Info from File

Generate Token Info from File

Generate an FGoogleSheetsTokenInfo struct from a file.
If you have a json key file downloaded from your Google Service Account, you can create this struct by loading the file instead of copying the data into a Make node.
If you wish not to keep the file accessible on disk, call GenerateTokenInfoFromString() instead.

Inputs

In
Exec

In Path to File
String

Where on disk the key file resides.

Desired Seconds Until Expiration
Integer

How long should this token last? Min is 1 second, Max is 3600 seconds (1 hour). Generally it's best practice to keep the expiration short and generate a new token for each operation.

Outputs

Out
Exec

Out Token Info
Google Sheets Token Info Structure

A FGoogleSheetsTokenInfo struct used to create and authenticate a UGoogleSheetsWebToken.

Return Value
Boolean

Returns true if the file could be loaded, parsed, and had the required information to create a token.