1.13.2 • Published 3 months ago

@stomio/stomio-web-sdk v1.13.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

Stomio WebSDK

The Stomio WebSDK empowers users to extend the Stomio platform functionality beyond the Stomio web application. Presently, the primary use case involves embedding the Stomio widget within the customer's web application.

Stomio Widget

The Stomio widget enables you to provide a streamlined Stomio experience to your users without navigating away from your web application.

To utilize the Stomio widget, you must create an in-app project in your Stomio account. Additionally, you need to install our SDK in your web application.

Your First Project In-App with Stomio Widget

Follow this straightforward tutorial to have the Stomio Widget installed and ready to receive feedback from your users directly in your app.

Step 1: Create a Feedback In-App Project

  1. Create a Feedback in-app project in your Stomio account and activate it.
  2. Obtain the Project SDK token from the Dev Info section. It is necessary when installing the SDK.

    • The Secret Key is shared through the Stomio workspace and is used to sign user data.
    • The Project token is unique to each project and is used to connect the widget to its corresponding project.

Step 2: Installation

Install the library:

  • Using npm:

    npm install @stomio/stomio-web-sdk
  • Alternatively, use our CDN:

    <script src="https://sdk.stomio.io"></script>

Step 3: Configuration

In your web application, initialize the Stomio library, create the widget, and display it.

await stomio.init({
  project: 'PROJECT_TOKEN', // replace it with your project SDK token
})

// floating button mode
const widget = stomio.createWidget()

// manual mode
const widget = stomio.createWidget({ mode: 'manual' })
widget.open()

That's it! You have successfully created your in-app project.

More information

Refer to the public documentation for developers on the Stomio website for detailed information.

Typescript types are included in the library.

1.13.2

3 months ago

1.12.0

5 months ago

1.11.0

5 months ago

1.9.1

6 months ago

1.8.0

6 months ago

1.7.0

7 months ago

1.6.0

8 months ago

1.5.1

8 months ago

1.5.0

8 months ago

1.3.0

8 months ago

1.10.0

5 months ago

1.2.2

12 months ago

1.2.1

12 months ago

1.2.0

12 months ago

1.1.5

1 year ago

1.1.4

1 year ago