Initialize the Request Factory.
Initialization options for the factory.
Returns a collection of requests pertaining to Assignments on the WaniKani API.
Returns a collection of requests pertaining to Level Progressions on the WaniKani API.
Returns a collection of requests pertaining to Resets on the WaniKani API.
Returns a collection of requests pertaining to Reviews on the WaniKani API.
Returns a collection of requests pertaining to Review Statistics on the WaniKani API.
Returns a collection of requests pertaining to Spaced Repetition Systems (SRS) on the WaniKani API.
Returns a collection of requests pertaining to Spaced Repetition Systems (SRS) on the WaniKani API.
Returns a collection of requests pertaining to Study Materials on the WaniKani API.
Returns a collection of requests pertaining to Subjects on the WaniKani API.
Returns a collection of requests pertaining to Summaries on the WaniKani API.
Returns a collection of requests pertaining to Users on the WaniKani API.
Returns a collection of requests pertaining to Voice Actors on the WaniKani API.
Add additional custom headers to be used in all requests generated by the factory.
An object containing HTTP headers and their values.
The factory, with the added custom headers.
Sets a new WaniKani API Revision to use in requests returned by the factory.
The WaniKani API Revision to use.
The factory, with the newly set WaniKani API Revision.
Sets a new WaniKani API Token to use in requests returned by the factory.
The new WaniKani API Token to use.
The factory, with the newly set WaniKani API Token.
Sets the custom headers for all requests gerated by the factory to those passed to this function, removing any previously set custom headers, and keeping API Revision and Token settings.
An object containing HTTP headers and their values.
The factory, with the only custom headers being those passed to this function.
Static
validateValidates custom-set headers to make sure type checking isn't circumvented.
The header key, e.g. Accpet
or X-Forwarded-For
The header value, e.g. application/json
or 192.168.1.1
A factory for preparing requests to the WaniKani API, with methods that return a WKRequest that can be used in any HTTP API/Library to make the request.