Seller Set User Variable

POST
https://authsecure.com/api/seller/

End/Modify user data and sessions directly securely.

Create or update a variable for a specific user. If the variable already exists, it will be updated automatically.

Endpoint Details

GET /api/seller_set_user_variable.php

Query Parameters

ParameterRequiredDescription
sellerkeyYesSeller API Key
usernameYesUsername
varYesVariable name
newdataNoVariable value

Success Response

{
  "success": true,
  "msg": "User variable updated"
}

Code Examples

fetch("http://localhost/commen/api/seller_set_user_variable.php?sellerkey=KEY&username=USER&var=coins&newdata=100")
 .then(r => r.json())
 .then(console.log);
<?php
echo file_get_contents(
 "http://localhost/commen/api/seller_set_user_variable.php?sellerkey=KEY&username=USER&var=coins&newdata=100"
);
?>
import requests
r = requests.get("http://localhost/commen/api/seller_set_user_variable.php", params={
 "sellerkey":"KEY",
 "username":"USER",
 "var":"coins",
 "newdata":"100"
})
print(r.text)
var client = new RestClient(
 "http://localhost/commen/api/seller_set_user_variable.php?sellerkey=KEY&username=USER&var=coins&newdata=100"
);
var res = client.Execute(new RestRequest(Method.GET));
Console.WriteLine(res.Content);