wanikani v0.1.0 Wanikani.Subject

Module for the requests to the Subjects endpoint

Summary

Functions

Get a list of subjects (radicals, kanji, vocabulary)

Functions

get(subject_id, client \\ Wanikani.Api)

Get a single subject.

  Wanikani.Subject.get(2)
list(params \\ %{}, client \\ Wanikani.Api)

Get a list of subjects (radicals, kanji, vocabulary).

Accepted params:

  • ids String Integers Return results tied to ids
  • type String radical, kanji, vocabulary Return subjects of the specified type
  • slugs String String Return subjects of the specified slug
  • levels String Integers between 1 and 60 Return subjects at the specified levels
  • updated_after String ISO8601 timestamp in the past Return results which have been updated after the timestamp
  Wanikani.Subject.list(%{type: "radical", levels: "1,2"})
  Wanikani.Subject.list(%{type: "kanji", slug: "月"})