1.3.3 • Published 7 months ago

@bluedot-innovation/javascript-sdk v1.3.3

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
7 months ago

Don’t have an app and still want to use Bluedot? Wave API lets you use Bluedot tech in web pages. Leverage world-class location capabilities on every channel.

The Javascript SDK provides an easy and convenient way to integrate the Wave API. It also gives you methods to request a user's location from the browser. You will be able to integrate Wave API in few lines and be good to go.

Installation

Bluedot Javascript SDK is available as a NPM package

npm install @bluedot-innovation/javascript-sdk

Usage

CommonJS

const bluedotSdk = require("@bluedot-innovation/javascript-sdk")
const {
    bluedot,
    createHelloModel
} = bluedotSdk

ES Modules

import { bluedot } from '@bluedot-innovation/javascript-sdk'

Send a Wave event

import { bluedot, createHelloModel } from "@bluedot-innovation/javascript-sdk"

bluedot.initialize('2a397117-5c61-4474-85d9-c216c13da7f9')
bluedot.setLocationEnabled(true)
await bluedot.wave.send('your_destinationId', { key1: 'value1' })

Send a Hello Screen order

const helloModel = createHelloModel();
helloModel.setOrderId("Order-1234")
    .setCustomerName("Peter Goldman")
    .setDisplayedCustomDataField("Parking Bay", "10")
    .setEventType("onTheWay")
await bluedot.wave.send('your_destinationId', helloModel)

See the public interfaces for details about object structure, function signatures and their purpose.

Visit Web SDK for guides to integrate the Javascript SDK within your webpage or app.

1.3.5-alpha.3

7 months ago

1.3.5-alpha.2

7 months ago

1.3.5-alpha.1

7 months ago

1.3.5-alpha.0

7 months ago

1.3.4

10 months ago

1.3.5-alpha.4

7 months ago

1.3.4-alpha

10 months ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.24.0

3 years ago