API Profile

Method POST
API URL https://jagoanpedia.com/api/profile
Get Profile Info
Parameter Deskripsi
key Your API Key
Example Request (PHP cURL)
<?php
$url = "https://jagoanpedia.com/api/profile";
$data = [
    "key" =>  "API Key"     
];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
curl_close($ch);

echo "Response: " . $response;
?>
                            
Success Response:
{
 "success": true,
 "data": {
    "account_status":  "active" ,
    "username":  "your username" ,
    "balance":  15000
     }
}
                            
Failed Response:
{
    "success": false,
    "error": "Wrong API Key"
}