MEScript¶
This Admin method downloads the cira_setup.mescript from MPS.
Click here for supported input and output types.
- Endpoint: /admin
- Method Type: POST
- Headers: X-MPS-API-Key
- Body:
{
"method":"MEScript",
"payload":{}
}
Example
Example Javascript code for processing MEscript file:
$.ajax({
url: '/admin',
method: 'POST',
data: JSON.stringify(postdata),
contentType: "application/json",
success: function (data) {
var blob = new Blob([data], {type: "application/octet-stream"});
var url = window.URL.createObjectURL(blob);
var a = document.createElement('a');
a.setAttribute('hidden', '');
a.setAttribute('href', url);
a.setAttribute('download', fileName);
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
window.URL.revokeObjectURL(url);
},
error: function(error){
console.log(error);
}
Return to MPS Methods