1.0.10 • Published 1 year ago
@orquestadev/node v1.0.10
Orquesta Node SDK
Prerequisites
- Node.js version 8
- An Orquesta account, check orquesta.dev.
Installation
npm
npm
install
@orquestadev/
node
yarn
yarn
add
@orquestadev/
node
Usage
You can get your workspace API key from the settings section in your workspace.
import { createClient } from '@orquestadev/node';
const client = createClient({
apiKey: 'my_workspace_api_key',
});
Query a rule
import { createClient } from '@orquestadev/node';
const client = createClient({
apiKey: 'my_workspace_api_key',
});
await client.query('my_rule_key', 'my_default_value', {
environments: 'production',
});
Query a domain of rules
import { createClient } from '@orquestadev/node';
const client = createClient({
apiKey: 'my_workspace_api_key',
});
await client.queryDomain('my_domain_key', {
environments: 'production',
});