Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Latest commit

 

History

History

variant

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

🧟 Variant

Docs

import { LemonsqueezyClient } from "lemonsqueezy.ts";

const client = new LemonsqueezyClient("YOUR_API_KEY");

const variant = await client.retrieveVariant({
  id: "...",
});

const variants = await client.listAllVariants();
import { retrieveVariant, listAllVariants } from "lemonsqueezy.ts/variant";

const variant = await retrieveVariant({
  apiKey: "YOUR_API_KEY",
  id: "...",
});

const variants = await listAllVariants({
  apiKey: "YOUR_API_KEY",
});