...
Параметр | Тип даних | Опис |
---|---|---|
base64Data | String | Підписані дані у форматі Base64 |
message | String | Опис результату проведення операції |
...
Приклад коду на JavaScript + jQuery 2.2.4
Code Block | ||
---|---|---|
| ||
$.ajax({ url: "https://localhost:9094/api/v1/ticket/79343564-147f-4a2a-ac2a-182d7a55f802/ds/base64SignedData", 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; } }) |
...