GetTokenError

Description

Gets the error information returned by the authorization server if the request privilege grant failed.

Applies to

TokenResponse objects

Syntax

objectname.GetTokenError ( string type, string description, string uri, string state )

Argument

Description

objectname

A reference to the TokenResponse object in which you want to get the error information.

type

A string specifying the error type.

description

A string specifying the error description.

uri

A string specifying the error URI.

state

A string specifying the error state.


Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null, the method returns null.

Examples

The following example shows the use of the GetTokenError function to get the error information:

int li_return
string ls_type, ls_description, ls_uri, ls_state
TokenResponse lnv_tokenResponse

li_return = lnv_tokenResponse.gettokenerror(ls_type, ls_description, ls_uri, ls_state)

See also

GetAccessToken

GetBody

GetExpiresIn

GetHeader

GetHeaders

GetRefreshToken

GetStatusCode

GetStatusText

GetTokenType