node.js package for sensorpro
◼️ Add or update contact email address
◼️ Tag the contact
◼️ Trigger welcome email
Install the package using npm:
npm install sensorproapi
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
1 Log in to your SensorPro accounte.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
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
);
}
})();
sensorpro.net/api
This package is licensed under the MIT License.