TokenResponse object

The TokenResponse object can get the information of the access token response returned by the authorization server, including the access token, the refresh token, the HTTP response header etc.

Properties

TokenResponse property

Datatype

Description

ClassDefinition

PowerObject

An object of type PowerObject containing information about the class definition of the object or control.


Functions

TokenResponse function

Datatype returned

Description

ClassName in PowerScript Reference

String

Returns the name assigned to the object.

GetAccessToken in PowerScript Reference

String

Gets the access token returned by authorization server.

GetBody in PowerScript Reference

Integer

Gets the response body into string.

GetContextService in PowerScript Reference

Integer

Creates a reference to a context-specific instance of the specified service.

GetExpiresIn in PowerScript Reference

Long

Gets lifetime of the access token returned by authorization server.

GetHeader in PowerScript Reference

String

Gets the response header by name.

GetHeaders in PowerScript Reference

String

Gets the header of all responses by name.

GetParent in PowerScript Reference

PowerObject

Returns a reference to the name of the parent object.

GetRefreshToken in PowerScript Reference

String

Gets the refresh token returned by authorization server.

GetStatusCode in PowerScript Reference

Long

Gets the response status code.

GetStatusText in PowerScript Reference

String

Gets the response status description.

GetTokenError in PowerScript Reference

String

Gets the error information returned by the Authorization Server if the request privilege grant failed.

GetTokenType in PowerScript Reference

String

Gets the access token type returned by authorization server.

TypeOf in PowerScript Reference

Object

Returns the type of the object.