UpdatePassword() API

此 API 请求使运营商能够更新 DG 系统中玩家的密码。

UpdatePassword() 请求

类型输入
HTTP 方法POST
API URLhttps://<API_BASE_URL>/player/update-password/
标头"Content-Type": "application/json"
POST 参数json 对象 e.g.:
{
"api_key": "1pghjl4v5apt2bks",
"username": "test_username",
"password": "passt84fas28",
"new_password": "newPassw0rd",
}
参数类型描述
api_key字符串分配给每个前端的 API Key
username字符串玩家的用户名
password字符串玩家的当前密码
new_password字符串玩家的新密码

UpdatePassword() 响应 + 示例

响应将采用 JSON 格式。 类型:字典。

{ "result": {"status": "success" } }
响应对象中的对象/Key类型描述
resultJSON 对象Key 结果包含 JSON 对象作为值
status字符串响应结果