📖 API Documentation
# Discord Solve
curl -X POST \
http://SERVER_URL/solve/discord \
-H "X-API-Key: YOUR_KEY"
# Custom Solve
curl -X POST \
http://SERVER_URL/solve \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"sitekey":"SITE_KEY","page_url":"https://site.com"}'
import requests
API_KEY = "YOUR_KEY"
BASE = "http://SERVER_URL"
# Discord shortcut
r = requests.post(f"{BASE}/solve/discord",
headers={"X-API-Key": API_KEY})
token = r.json()["token"]
print("Token:", token)
# Custom
r = requests.post(f"{BASE}/solve",
headers={"X-API-Key": API_KEY},
json={"sitekey": "SITE_KEY",
"page_url": "https://site.com"})
print(r.json())
const API_KEY = "YOUR_KEY";
const BASE = "http://SERVER_URL";
// Discord shortcut
const res = await fetch(`${BASE}/solve/discord`, {
method: "POST",
headers: { "X-API-Key": API_KEY }
});
const { token } = await res.json();
console.log("Token:", token);
// Custom solve
const res2 = await fetch(`${BASE}/solve`, {
method: "POST",
headers: {
"X-API-Key": API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
sitekey: "SITE_KEY",
page_url: "https://site.com"
})
});
console.log(await res2.json());
true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $api_key"],
]);
$res = json_decode(curl_exec($ch), true);
$token = $res["token"];
echo "Token: $token\n";
?>