Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@snapcall/widget-sdk

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snapcall/widget-sdk

SDK for building SnapCall experiences

latest
npmnpm
Version
2.5.4
Version published
Maintainers
3
Created
Source

Snapcall

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

Getting Started with NPM and a bundler.

npm install @snapcall/widget-sdk

load the snapcall widget:

import { snapcallAPI } from '@snapcall/widget-sdk';

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/widget-sdk

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);
  })
}

FAQs

Package last updated on 14 Dec 2021

Did you know?

Socket

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