Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 438 Bytes

USAGE.md

File metadata and controls

24 lines (19 loc) · 438 Bytes
import { Polar } from "@polar-sh/sdk";

const polar = new Polar({
  accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
});

async function run() {
  const result = await polar.externalOrganizations.list({
    page: 1,
    limit: 10,
  });

  for await (const page of result) {
    // Handle the page
    console.log(page);
  }
}

run();