Retrieve License From User
End/Modify user data and sessions directly securely.
Retrieve the license key used by a specific user.
ℹ️ Returns the most recently used license linked to the username.
Endpoint Details
GET
/api/retrieve_license_from_user.php
Query Parameters
| Parameter | Required | Description |
|---|---|---|
| sellerkey | Yes | Seller API Key |
| username | Yes | Username |
Success Response
{
"success": true,
"license": {
"license_key": "XXXX-XXXX-XXXX",
"subscription_id": 2,
"used_at": "2025-01-01 10:30:00",
"expiry": 1735689600
}
}
Failure Responses
{
"success": false,
"msg": "User not found"
}
Code Examples
fetch("http://localhost/commen/api/retrieve_license_from_user.php?sellerkey=KEY&username=USER")
.then(r => r.json())
.then(console.log);
<?php echo file_get_contents( "http://localhost/commen/api/retrieve_license_from_user.php?sellerkey=KEY&username=USER" ); ?>
import requests
r = requests.get(
"http://localhost/commen/api/retrieve_license_from_user.php",
params={"sellerkey":"KEY","username":"USER"}
)
print(r.text)
var client = new RestClient( "http://localhost/commen/api/retrieve_license_from_user.php?sellerkey=KEY&username=USER" ); var res = client.Execute(new RestRequest(Method.GET)); Console.WriteLine(res.Content);