LedeWire SDK API Reference
    Preparing search index...

    Function init

    • Initialises a LedeWire browser client. This is the primary entry point for the browser SDK.

      Parameters

      Returns BrowserClient

      <script src="https://cdn.jsdelivr.net/npm/@ledewire/browser@1/dist/ledewire.min.js"></script>
      <script>
      const lw = Ledewire.init({ apiKey: 'your_api_key' })
      const state = await lw.checkout.state('content-id')
      </script>
      import { init } from '@ledewire/browser'
      const lw = init({ apiKey: 'your_api_key' })