Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@acuityai/acuityai

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acuityai/acuityai

The acuityai SDK is library that uses [https://acuityai.com](http://acuityai.com) for implement shoppable in video element by utilizing our easy interface.

  • 2.0.2
  • npm
  • Socket score

Version published
Weekly downloads
21
increased by10.53%
Maintainers
1
Weekly downloads
 
Created
Source

AcuityAi SDK

The acuityai SDK is library that uses https://acuityai.com for implement shoppable in video element by utilizing our easy interface.

Working samples

Get started

Installing

Import using the module

npm install --save @acuityai/acuityai

# or
yarn add @acuityai/acuityai
import '@acuityai/acuityai/dist/acuityai-sdk.css';
import acuityai from '@acuityai/acuityai';

Using gloably via CDN

<link rel="stylesheet" href="https://assets.acuityai.com/acuityai-sdk.css">
<script src="https://assets.acuityai.com/acuityai-sdk.js"></script>

Using

Example:

acuityai.init({
  company: 'stacio',
  checkoutButtonContainer: '#checkout-button',
  shoppingContainer: '#shopping-panel',
  productContainer: '#product-panel',
  vertical: '123',
  group: '123',
});
propertytypedescription
companystringrequiredname of the company created on the https://customer.acuityai.com
checkoutButtonContainerstringrequiredContainer selector to render checkout button, you can develop your custom own using the events and actions
shoppingContainerstringrequiredContianer selector to render product popup
productContainerstringrequiredContainer selector to render product panel with products on the group
verticalstringrequiredthis is the vertical id that you can get from the https://customer.acuityai.com of the related to the vertical
groupstringrequiredthis is the group id that you can get from the https://customer.acuityai.com of the related to the group vertical

Events

Example:

const onUpdateCart = (event) => console.log(event);

// Listen events listener
acuity.on('cart:update', onUpdateCart);

// Remove event listener
acuity.off('cart:update', onUpdateCart);
namesignature
cart:update(total: number) => void

Actions

Example:

// Mark checkout as a conversion
acuity.conversion();
namesignaturedescription
clean() => voidClean cart product
conversion() => voidMark checkout as a conversion and also clean cart

FAQs

Package last updated on 17 Oct 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc