0.1.3 • Published 2 years ago

@mangosoft/ionic-capacitor-lotame v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@mangosoft/ionic-capacitor-lotame

Ionic/Capacitor Bridge Plugin for easy usage of Lotame native iOS and Android SDK

Install

npm install @mangosoft/ionic-capacitor-lotame
npx cap sync

Example

import { MangoSoftLotame } from '@mangosoft/ionic-capacitor-lotame';

// Lotame is a singleton that must be initialized with either a single client id.
const lotameInit = await MangoSoftLotame.initialize({ clientId: <CLIENT_ID> });
console.log('Lotame initialize response: ', JSON.stringify(lotameInit));

Where

CLIENT_ID Unique Lotame Client ID.

Send Behaviors

Behavior Data is collected through this call:

const resultBehavior = await MangoSoftLotame.addBehavior({
    data: { value: "value", forType: "type" }
});

Response have this format:

API

initialize(...)

initialize(options: { clientId: string; }) => Promise<IGenericResponse>
ParamType
options{ clientId: string; }

Returns: Promise<IGenericResponse>


addBehavior(...)

addBehavior(options: { data: any; }) => Promise<IGenericResponse>
ParamType
options{ data: any; }

Returns: Promise<IGenericResponse>


Interfaces

IGenericResponse

PropType
messagestring
dataany
0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago