OAuthClient object

The OAuthClient object provides interfaces for obtaining the access token and protected resources.

Properties

OAuthClient property

Datatype

Description

ClassDefinition

PowerObject

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


Events

OAuthClient event

Occurs

Constructor in PowerScript Reference

Immediately before the Open event occurs in the window.

Destructor in PowerScript Reference

Immediately after the Close event occurs in the window.


Functions

OAuthClient function

Datatype returned

Description

AccessToken in PowerScript Reference

Integer

Sends a request to get token information.

ClassName in PowerScript Reference

String

Returns the name assigned to the object.

GetContextService in PowerScript Reference

Integer

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

GetParent in PowerScript Reference

PowerObject

Returns a reference to the name of the parent object.

PostEvent in PowerScript Reference

Boolean

Adds the specified event to the end of the event queue for the specified object.

RequestResource in PowerScript Reference

Integer

Sends a request to get resource.

TriggerEvent in PowerScript Reference

Integer

Triggers a specified event in the control and executes the script for the event

TypeOf in PowerScript Reference

Object

Returns the type of the object.