Skip to content

Usabl-dev/usabl-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usabl Survey Node.js Middleware (usabl-node)

Node.js SDK middleware that allows you to add surveys alongside your API responses. It logs incoming API calls, watching for actions that should trigger a Usabl survey. This SDK supports Express. This library is intended to be used on the server (it is not a client module).

How to install

npm install --save usabl-nodejs

Quickstart

The following shows how import Usabl for an example app using Express

1. Import the module:

// 1. Import Modules
var express = require("express");
var app = express();
var usabl = require("usabl-nodejs");

// 2. Set the options, the only required field is applicationId.
var options = { applicationId: "<YOUR_TOKEN>" };

// 3. Initialize the middleware object with options
var usablMiddleware = usabl(options);

// 4b. Use the Usabl middleware to start showing surveys
app.use(usablMiddleware);

2. Enter Usabl Application Id

Your Usabl Application Id can be found in the Usabl Portal. After signing up for a Usabl account, your Usabl Application Id will be displayed during the onboarding steps.

You can always find your Usabl Application Id at any time by logging into the Usabl Portal, click on the top right menu, and then clicking Installation.


## Configuration options

## Update a Single User

## Update a Single Company

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published