LedeWire SDK for Node.js environments.
Provides the complete API surface for building merchant stores,
managing content, authors, and reporting.
Example
import { createClient } from'@ledewire/node'
// Full access with API key + secret (write operations). The client logs in // with the key before its first authenticated request; no login call needed. constclient = createClient({ apiKey:process.env.LEDEWIRE_API_KEY, apiSecret:process.env.LEDEWIRE_API_SECRET, }) // To read the key's store_id, log in explicitly once (it is not repeated) const { store_id } = awaitclient.auth.loginWithApiKey({ key:process.env.LEDEWIRE_API_KEY, secret:process.env.LEDEWIRE_API_SECRET, }) constsummary = awaitclient.merchant.sales.summary(store_id)
// View-only with API key only (read operations) constviewClient = createClient({ apiKey:process.env.LEDEWIRE_API_KEY })
// Merchant email/password auth — logs in and returns stores in one call constclient = createClient() const { stores } = awaitclient.merchant.auth.loginWithEmailAndListStores({ email, password }) conststoreId = stores[0].id
@ledewire/node
LedeWire SDK for Node.js environments. Provides the complete API surface for building merchant stores, managing content, authors, and reporting.
Example
See
https://docs.ledewire.org for guides and examples