getValidation

Validates an access key, retrieving information about it.

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
package
getValidation
(,
string authToken
,
const bool async
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

authToken string

Authorisation token to validate.

async bool

Whether or not the validation should be done asynchronously, using fibers.

caller string

Name of the calling function.

Return Value

Type: auto

A JSONValue with the validation information JSON of the current authorisation header/client ID pair.

Throws

UnexpectedJSONException on unexpected JSON received. TwitchQueryException on other failure.