docs

Home All functions Legacy functions Categories

vuOAuthClear()

vuOAuthClear(*CSTRING Provider,*CSTRING AccountKey,*CSTRING OutText,LONG OutTextLen),SIGNED,PROC,PASCAL,RAW,NAME('vuOAuthClear')

Purpose

Removes OAuth state/token information for the specified provider/account key.

Parameters

| Parameter | Type | Description | |—|—|—| | Provider | *CSTRING | Provider identifier. | | AccountKey | *CSTRING | Account key identifier. | | OutText | *CSTRING | Output buffer receiving clear status text. | | OutTextLen | LONG | Size of OutText buffer in bytes. |

Return value / error codes

Example (Clarion)

MAP
  MODULE('vuMail.dll')
    vuOAuthClear(*CSTRING Provider,*CSTRING AccountKey,*CSTRING OutText,LONG OutTextLen),SIGNED,PROC,PASCAL,RAW,NAME('vuOAuthClear')
  END
END

rc         LONG
provider   CSTRING(64)
accountKey CSTRING(128)
outText    CSTRING(1024)
outLen     LONG

provider   = 'Microsoft'
accountKey = 'user@example.com'
outText    = ''
outLen     = SIZE(outText)

rc = vuOAuthClear(provider, accountKey, outText, outLen)
IF rc < 0
  MESSAGE('Clear failed: ' & rc & '| ' & outText)
END

Notes

Home All functions Legacy functions Categories