2.0.6 • Published 3 years ago

rws-test v2.0.6

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
3 years ago

Don’t have an app and still want to use Index? Wave API lets you use Index 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

Index 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("abcd")
    .setCarModel("Toyota Camry")
    .setCarPlate("Hungry")
    .setCarColor("White")
    .setEventType("onTheWay")
await bluedot.wave.send('your_destinationId', helloModel)

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

1.2.0

3 years ago

1.14.0

3 years ago

1.12.0

3 years ago

1.16.2

3 years ago

1.18.0

3 years ago

1.16.1

3 years ago

1.16.0

3 years ago

1.16.7

3 years ago

1.16.6

3 years ago

1.16.5

3 years ago

1.16.4

3 years ago

1.16.8

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.6

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.23.0

3 years ago

1.11.0

3 years ago

1.15.0

3 years ago

1.1.0

3 years ago

1.13.0

3 years ago

1.19.0

3 years ago

1.17.0

3 years ago

1.9.0

3 years ago

1.7.0

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

1.22.0

3 years ago

1.20.0

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.3

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

1.10.0

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago