修改远程变量 POST
修改远程变量的值。请求方法: POST Content-Type: application/x-www-form-urlencoded
SDK 调用示例
PythonNode.jsJavaC#PHPpython
# 通过卡密修改
result = verify.modify_variable_by_kami(card, '变量ID', '新内容')
if result['success']:
print(f"{result['msg']}")
javascript
const result = await verify.modifyVariableByKami(card, '变量ID', '新内容');
if (result.success) console.log(result.msg);
java
T3Verify.T3Result result = verify.modifyVariableByKami(card, "变量ID", "新内容");
if (result.success) System.out.println(result.msg);
csharp
var result = verify.ModifyVariableByKami(card, "变量ID", "新内容");
if (result.Success) Console.WriteLine(result.Msg);
php
$result = $verify->modifyVariableByKami($card, '变量ID', '新内容');
if ($result['success']) echo $result['msg'] . "\n";
年度会员要求使用修改变量功能需要开发者开通 年度会员。
请求参数
valuecontent | string | 必填 | 新的变量内容 |
safe_code | string | 可选 | 数据验证码 | 程序级接口此接口为程序级操作,直接修改变量内容,无需传入卡密或用户凭证。 |
成功响应
JSON 格式文本格式jsonc
{
"code": "200", // 状态码
"msg": "更新成功" // 结果消息
}
txt
更新成功
错误列表
业务错误
使用修改变量功能需要开发者开通年度会员 | 未开通年度会员 |
通用错误