User's Manual

4.4 Integrate EPD APIs into Your System
We provide easy-to-use APIs to help you integrate into your own system. Below is a
sample for you to understand and help integration into your system with our restful
APIs.
The vertical application needs to send the API to ePaper manager, sample code
shown below.
1. Our API in Javascript: setItemData to update data into ePaper manager and
ePaper manager will help forward the data to EPD.
// update Item Data
function setItemData(){
var url = HOST + '/esl/v1/items';
var type = 'PUT';
var data = {
"items": [ JSON.parse($('#log').val()) ]
};
console.log(data);
api(url, type, data, function(res){
if(res && res.result)
alert("Item Successfully Updated!");
else
alert("Ajax request error!");
});
}
EPD-132 Board User Manual 92