/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import dotenv from "dotenv";
dotenv.config();
/**
 * Example usage of the @polar-sh/sdk SDK
 *
 * To run this example from the examples directory:
 * npm run build && npx tsx organizationsListOrganizations.example.ts
 */

import { Polar } from "@polar-sh/sdk";

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

async function main() {
  const result = await polar.organizations.listOrganizations({});

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

main().catch(console.error);
