Getting started
Installation
Enter the following command to download and install the App bridge pack:
npm install @shoplinedev/appbridge
or
yarn add @shoplinedev/appbridge
Initialization
Initialize the client by calling the following API:
| Name | Description | Retern value |
|---|---|---|
| createApp | Initialize client | void |
Parameter description
| Name | Description | Type |
|---|---|---|
| appKey | App's appkey | string |
| host | SHOPLINE admin host | string |
Code example
import Client, { shared } from '@shoplinedev/appbridge'
const app = Client.createApp({
appKey,
host: shared.getHost()
})
Was this article helpful to you?