AccessToken
PowerScript function
Description
Sends a request to get the token information.
Applies to
Syntax
|
1 |
objectname.AccessToken ( TokenRequest tokenRequest, TokenResponse tokenResponse ) |
|
Argument |
Description |
|---|---|
|
objectname |
A reference to the OAuthClient object. |
|
tokenRequest |
A reference to the TokenRequest object specifying the request information. |
|
tokenResponse |
A reference to the TokenResponse object into which the function returns the object. |
Return value
Integer.
Returns the value as follows. If any argument’s value is null, the
method returns null.
1 — Success
-1 — A general error occurred
-2 — Invalid URL
-3 — Cannot connect to the Internet
-4 — Timeout
Examples
The following example shows the use of the AccessToken function to
get the token information:
|
1 2 3 4 5 6 7 8 |
int li_return OAuthClient lnv_OAuthClient TokenRequest lnv_TokenRequest TokenResponse lnv_TokenResponse lnv_OAuthClient = create OAuthClient li_return = lnv_OAuthClient.accesstoken(lnv_TokenRequest, lnv_TokenResponse) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest