Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 399 Bytes

USAGE.md

File metadata and controls

21 lines (16 loc) · 399 Bytes
import { Polar } from "@polar-sh/sdk";

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

async function run() {
  const result = await polar.organizations.list({});

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

run();