Skip to content

ClientSecret


Overview

The ClientSecret property of the Account class is used to store and retrieve the Client Secret associated with the account. This key is typically used for authentication when making API requests on behalf of the account.

Syntax

vba
' To get the Client Secret
Account.ClientSecret

' To set the Client Secret
Account.ClientSecret = "your_client_Secret_here"

Return Value

When getting the ClientSecret, it returns a String that represents the Client Secret of the account.

Example

This example demonstrates how to set and retrieve the Client Secret for an account to ensure it's properly stored:

vba
Sub UpdateAndDisplayClientSecret(acc As Account)
    ' Set the client secret for the account
    acc.ClientSecret = "12345-abcde-67890-fghij"

    ' Retrieve and display the client secret
    MsgBox "The Client Secret for the account is: " & acc.ClientSecret, vbInformation
End Sub