@spotware-web-team/sdk
v0.0.16
Published
SDK for messaging using External Api with host
Downloads
60
Readme
Spotware SDK
SDK for messaging using External Api with host
Installation
# If you use npm:
npm install @spotware-web-team/sdk
# Or if you use Yarn:
yarn add @spotware-web-team/sdkDocumentation
All methods using RxJs
Create Client Api
import {createClientAdapter} from '@spotware-web-team/sdk-external-api';
const clientApi = createClientAdapter();Use it to communicate with the host
import {confirmEvent, registerEvent} from '@spotware/sdk';
confirmEvent(clientApi).pipe(mergeMap(() => ([])));
registerEvent(clientApi).pipe(mergeMap(() => ([])));Use trading function
import {getAccountInformation} from '@spotware/sdk';
getAccountInformation(clientApi).pipe(mergeMap(() => ([])));