| Home | All functions | Legacy functions | Categories |
vuOAuthGetDeviceInfo(*CSTRING Provider,*CSTRING AccountKey,*CSTRING OutUrl,LONG OutUrlLen,*CSTRING OutCode,LONG OutCodeLen),SIGNED,PROC,PASCAL,RAW,NAME('vuOAuthGetDeviceInfo')
Returns the verification URL and user code captured by the most recent matching vuOAuthBeginLogin() call.
| Parameter | Type | Description |
|—|—|—|
| Provider | *CSTRING | Provider identifier used in BeginLogin. |
| AccountKey | *CSTRING | Account key used in BeginLogin. |
| OutUrl | *CSTRING | Output buffer receiving verification URL text. |
| OutUrlLen | LONG | Size of OutUrl in bytes. |
| OutCode | *CSTRING | Output buffer receiving user verification code. |
| OutCodeLen | LONG | Size of OutCode in bytes. |
1: Success.-2: No prior BeginLogin context was captured.-3: Provider/account mismatch with captured BeginLogin context.-4: URL and/or code not available.MAP
MODULE('vuMail.dll')
vuOAuthGetDeviceInfo(*CSTRING Provider,*CSTRING AccountKey,*CSTRING OutUrl,LONG OutUrlLen,*CSTRING OutCode,LONG OutCodeLen),SIGNED,PROC,PASCAL,RAW,NAME('vuOAuthGetDeviceInfo')
END
END
rc LONG
provider CSTRING(64)
accountKey CSTRING(128)
outUrl CSTRING(1024)
outUrlLen LONG
outCode CSTRING(128)
outCodeLen LONG
provider = 'Microsoft'
accountKey = 'user@example.com'
outUrl = ''
outUrlLen = SIZE(outUrl)
outCode = ''
outCodeLen = SIZE(outCode)
rc = vuOAuthGetDeviceInfo(provider, accountKey, outUrl, outUrlLen, outCode, outCodeLen)
IF rc = 1
MESSAGE('Verify at: ' & outUrl & '| Code: ' & outCode)
ELSE
MESSAGE('GetDeviceInfo failed: ' & rc)
END
Provider and AccountKey must match the values used for the captured BeginLogin call.| Home | All functions | Legacy functions | Categories |