/nightmarket → image/pngimport axios from "axios";
const response = await axios.post(
"https://windowsed.me/nightmarket",
{
"playerName": "windowsed",
"language": "en-US",
"BonusStoreRemainingDurationInSeconds": 2160000,
"BonusOffers": [
{
"offerId": "7b534393-40b0-38d0-1ffc-2b8b78708264",
"Cost": 2175,
"DiscountPercent": 30,
"DiscountCosts": 1522
},
{
"offerId": "19ba907b-4a76-347f-ea24-38990c9ff755",
"Cost": 2675,
"DiscountPercent": 45,
"DiscountCosts": 1471
},
{
"offerId": "e85cf8b6-467b-bc6c-9013-959383f71b2e",
"Cost": 3550,
"DiscountPercent": 25,
"DiscountCosts": 2662
},
{
"offerId": "f3672738-41e2-550d-ec4c-0dac79b3b426",
"Cost": 2375,
"DiscountPercent": 50,
"DiscountCosts": 1187
},
{
"offerId": "7b534393-40b0-38d0-1ffc-2b8b78708264",
"Cost": 1775,
"DiscountPercent": 35,
"DiscountCosts": 1153
},
{
"offerId": "19ba907b-4a76-347f-ea24-38990c9ff755",
"Cost": 4350,
"DiscountPercent": 20,
"DiscountCosts": 3480
}
]
},
{ responseType: "arraybuffer" }
);
// response.data is a Buffer (Node.js) / ArrayBuffer (browser)
// Content-Type: image/png{
"playerName": "windowsed",
"language": "en-US",
"BonusStoreRemainingDurationInSeconds": 2160000,
"BonusOffers": [
{
"offerId": "7b534393-40b0-38d0-1ffc-2b8b78708264",
"Cost": 2175,
"DiscountPercent": 30,
"DiscountCosts": 1522
},
{
"offerId": "19ba907b-4a76-347f-ea24-38990c9ff755",
"Cost": 2675,
"DiscountPercent": 45,
"DiscountCosts": 1471
},
{
"offerId": "e85cf8b6-467b-bc6c-9013-959383f71b2e",
"Cost": 3550,
"DiscountPercent": 25,
"DiscountCosts": 2662
},
{
"offerId": "f3672738-41e2-550d-ec4c-0dac79b3b426",
"Cost": 2375,
"DiscountPercent": 50,
"DiscountCosts": 1187
},
{
"offerId": "7b534393-40b0-38d0-1ffc-2b8b78708264",
"Cost": 1775,
"DiscountPercent": 35,
"DiscountCosts": 1153
},
{
"offerId": "19ba907b-4a76-347f-ea24-38990c9ff755",
"Cost": 4350,
"DiscountPercent": 20,
"DiscountCosts": 3480
}
]
}