const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
zone_id: '<string>',
record_id: '<string>',
type: '<string>',
name: '<string>',
content: '<string>',
ttl: '<string>',
priority: '<string>',
proxied: '<string>',
srv_service: '<string>',
srv_proto: '<string>',
srv_target: '<string>',
target: '<string>',
srv_weight: '<string>',
srv_port: '<string>',
caa_flags: '<string>',
caa_tag: '<string>',
caa_value: '<string>'
})
};
fetch('https://siteadresiniz.example/Files/Controllers/ControllersAll.php', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));