1.0.16 • Published 4 years ago

verser-dcl-sdk v1.0.16

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

verser-dcl-sdk

NPM Package that provides a quick way to send events from Decentraland Scenes to Verser dashboard.

This must be published to a valid NPM repository. eg. https://www.npmjs.com/package/verser-dcl-sdk

Publishing to NPM Steps

npm login
  • Provide a unique name and set the version on your package.json, then publish the package to NPM via CLI:
npm publish

Usage on Decentraland Scene

When developing your Decentraland Scene, you will need to install this package by running the following CLI

npm i verser-dcl-sdk

then on your game initialization script eg. game.ts you will import addVerseEventListeners function from the package:

import addVerseEventListeners from "verser-dcl-sdk";

or in case of any restrictions you can import the function using relative path:

import addVerseEventListeners from "../node_modules/verser-dcl-sdk/index";

then need to add the following script replacing the VERSER_CUSTOMER_ID and VERSER_SNIPPET_ID with the values provided by the platform:

executeTask(async () => { addVerseEventListeners('VERSER_CUSTOMER_ID','VERSER_SNIPPET_ID')});
1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago