sensorproapi

1.4.8 • Public • Published

sensorpro.eu API

node.js package for sensorpro

Features

◼️ Add or update contact email address
◼️ Tag the contact
◼️ Trigger welcome email

Installation

Install the package using npm:

npm install sensorproapi

Get RapidAPI API key

1 Log in to your RapidAPI account
2 Navigate to Apps or dev dashboard
3 Click on your App or add a new one
4 Click Authorizations menu for Apikey
5 Subscribe to the Sensorpro API (free)
https://rapidapi.com/forcequit/api/sensorpro

Get sensorpro API key

1 Log in to your SensorPro account
e.sensorpro.net
2 Go to the API menu
3 Click Add New and select the API type "Webhook"
4 Optional: Send welcome email
4.1 Create a signup form using Menu Tools/Signup forms
4.2 Grab the formid from there
5 Requires a paid subscription from 9/mo

Example code


let rapidapikey = "a1b2c3d4e5f67890123456789abcdef0"; // Example RapidAPI key
let sensorprokey = "a1b2c3d4e5f67890123456789abcdef0"; // Example SensorPro API key
let email = "email@domain.com"; // your email var
let tag = "appname"; // tag the contact
let id = "00000000-0000-0000-0000-000000000000"; // default welcome email id

(async () => {
  try {
    const response = await addContact(rapidapikey, sensorprokey, email, tag, id);
    console.log("Contact added successfully: ", response);
  } catch (error) {
    console.error("Error: ", 
      error.response ? JSON.stringify(error.response.data, null, 2) : error.message
    );
  }
})();

API docs

sensorpro.net/api

License

This package is licensed under the MIT License.

/sensorproapi/

    Package Sidebar

    Install

    npm i sensorproapi

    Weekly Downloads

    24

    Version

    1.4.8

    License

    none

    Unpacked Size

    2.81 kB

    Total Files

    3

    Last publish

    Collaborators

    • sensorpro