PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV Mobile 25 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
gpwRemoteConnect (Function)
In french: gpwConnecteDistant
Allows you to connect a remote user.
Example
arrOAuthParam is array of gpwOAuthParameters
arrOAuthParam = gpwListOAuthParameters()
IF ErrorOccurred THEN
Error(ErrorInfo())
RETURN
END
 
Parameters is gpwOAuthParameters = arrOAuthParam[1]
sCode is string = gpwAuthLogin(Parameters)
IF ErrorOccurred THEN
Error(ErrorInfo())
RETURN
END
 
User is gpwUser
sToken is string
(User, sToken) = gpwRemoteConnect(Parameters, sCode)
IF ErrorOccurred THEN
Error(ErrorInfo())
RETURN
END
Syntax

Connecting a remote user identified by their login and password Hide the details

(<Token>, <User>) = gpwRemoteConnect(<Login> , <Password>)
<Token>: Character string
Login token. This token must be used to connect to the application (3rd syntax of gpwRemoteConnect).
<User>: gpwUser variable
gpwUser variable with the information of the connected user.
<Login>: Character string (with quotes)
Login or login email.
<Password>: Character string (with quotes)
User password.

Connecting a remote user via OAuth Hide the details

(<Token>, <User>) = gpwRemoteConnect(<Parameters> , <Code>)
<Token>: Character string
Login token. This token must be used to connect to the application (3rd syntax of gpwRemoteConnect).
<User>: gpwUser variable
gpwUser variable with the information of the connected user.
<Parameters>: gpwOAuthParameters variable
Name of the gpwOAuthParameters variable that corresponds to the parameters of the OAuth connection for the application.
<Code>: Buffer
User identification code returned by gpwAuthLogin.

Re-connecting a user via their login token Hide the details

<User> = gpwRemoteConnect([<Token>])
<User>: gpwUser variable
gpwUser variable with the information of the connected user.
<Token>: Optional character string
Re-login token provided by one of the previous syntaxes of gpwRemoteConnect.
Component : wd250android.jar
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment