Initialization options for a WKRequestFactory.

interface WKRequestFactoryInit {
    apiToken: string;
    customHeaders?: Record<string, string>;
    revision?: "20170710";
}

Properties

apiToken: string

The WaniKani API Token to use in the requests.

customHeaders?: Record<string, string>

Any additional headers to be added to all requests.

revision?: "20170710"

The WaniKani API Revision to use in the requests; if not set, the factory will default to the current API Revision.