Não foi possível fazer o login no Docusign
$(document).ready(function () {
debugger;
$.ajax({
type: "GET",
headers: {
"Accept" : "application/json",
"Content-Type": "application/json"
},
beforeSend: function (request) {
// request.setRequestHeader("X-DocuSign-Authentication"
// , "<DocuSignCredentials><Username>*******</Username><Password>****** </Password> <IntegratorKey>******</IntegratorKey></DocuSignCredentials>");
request.setRequestHeader("X-DocuSign-Authentication"
,"{\"Username\":\"********\",\"Password\":\"*****\",\"IntegratorKey\":\"*******\"}");
},
url: "https://demo.docusign.net/restapi/v2/login_information? api_password=false&include_account_id_guid=tr...
success: function (r) {
debugger;
},
error: function (xhr) {
alert(xhr.responseText);
}
});
});
Eu estou usando acima para fazer login, recebo o código de resposta 200 .. Mas a resposta está sempre em branco.