snapcall

1.10.2 • Public • Published

Snapcall

doc: https://doc.snapcall.io/#widget-api contact: hello@snapcall.io

Getting Started with NPM and a bundler.

npm install snapcall

load the snapcall widget:

import { snapcallAPI } from 'snapcall';

const bid = ""; // create an account on https://admin.snapcall.io/login to get a button identifier
snapcallAPI.initWidget(bid);

Getting started with npm and browser import/export.

npm install snapcall

load the snapcall widget:

<script type="module" src="node_modules/snapcall/index.js"></script>
const bid = ""; // create an account on https://admin.snapcall.io/login to get a button identifier
// snapcall script loaded before
if (snapcallAPI && snapcallAPI.initWidget) {
  snapcallAPI.initWidget(bid);
}
else {
  // snapcall script loaded after
  window.addEventListener('snapcallEvent_init', () => {
      snapcallAPI.initWidget(bid);
  })
}

Readme

Keywords

none

Package Sidebar

Install

npm i snapcall

Weekly Downloads

12

Version

1.10.2

License

custom

Unpacked Size

340 kB

Total Files

7

Last publish

Collaborators

  • jballanger
  • tom2bec
  • pnoyelle