@peulda/channel-io-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@peulda/channel-io-sdk

Unofficial channel.io SDK for npm

Usage

import { loadChannel } from '@peulda/channel-io-sdk'

// with async-await
async function main() {
  const channel = loadChannel()

  await channel.boot({
    pluginKey: 'YOUR_PLUGIN_KEY',
  })

  await channel.updateUser(userInfo)
}

// with Promise
const channel = loadChannel()
channel
  .boot({
    pluginKey: 'YOUR_PLUGIN_KEY',
  })
  .then(() => {
    // ...
  })

loadSDK

import { loadSDK } from '@peulda/channel-io-sdk'

loadSDK()

window.ChannelIO('boot', {
  pluginKey: 'YOUR_PLUGIN_KEY',
})

LICENSE

MIT

Disclaimer: This is not an officially supported Channel.io product.

Dependencies (1)

Dev Dependencies (14)

Package Sidebar

Install

npm i @peulda/channel-io-sdk

Weekly Downloads

54

Version

1.0.5

License

MIT

Unpacked Size

32.8 kB

Total Files

11

Last publish

Collaborators

  • hahnlee