Change Username
End/Modify user data and sessions directly securely.
Change an existing user's username.
Endpoint Details
GET
/api/change_username.php
Query Parameters
| Parameter | Required | Description |
|---|---|---|
| sellerkey | Yes | Seller API Key |
| old | Yes | Current username |
| new | Yes | New username |
Success Response
{
"success": true,
"msg": "Username updated successfully"
}
Code Examples
fetch("http://localhost/commen/api/change_username.php?sellerkey=KEY&old=OLDUSER&new=NEWUSER")
.then(r => r.json())
.then(console.log);
<?php echo file_get_contents( "http://localhost/commen/api/change_username.php?sellerkey=KEY&old=OLDUSER&new=NEWUSER" ); ?>
import requests
r = requests.get("http://localhost/commen/api/change_username.php", params={
"sellerkey":"KEY",
"old":"OLDUSER",
"new":"NEWUSER"
})
print(r.text)
var client = new RestClient( "http://localhost/commen/api/change_username.php?sellerkey=KEY&old=OLDUSER&new=NEWUSER" ); var res = client.Execute(new RestRequest(Method.GET)); Console.WriteLine(res.Content);