Here is the code:
database-id is not valid - dont want to share.
What is missing here?
alert('starting..');
$.ajax({
url: "https://api.appery.io/rest/1/db/colle...",
beforeSend: function(xhr) {
xhr.setRequestHeader("X-Appery-Database-Id", "549883b8e4b0611a100c6121");
},
success: function(data) {
alert(data.from);
},
error:function(data) {
alert(data);
}
});