Installation

Installation

The Plugin SDK is published on NPM.
To install it, simply run npm install @frontapp/plugin-sdk.

Note: you will need to select the SDK version v1.0.0 to use these features.

You can then add it in your code:

// In TypeScript or ES6
import Front from '@frontapp/plugin-sdk';

// Do something with Front
var Front = require('@frontapp/ui-sdk');

// Do something with Front

As a global library

While the recommended method is to use the Plugin SDK as a module in your code base, you can add it directly to your HTML by using the UMD version.

<html>
  <head>
    <script type="text/javascript" src="//dl.frontapp.com/libs/plugin-sdk-1.0.1.min.js"></script>
  </head>
  <body>
    <script type="text/javascript">
      // window.Front is now available.
    </script>
  </body>
</html>