Seller Global Get
End/Modify user data and sessions directly securely.
Retrieve a specific global variable by key.
Endpoint Details
GET
/api/seller_global_get.php
Query Parameters
| Parameter | Required | Description |
|---|---|---|
| sellerkey | Yes | Seller API Key |
| key | Yes | Global variable key |
Success Response
{
"success": true,
"variable": {
"setting_key": "example_key",
"setting_value": "example_value",
"created_at": "2024-01-01 12:00:00"
}
}
Failure Response
{
"success": false,
"msg": "Variable not found"
}
Code Examples
fetch("http://localhost/commen/api/seller_global_get.php?sellerkey=KEY&key=VAR_NAME")
.then(r => r.json())
.then(console.log);
<?php echo file_get_contents( "http://localhost/commen/api/seller_global_get.php?sellerkey=KEY&key=VAR_NAME" ); ?>
import requests
r = requests.get("http://localhost/commen/api/seller_global_get.php", params={
"sellerkey":"KEY",
"key":"VAR_NAME"
})
print(r.text)
var client = new RestClient( "http://localhost/commen/api/seller_global_get.php?sellerkey=KEY&key=VAR_NAME" ); var res = client.Execute(new RestRequest(Method.GET)); Console.WriteLine(res.Content);