-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
33 lines (25 loc) · 869 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function getInfoProducts(){
var data = {
sku: "2025249660400",
country: "pe",
sessionkey: ""
}
$.ajax({
//Propiedades de ajax
method: "POST",
url: "https://ripley-retail-com-prod.apigee.net/content-orchestrator/products/bysku",
data: JSON.stringify(data),
contentType: "application/json; charset=utf-8",
dataType: "json"
}).done(function (info) {
//Respuesta del servidor
console.log(info);
//valido que la data no sea nula
if (info.d != null) {
console.log("entro...");
} else {
console.log("no entro...");
//window.parent.location.href = "/Logout.aspx";
}
}) // cierro done
}