Client Libraries
Official SDKs
Start building faster with official client libraries for your favorite programming language. Fully typed, well documented, and regularly updated.
Quick Start Examples
Get up and running in minutes
JavaScript
import { Nowaitn } from '@nowaitn/sdk';
const client = new Nowaitn('sk_live_xxx');
// Add a guest to queue
const guest = await client.guests.create('queue_123', {
name: 'John Smith',
phone: '+61412345678',
partySize: 4
});
console.log(`Position: ${guest.position}`);
Python
from nowaitn import Nowaitn
client = Nowaitn("sk_live_xxx")
# Add a guest to queue
guest = client.guests.create(
queue_id="queue_123",
name="John Smith",
phone="+61412345678",
party_size=4
)
print(f"Position: {guest.position}")
PHP
use Nowaitn\Client;
$client = new Client('sk_live_xxx');
// Add a guest to queue
$guest = $client->guests->create('queue_123', [
'name' => 'John Smith',
'phone' => '+61412345678',
'party_size' => 4
]);
echo "Position: " . $guest->position;
Ruby
require 'nowaitn'
client = Nowaitn::Client.new('sk_live_xxx')
# Add a guest to queue
guest = client.guests.create(
queue_id: 'queue_123',
name: 'John Smith',
phone: '+61412345678',
party_size: 4
)
puts "Position: #{guest.position}"
SDK Features
All our SDKs come with these features out of the box
Type Safety
Full type definitions for better IDE support
Auto Retries
Automatic retry logic with exponential backoff
Error Handling
Typed exceptions for all API errors
Pagination
Automatic pagination helpers
Logging
Built-in request/response logging
Rate Limiting
Automatic rate limit handling
Timeout Config
Configurable request timeouts
Open Source
MIT licensed, contributions welcome