Making report
Making report
$url = "https://api.fraud.hosting/api/";
$data = [
'_action' => 'report',
'_api' => 'a51ff508c331b7e9',
'_type' => 'chargeback',
'_text' => 'This client made a chargeback after 3 months of server use.',
'_value' => 6,
'name' => '7b30981dd586b87ea42ea864c03abd2ce9086520',
'email' => 'ba65e95764ee08a38bff8d281ad0dcbbe86c9b64',
'ip' => 'ee302279497c4c79a2e64c532d01ba4bb3b57a0c'
];
$options = [
CURLOPT_URL => $url,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query($data),
CURLOPT_RETURNTRANSFER => true,
];
$ch = curl_init();
curl_setopt_array($ch, $options);
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
} else {
echo $response;
}
curl_close($ch);
import requests
url = "https://api.fraud.hosting/api/"
data = {
'_action': 'report',
'_api': 'a51ff508c331b7e9',
'_type': 'chargeback',
'_text': 'This client made a chargeback after 3 months of server use.',
'_value': 6,
'name': '7b30981dd586b87ea42ea864c03abd2ce9086520',
'email': 'ba65e95764ee08a38bff8d281ad0dcbbe86c9b64',
'ip': 'ee302279497c4c79a2e64c532d01ba4bb3b57a0c'
}
response = requests.post(url, data=data)
if response.ok:
print(response.text)
else:
print(f"Error: {response.status_code} - {response.text}")
const https = require('https');
const querystring = require('querystring');
const data = querystring.stringify({
'_action': 'report',
'_api': 'a51ff508c331b7e9',
'_type': 'chargeback',
'_text': 'This client made a chargeback after 3 months of server use.',
'_value': '6',
'name': '7b30981dd586b87ea42ea864c03abd2ce9086520',
'email': 'ba65e95764ee08a38bff8d281ad0dcbbe86c9b64',
'ip': 'ee302279497c4c79a2e64c532d01ba4bb3b57a0c'
});
const options = {
hostname: 'api.fraud.hosting',
path: '/api/',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': data.length
}
};
const req = https.request(options, (res) => {
let responseData = '';
res.on('data', (chunk) => {
responseData += chunk;
});
res.on('end', () => {
console.log(responseData);
});
});
req.on('error', (error) => {
console.error('Error:', error.message);
});
req.write(data);
req.end();