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:

NameDescriptionRetern value
createAppInitialize clientvoid

Parameter description

NameDescriptionType
appKeyApp's appkeystring
hostSHOPLINE admin hoststring

Code example

import Client, { shared } from '@shoplinedev/appbridge'
const app = Client.createApp({
appKey,
host: shared.getHost()
})
Was this article helpful to you?