1.9.0 • Published 1 year ago

blip-services v1.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

codecov

Introduction

This project aims to implement aditional features to BlipSdk client, commands and connection. Here you can find the main implementation for BLiP SDK connection and its extensions, like account, contacts, artificial intelligence

Objective

The goal of this project is to share all services in the same library, as we can have multiple project stacks.

Usage

Blip Service

Connecting with blip.ai domain:

import { BlipService } from 'blip-services';

const blipService = new BlipService({
    tenant: 'tenant-id',
    blipDomainUrl: 'http://localhost:8080/',
    blipDomain: 'blip.ai',
    blipAccountIssuer: 'account.blip.ai',
    blipWebsocketPort: '443',
    blipWebsocketScheme: 'wss',
    blipWebsocketHostName: 'hmg-ws.blip.ai',
    blipWebsocketHostNameTenant: 'hmg-ws.blip.ai',
    applicationName: 'my-micro-frontend' // Optional, but recommended. Default value is 'portal'
});

//authentication example: "user.mail@take.net"
await blipService.connect(userIdentifier, userToken, authentication);

Connecting with msging.net domain:

import { BlipService } from 'blip-services';

const blipService = new BlipService({
    tenant: 'tenant-id',
    blipDomainUrl: 'http://localhost:8080/',
    blipDomain: 'msging.net',
    blipWebsocketPort: '443',
    blipWebsocketScheme: 'wss',
    blipWebsocketHostName: 'hmg-ws.msging.net',
    blipWebsocketHostNameTenant: 'hmg-ws.msging.net',
    applicationName: 'my-micro-frontend' // Optional, but recommended. Default value is 'portal'
});

//authentication example: "user.mail@take.net"
await blipService.connect(botIdentifier, botAccessKey, authentication);

Acquisition Service

import { AcquisitionService } from 'blip-services';

const acquisitionService = new AcquisitionService({
    acquisitionServiceApiUrl: 'http://localhost:5000'
});

acquisitionService.connect(userToken);

connect

ParamTypeDescriptionRequired
identifierstringThe identifier used to connect to blip.ai domain (it's normally used with user email) or bot identifier (without domain) to connect to msging.net domain.true
tokenstringThe same user token used to login into BlipAccount to connect to blip.ai domain or bot access key to connect to msging.net domain.true
authenticationstringUser email, that will be used to track user actions like SET, MERGE and DELETE commands. Ex: blipuser@take.nettrue
1.9.0

1 year ago

1.8.1

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

3 years ago

1.0.0

3 years ago