Types of Study Material Requests available in the WaniKani API.

interface WKStudyMaterialRequests {
    create: (
        payload: WKStudyMaterialCreatePayload,
        options?: WKRequestPostPutOptions,
    ) => WKRequest;
    get: (
        idOrParams?: number | WKStudyMaterialParameters,
        options?: WKRequestGetOptions,
    ) => WKRequest;
    update: (
        id: number,
        payload: Partial<WKStudyMaterialBaseData>,
        options?: WKRequestPostPutOptions,
    ) => WKRequest;
}

Properties

Properties

create: (
    payload: WKStudyMaterialCreatePayload,
    options?: WKRequestPostPutOptions,
) => WKRequest

Create a new Study Material for a given Subject via the WaniKani API.

Type declaration

get: (
    idOrParams?: number | WKStudyMaterialParameters,
    options?: WKRequestGetOptions,
) => WKRequest

Get a Study Material or Study Material Collection from the WaniKani API.

Type declaration

update: (
    id: number,
    payload: Partial<WKStudyMaterialBaseData>,
    options?: WKRequestPostPutOptions,
) => WKRequest

Update a Study Material for a given Subject.

Type declaration