Module

scenid-cloud-sdk

Namespaces

sdk

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.

View Source index.js, line 83

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)

Type Definitions

Object

# AdminContext

Properties:
Name Type Description
Auth function
Customers function
Files function
Insights function

View Source index.js, line 115

Object

# UserContext

Properties:
Name Type Description
Customers function
Files function
Insights function
Profile function

View Source index.js, line 123