0.0.6 • Published 5 years ago

appinapp-sdk-js v0.0.6

Weekly downloads
17
License
MIT
Repository
-
Last release
5 years ago

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()
0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago