...
Параметр | Тип даних | Опис |
---|---|---|
message | String | Опис результату проведення операції |
code | String | Код операції |
techMessage | String | Розширений технічний опис |
Приклад коду на JavaScript + jQuery 2.2.4
Code Block | ||
---|---|---|
| ||
var settings = {
"url": "https://ccs-dev-api.cipher.kiev.ua/ccs/hash/api/v1/context/cacba9d7-009c-4e5f-a6a0-d1ff0497894a/data",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": ["application/octet-stream", "application/msword"]
},
"data": "<file contents here>"
};
$.ajax(settings).done(function (response) {
console.log(response);
}); |