Discussions » Development
const data = { "url": "https://google.com", "pikey": "1229349", "provider": "lvdynamic", "domain": "1", "identificator": "", "ads_script_url": "", "jsonDetections": { "Referer": true, "MaxTasks": "3", "Presets": { "BYPASS.VIP": true, "BYPASS.CITY": true, "TRW-API": true }, "RenueveBooster": { "BlockAdBlocks": true, "RenueveForcer": false, "BlockVPNS": true, "BlockIncognito": true, "Extra_Wall": true, "CaptchaRequired": true }, "MinTime": "1", "DetectUserscripts": true, "UnicodeDetect": true, "SpoofCompletion": true }};fetch('https://red-square.space/api/v2/bck/publishers', { method: 'POST', headers: { 'c-api-key': 'a1b2c3d4-e5f6-7890-abcd-ef1234567890', 'Content-Type': 'application/json' }, body: JSON.stringify(data)}).then(response => response.json()).then(data => { console.log(data);}).catch(error => { console.error('Error:', error);});
Sign in to post a reply.
const data = {
"url": "https://google.com",
"pikey": "1229349",
"provider": "lvdynamic",
"domain": "1",
"identificator": "",
"ads_script_url": "",
"jsonDetections": {
"Referer": true,
"MaxTasks": "3",
"Presets": {
"BYPASS.VIP": true,
"BYPASS.CITY": true,
"TRW-API": true
},
"RenueveBooster": {
"BlockAdBlocks": true,
"RenueveForcer": false,
"BlockVPNS": true,
"BlockIncognito": true,
"Extra_Wall": true,
"CaptchaRequired": true
},
"MinTime": "1",
"DetectUserscripts": true,
"UnicodeDetect": true,
"SpoofCompletion": true
}
};
fetch('https://red-square.space/api/v2/bck/publishers', {
method: 'POST',
headers: {
'c-api-key': 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'Content-Type': 'application/json'
},
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => {
console.log(data);
})
.catch(error => {
console.error('Error:', error);
});