Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetOAuthToken – PB Docs 2019 – PowerBuilder Library

GetOAuthToken – PB Docs 2019

GetOAuthToken

PowerScript function

Description

Gets the OAuth 2.0 access token.

Applies to

RESTClient objects

Syntax

Argument

Description

objectname

The name of the RESTClient object from which you want to
get the OAuth 2.0 access token.

tokenRequest

The OAuth2.0 Access Token Request object.

token

The access token returned from the server.

Return value

Integer. Returns 1 if the function succeeds and a negative value if
an error occurs. If any argument’s value is null, the method returns
null.

1 — Success

-1 — General error

-2 — Invalid URL

-3 — Cannot connect to the Internet

-4 — Timeout

-5 — Failed to get token

-11 — The parameter is invalid

-12 — Invalid grant

-13 — Invalid SCOPE

Example

The following example adds a new data records and submits it to the
server.

See also

SetOAuthToken


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x