Socket
Book a DemoInstallSign in
Socket

ember-cli-intercom

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-intercom

Ember addon to easily add Intercom to your app.

0.4.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

ember-cli-intercom

Easily add Intercom to your app.

Installation

# From within your ember-cli project
ember install ember-cli-intercom

Usage

First you'll need to configure your Intercom App ID:

// config/environment.js

ENV['ember-cli-intercom'] = {
  appId: '[YOUR_APP_ID]'
};

Then, once a user has authenticated, you will need to boot intercom. You can inject the intercom service provided by this addon into a route/component/service/whatever and call the boot method:

this.get('intercom').boot({
  name: '[YOUR_USERS_NAME]',
  email: '[YOUR_USERS_EMAIL]',
  created_at: '[YOUR_USERS_SIGNUP_DATE]'
});

API

This service exposes some of the Intercom available API.

  • Intercom('boot')

      this.get('intercom').boot({});
    
  • Intercom('shutdown')

      this.get('intercom').shutdown();
    
  • Intercom('hide')

      this.get('intercom').hide();
    
  • Intercom('show')

      this.get('intercom').show();
    
  • Intercom('showMessages')

      this.get('intercom').showMessages();
    
  • Intercom('showNewMessage', 'pre-populated content')

    You can use this either with or without the text parameter.

      this.get('intercom').showNewMessage('My text');
    this.get('intercom').showNewMessage();
    
  • Intercom('trackEvent')

      this.get('intercom').trackEvent('event-name', { meta: data });
    

Keywords

ember-addon

FAQs

Package last updated on 29 Jun 2016

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.