alibaba.idle.game.inspection.upload (游戏个人验号报告上传)

供游戏验号服务商创建验号流水,并上报验号成功报告或验号失败结果

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
game_account_inspection_upload_request GameAccountInspectionUploadRequest 必须 游戏账号验号状态上报请求
  • └ item_id
  • Number
  • 必须
  • 123456789
  • 闲鱼商品 ID
  • └ game_code
  • String
  • 可选
  • GAME_CODE
  • 服务商侧游戏编码;operation 为 SUBMIT 时必填
  • └ operation
  • String
  • 必须
  • SUBMIT
  • 上报动作:SUBMIT、SUCCEEDED 或 FAILED
  • └ inspection_id
  • Number
  • 可选
  • 10001
  • SUBMIT 返回的验号流水 ID;成功或失败上报时必填
  • └ report_content
  • String
  • 可选
  • {"heroCount":5}
  • 完整验号报告 JSON 字符串;成功上报时必填
  • └ brief_image_file_id
  • Number
  • 可选
  • 20001
  • uploadMedia 返回的报告简略图文件 ID;成功上报时必填
  • └ failure_code
  • String
  • 可选
  • ACCOUNT_LOGIN_FAILED
  • 验号失败原因码;失败上报时必填
  • └ failure_message
  • String
  • 可选
  • 账号登录失败
  • 验号失败原因描述

响应参数

名称 类型 示例值 描述
result GameAccountInspectionUploadResult 验号状态上报结果
  • └ is_success
  • Boolean
  • true
  • 是否处理成功
  • └ result_code
  • String
  • SUCCESS
  • 业务结果码
  • └ result_message
  • String
  • 请求参数不合法
  • 业务结果描述
  • data
  • GameAccountInspectionUploadResponse
  • 验号流水处理结果
  • └ inspection_id
  • Number
  • 10001
  • 验号流水 ID
  • └ inspection_status
  • String
  • PROCESSING
  • 验号流水当前状态
  • └ report_id
  • Number
  • 20001
  • 验号成功后生成的报告 ID;其他状态为空

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleGameInspectionUploadRequest req = new AlibabaIdleGameInspectionUploadRequest();
AlibabaIdleGameInspectionUploadRequest.GameAccountInspectionUploadRequest obj1 = new AlibabaIdleGameInspectionUploadRequest.GameAccountInspectionUploadRequest();
obj1.setItemId(123456789L);
obj1.setGameCode("GAME_CODE");
obj1.setOperation("SUBMIT");
obj1.setInspectionId(10001L);
obj1.setReportContent("{\"heroCount\":5}");
obj1.setBriefImageFileId(20001L);
obj1.setFailureCode("ACCOUNT_LOGIN_FAILED");
obj1.setFailureMessage("账号登录失败");
req.setGameAccountInspectionUploadRequest(obj1);
AlibabaIdleGameInspectionUploadResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_game_inspection_upload_response>
    <result>
        <is_success>true</is_success>
        <result_code>SUCCESS</result_code>
        <result_message>请求参数不合法</result_message>
        <data>
            <inspection_id>10001</inspection_id>
            <inspection_status>PROCESSING</inspection_status>
            <report_id>20001</report_id>
        </data>
    </result>
</alibaba_idle_game_inspection_upload_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部