The Polarity Integration Utils library provides a set of utilities to help you build integrations quickly and efficiently for Polarity. The core of the library is the PolarityRequest class which provides a simple interface for making HTTP requests and handling responses.
Install polarity-integration-utils and its peer dependency @polarityio/integration-types:
npm install polarity-integration-utils @polarityio/integration-types
Or manually add both to your package.json:
{
"dependencies": {
"polarity-integration-utils": "^4.0.0",
"@polarityio/integration-types": "^1.1.0"
}
}
When manually adding dependencies, run npm install to install them.