Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 389 Bytes

File metadata and controls

20 lines (15 loc) · 389 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.listOrganizations({});

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

run();