Skip to main content

Function: createClient()

createClient(config): TanqoryClient

Defined in: tanqory-platform-packages/packages/api/sdk/src/index.ts:136

Create a new Tanqory API client instance

Parameters​

config​

TanqoryConfig

Returns​

TanqoryClient

Example​

// Web usage
import { createClient } from '@tanqory/sdk'

const tanqory = createClient({
apiKey: 'pk_live_...',
apiVersion: '2025-01-01',
environment: 'production'
})

// Mobile usage
const tanqory = createClient({
apiKey: 'pk_mobile_...',
storage: AsyncStorage, // React Native AsyncStorage
networkAdapter: 'react-native'
})