レビュー
(function (){
var data = JSON.stringify(false);
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.timeout = 1000;
xhr.addEventListener(“readystatechange”, function () {
if (this.readyState === this.DONE) {
var obj_data = JSON.parse(this.responseText);
var set_data = JSON.stringify({
“@context”:”http://schema.org”,
“@type”:”Organization”,
“name”:”### crossfor.myshopify ###➀“,
“url”:”### https://crossfor.myshopify.com/admin/pages/new ###➁“,
“aggregateRating”:{
“@type”:”AggregateRating”,
“ratingValue”:obj_data.response.bottomline.average_score,
“bestRating”:”5″,
“reviewCount”:obj_data.response.bottomline.total_reviews
},
“logo”:”### ### ➂“
});
var e = document.createElement(“script”);e.type=”application/ld+json”,
e.textContent=set_data;document.head.appendChild(e);
}
});
xhr.open(“GET”, ”https://api.yotpo.com/products/### GK1omjMBGCm5cXxpDJujs1JlFGNSl69fiGdQL5fa###➃/yotpo_site_reviews/bottomline”);
xhr.send(data);
}());