import { LemonsqueezyClient } from "lemonsqueezy.ts";
const client = new LemonsqueezyClient("YOUR_API_KEY");
const orderItem = await client.retrieveOrderItem({
id: "...",
});
const orderItems = await client.listAllOrderItems();
import {
retrieveOrderItem,
listAllOrderItems,
} from "lemonsqueezy.ts/orderItem";
const orderItem = await retrieveOrderItem({
apiKey: "YOUR_API_KEY",
id: "...",
});
const orderItems = await listAllOrderItems({
apiKey: "YOUR_API_KEY",
});