Configuration

Configure your WestFax integration with these advanced settings.

Client Configuration

// Advanced client configuration
$config = [
    'api_key' => 'your-api-key',
    'api_secret' => 'your-api-secret',
    'environment' => 'production',
    'timeout' => 30,
    'retry_attempts' => 3,
    'webhook_secret' => 'your-webhook-secret'
];

Configuration Options

Timeout Settings

Configure request timeouts and retry logic.

Option Default Description
timeout 30 Request timeout in seconds
retry_attempts 3 Number of retry attempts

Webhook Configuration

Set up webhooks to receive real-time updates.

// Webhook configuration
$webhook_config = [
    'url' => 'https://your-domain.com/webhook',
    'secret' => 'your-webhook-secret',
    'events' => ['fax.sent', 'fax.received']
];