| Home | All functions | Legacy functions | Categories |
vuOAuthRefresh(*CSTRING Provider,*CSTRING AccountKey,*CSTRING OutText,LONG OutTextLen),SIGNED,PROC,PASCAL,RAW,NAME('vuOAuthRefresh')
Refreshes OAuth access token state for the specified provider/account pair.
| Parameter | Type | Description |
|—|—|—|
| Provider | *CSTRING | Provider identifier. |
| AccountKey | *CSTRING | Account key identifier. |
| OutText | *CSTRING | Output buffer receiving refresh status text. |
| OutTextLen | LONG | Size of OutText buffer in bytes. |
>= 0: Result code from core OAuth refresh operation.-9: Core unavailable or exception.MAP
MODULE('vuMail.dll')
vuOAuthRefresh(*CSTRING Provider,*CSTRING AccountKey,*CSTRING OutText,LONG OutTextLen),SIGNED,PROC,PASCAL,RAW,NAME('vuOAuthRefresh')
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 = vuOAuthRefresh(provider, accountKey, outText, outLen)
IF rc < 0
MESSAGE('Refresh failed: ' & rc & '| ' & outText)
END
| Home | All functions | Legacy functions | Categories |