def client
      Faraday.new(url: Wanikani::API_ENDPOINT) do |conn|
        conn.response :json, :content_type => /\bjson$/
        conn.adapter Faraday.default_adapter
      end
    end
def client
      Faraday.new(url: Wanikani::API_ENDPOINT) do |conn|
        conn.response :json, :content_type => /\bjson$/
        conn.adapter Faraday.default_adapter
      end
    end
Sets up the HTTP client for communicating with the WaniKani API.

 @return [Faraday::Connection] the HTTP client to communicate with the
   WaniKani API.