Skip to content

Instantly share code, notes, and snippets.

@alwaisy
Created May 12, 2022 12:13
Show Gist options
  • Save alwaisy/461333b0a9e87385e64b3b1c38307e92 to your computer and use it in GitHub Desktop.
Save alwaisy/461333b0a9e87385e64b3b1c38307e92 to your computer and use it in GitHub Desktop.
980435
fetch("https://api.proxyscrape.com/v2/order/get_details.php", {
method: "POST",
body: JSON.stringify(price_urls)
}).then(function(res) {
return res.json();
}).then(function(data) {
console.log(data, 'data');
const keys = Object.keys(data);
keys.forEach((key, index) => {
$("#" + key).text(" " + twodecimal(data[key]["price"]));
console.log(data[key]["price"]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment