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

Generate Token Info from String

Generate an FGoogleSheetsTokenInfo struct from a string. This is the same data found in the json key file downloaded from your Google Service Account.
If you prefer to just load the file, call GenerateTokenInfoFromFile instead.
This function is for users who wish to not keep the private key in an accessible file. Alternatively, you can use a Make node.

Inputs

In
Exec

In Json String
String

The contents of a private key file

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.