Backend Triggers
Setting up the Backend Trigger
API call
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://events.blitzllama.com/api/v1/connections/backend/event', //copied url
'headers': {
'x-api-key': '<copied API Key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"user_id":"user_123",
"event_name":"item_added_to_cart",
"properties": {
"id": 1,
"name": "War and Peace",
"author": "Leo Tolstoy",
"type": "hardcover",
"category": "novel"
}
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
How to trigger an in-app survey using Backend Trigger

Last updated