Socket
Socket
Sign inDemoInstall

rws-test

Package Overview
Dependencies
5
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rws-test

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.


Version published
Weekly downloads
1
Maintainers
1
Install size
933 kB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 06 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc