@homebaseai/intercom-api

This is plain JavaScript API for Intercom. It is utilized by the other vue packages in this repository.
93,176
Install
npm install @homebaseai/intercom-api
Latest Version:1.0.3
License:GPL-3.0
Last Updated:Apr 30, 2023
Links: npm
Maintainer: ronizzle

homebaseai/intercom-api

This is plain JavaScript API for Intercom. It is utilized by the other vue packages in this repository.

Installation

npm i @homebaseai/intercom-api

Usage

import * as intercom from '@homebaseai/intercom-api';

// Install intercom will attach intercom to the window
// and create the script tags on the document.
intercom.installIntercom({ app_id: 'intercom_id' });

// first boot it.
intercom.boot({
  app_id: import.meta.env.VITE_APP_INTERCOM_TOKEN,
  user_id: 1,
  name: 'John Doe',
  email: 'john@exampl.com',
});

// then do whatever...
intercom.show();

API Methods

All of the methods covered here, are supported.

Related Packages

@homebaseai/vue3-intercom

An Intercom plugin for Vue.js 3

91,484 0

Version History

Version Released License
1.0.3 GPL-3.0
1.0.2 GPL-3.0
1.0.1 GPL-3.0
1.0.0 ISC