appinapp-sdk-js

0.0.6 • Public • Published

appinapp-sdk

Install

Plain Javascript (ES2015)

<script src="https://static.appinapp.co/dist/appinapp-sdk.js"></script>

Node Module (ES6)

yarn add appinapp-sdk-js

or

npm install appinapp-sdk-js

then in your app

import sdk from 'appinapp-sdk-js'

Use

Initialize

sdk.init(your_api_key);

Launch the UI

sdk.launchUI();

Launch the customer service chat directly

sdk.showChat();

Usage with React Native

import sdk from 'appinapp-sdk-js'
 
//......
 
AppRegistry.registerComponent(appName, () => withPhoto()(Root))
 
//......
 
sdk.init('api_key') // or init('api_key)
sdk.launch() // or launch()
sdk.stop() // or stop()

Readme

Keywords

none

Package Sidebar

Install

npm i appinapp-sdk-js

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

383 kB

Total Files

22

Last publish

Collaborators

  • juvaly