Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ПараметрТип данихОпис
base64DataStringЗашифровані дані у форматі Base64
messageStringОпис результату проведення операції
Приклад коду на JavaScript + jQuery 2.2.4
Code Block
languagejs
$.ajax({
    url: "https://crypto.ccs.cipher.kiev.ua:9093/api/v1/ticket/79343564-147f-4a2a-ac2a-182d7a55f802/decryptor/base64Data",
    type: "GET",
    dataType: "json",
    cache: false
}).done(function (jsonResponse, textStatus, xhr) {
    dsData = jsonResponse.base64Data;
    message = "Розшифровані дані успішно отримані.";
}).fail(function (xhr) {
    try {
        var jsonResponse = JSON.parse(xhr.responseText);
        message = jsonResponse.message;
    } catch (e) {
        message = (xhr.responseText == undefined) ? "Помилка при отриманні розшифрованих даних." : xhr.responseText;
    }
})