1.2.7 • Published 2 years ago

@piano-sdk/tv v1.2.7

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago
  • how to use
import { pnTV } from "@piano-sdk/tv";

const AID = "<AID>";
const ENDPOINT = "<ENDPOINT";
const CX_SITE_ID = "<CX_SITE_ID>";

pnTV.execute(
    {
        tags: ["tag1", "tag2"],
        aid: AID,
        endpoint: ENDPOINT,
        cxenseSiteId: CX_SITE_ID,
    },
    {
        onRunJs: (...args: any) => {
            console.log("------->onRunJs", args);
        },
        onContinueExecution: (...args: any) => {
            console.log("------->onContinueExecution", args);
        },
        onContinueExecutionCompleted: (...args: any) => {
            console.log("------->onContinueExecutionCompleted", args);
        },
        onMeterActive: (...args: any) => {
            console.log("------->onMeterActive", args);
        },
        onUserSegmentTrue: (...args: any) => {
            console.log("------->onUserSegmentTrue", args);
        },
        onExperienceExecute: (...args: any) => {
            console.log("------->onExperienceExecute", args);
        },
        onMeterExpired: (...args: any) => {
            console.log("------->onMeterExpired", args);
        },
    }
);
1.2.7

2 years ago

1.1.50

2 years ago

1.1.47

2 years ago