In the realm of software development, the necessity to monitor and receive real-time notifications for critical events is paramount. Palzin Track offers a straightforward solution for event tracking and instant notifications, accessible across multiple devices, including Desktop, Phone, and SmartWatch.
Our API simplifies the process of seamlessly integrating Palzin Track into your Javascript codebase. With just an HTTP request and the inclusion of any supplementary information you desire, we handle the rest, ensuring a hassle-free setup.
Getting Palzin Track up and running within your Javascript project is a breeze. You can easily incorporate our provided code snippets without the need for custom modules, streamlining the integration process.
Send notifications using JavaScript and Fetch
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Bearer YOUR_API_TOKEN");
var raw = JSON.stringify({
"project": "my-project",
"channel": "waitlist",
"event": "Waitlist Member",
"description": "email: [email protected]",
"icon": "🔥",
"notify": true
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.palzin.live/v1/log", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Send notifications using JavaScript and jQuery
var settings = {
"url": "https://api.palzin.live/v1/log",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
"data": JSON.stringify({
"project": "my-project",
"channel": "waitlist",
"event": "Waitlist Member",
"description": "email: [email protected]",
"icon": "🔥",
"notify": true
}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
Send notifications using JavaScript and XHR
// WARNING: For POST requests, body is set to null by browsers.
var data = JSON.stringify({
"project": "my-project",
"channel": "waitlist",
"event": "Waitlist Member",
"description": "email: [email protected]",
"icon": "🔥",
"notify": true
});
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://api.palzin.live/v1/log");
xhr.setRequestHeader("Content-Type", "application/json");
xhr.setRequestHeader("Authorization", "Bearer YOUR_API_TOKEN");
xhr.send(data);
Once an event is published, you get instant updates in real-time, and you could optionally turn on or off push notifications depending on the priority of your event.
Also, Palzin Track makes it very easy to organize your events into different projects and channels depending on their topic and provides you with a global and project-wide feed so you can scroll through your events.
In addition, with our collaborative features, you can add team members to a project so that everyone can receive push notifications and updates, regardless of the desktop or mobile platform they are using.
You can learn more about our API by heading to docs.palzin.live
Palzin Track reveals the human stories behind your data. Make user-centric decisions that drive growth.