docs

Home All functions Legacy functions Categories

vuOAuthStatus()

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

Purpose

Queries OAuth status for a specific provider/account token store and returns provider/core status text.

Parameters

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

Return value / error codes

Example (Clarion)

MAP
  MODULE('vuMail.dll')
    vuOAuthStatus(*CSTRING Provider,*CSTRING AccountKey,*CSTRING OutText,LONG OutTextLen),SIGNED,PROC,PASCAL,RAW,NAME('vuOAuthStatus')
  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 = vuOAuthStatus(provider, accountKey, outText, outLen)
MESSAGE('Status rc=' & rc & '| ' & outText)

Notes

Home All functions Legacy functions Categories