GetAccessToken

Description

Gets the access token returned by the authorization server.

Applies to

TokenResponse objects

Syntax

objectname.GetAccessToken ( )

Argument

Description

objectname

A reference to the TokenResponse object in which you want to get the access token.


Return value

String.

Returns the access token if it succeeds and empty string ("") if an error occurs.

Examples

The following example shows the use of the GetAccessToken function to get the access token:

string ls_accesstoken
TokenResponse lnv_TokenResponse

ls_accesstoken = lnv_TokenResponse.getaccesstoken()

See also

GetBody

GetExpiresIn

GetHeader

GetHeaders

GetRefreshToken

GetStatusCode

GetStatusText

GetTokenError

GetTokenType