1.0.0 • Published 7 months ago

@connectifi/sdk v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 months ago

Connectifi SDK

The Connectifi SDK contains types and helpers to make integrating Connectifi a breeze.

  • Delivery hooks types and helper utilities
  • Receptor API - types and a simple agent to make calling receptor endpoints a snap

Getting started

To get started, simply install the module into your application:

npm install @connectifi/sdk

Receptors

To use the receptor helpers, start out by creating the receptor agent

import { createReceptorAgent } from '@connectifi/sdk';

const interopHost = '<YOUR HOST HERE>';

const agent = createReceptorAgent({ interopHost });

To broadcast an instrument to an app/user, you provide an API key (JWT) and an "on behalf of" user

...

const token = '<YOUR API JWT HERE>';
const from = '<USER EMAIL HERE>';

agent.broadcast(token, from, { type: 'fdc3.instrument', id: { ticker: 'MSFT' } })
1.0.0

7 months ago

0.1.1

10 months ago

0.1.0-beta.5

10 months ago

0.1.0-beta.4

10 months ago

0.1.0-beta.3

10 months ago

0.1.0-beta.2

10 months ago

0.1.0-beta.1

10 months ago

0.1.0-beta.0

10 months ago