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 Flag!"async" async
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

authToken string

Authorisation token to validate.

async Flag!"async"

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.

Meta