Namespaces
Members
# static constant initScenid
Initialises the SDK with your service key and optional settings.
Must be called once before any sdk.* method. Subsequent calls
reinitialise the SDK (useful in tests; avoid in production).
The base domain for service URLs is derived from serviceKey.issuer
unless serviceKey.cloud_stack is set explicitly.
Example
import sdk, { initScenid } from '@scenid/cloud-sdk'
import serviceKey from './service-key.json' assert { type: 'json' }
// Enable debug output: DEBUG=scenid:* node your-app.js
initScenid(serviceKey)