Pandium Clients
Get out-of-the-box Pandium API clients that handle pagination, retries, rate limiting, and IDE hints so you can quickly build B2B SaaS integrations without custom plumbing.
Last updated
Was this helpful?
Was this helpful?
import ShipbobClient from '@pandium/shipbob-client'
try {
const sbClient = new ShipbobClient()
console.error('Fetching and logging out some ShipBob channels')
let recordCounter = 0
// List and print 10 channels from api
const channels = await sbClient.listChannels()
for (const record of channels) {
if (recordCounter > 10) break
console.error(record.id)
recordCounter++
}
} catch (error) {
console.error(':x: Unexpected ShipBob error.')
console.error(error)
}