SuitePortal
DevelopersGuides

Code Examples

Practical code examples for common use cases

Code Examples

This page contains practical code examples for common SuitePortal API use cases.

JavaScript/TypeScript

import { SuitePortal } from '@suiteportal/sdk';

const client = new SuitePortal({
  apiKey: process.env.SUITEPORTAL_API_KEY
});

// List customers
const customers = await client.customers.list();

Python

from suiteportal import SuitePortal

client = SuitePortal(api_key='YOUR_API_KEY')
customers = client.customers.list()

cURL

curl https://api.suiteportal.io/v1/customers \
  -H "Authorization: Bearer YOUR_API_KEY"