Seller Global Create
End/Modify user data and sessions directly securely.
Create a new global variable for your application.
Endpoint Details
GET
/api/seller_global_create.php
Query Parameters
| Parameter | Required | Description |
|---|---|---|
| sellerkey | Yes | Seller API Key |
| key | Yes | Global variable key |
| value | No | Initial value |
Success Response
{
"success": true,
"msg": "Global variable created"
}
Failure Response
{
"success": false,
"msg": "Global variable already exists"
}
Code Examples
fetch("http://localhost/commen/api/seller_global_create.php?sellerkey=KEY&key=VAR_NAME&value=VALUE")
.then(r => r.json())
.then(console.log);
<?php echo file_get_contents( "http://localhost/commen/api/seller_global_create.php?sellerkey=KEY&key=VAR_NAME&value=VALUE" ); ?>
import requests
r = requests.get("http://localhost/commen/api/seller_global_create.php", params={
"sellerkey":"KEY",
"key":"VAR_NAME",
"value":"VALUE"
})
print(r.text)
var client = new RestClient( "http://localhost/commen/api/seller_global_create.php?sellerkey=KEY&key=VAR_NAME&value=VALUE" ); var res = client.Execute(new RestRequest(Method.GET)); Console.WriteLine(res.Content);