注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 云游戏API

yunos.cggame.workflow.mario.createtask (云游戏算力评估发起task)

云游戏算力评估发起task

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
mario_proc_from MarioProcFrom 可选 发起算力评估的参数
  • └ game_id
  • String
  • 可选
  • 123
  • 游戏的id
  • └ gmt_modified
  • Date
  • 可选
  • 2020-01-01 00:00:00
  • 修改时间
  • └ other
  • String
  • 可选
  • 通过
  • 其他信息
  • └ connect_info
  • String
  • 可选
  • ip
  • 连接信息
  • └ ploy_id
  • Number
  • 可选
  • 23
  • poly的id
  • └ gmt_create
  • Date
  • 可选
  • 2020-01-01 00:00:00
  • 创建时间
  • └ priority
  • Number
  • 可选
  • 1
  • 优先级
  • └ resolution
  • String
  • 可选
  • 1280
  • 分辨力
  • └ frame_rate
  • String
  • 可选
  • 32P
  • 帧率
  • └ isv_code
  • Number
  • 可选
  • 22
  • isv的代码
  • └ game_name
  • String
  • 可选
  • 三国志
  • 游戏名称
  • └ game_version_id
  • String
  • 可选
  • 1.0
  • 游戏版本
  • └ proc_inst
  • String
  • 可选
  • 11
  • 流程id
  • └ tenant_id
  • Number
  • 可选
  • 9
  • 租户id
  • └ id
  • Number
  • 可选
  • 1
  • 主键id
  • └ state
  • Number
  • 可选
  • 1
  • 状态
  • └ proc_type
  • Number
  • 可选
  • 2
  • 流程类型

响应参数

名称 类型 示例值 描述
result Response response 默认描述
  • └ code
  • Number
  • 123
  • 返回码
  • data
  • MarioResponse
  • marioresponse
  • 返回值
  • └ task_result_id
  • Number
  • 1
  • 任务结果id
  • └ state
  • Number
  • 1
  • 状态
  • └ msg
  • String
  • 成功了
  • 相关信息
  • └ success
  • Boolean
  • true
  • 返回是否成功
  • └ message
  • String
  • 成功
  • 返回信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosCggameWorkflowMarioCreatetaskRequest req = new YunosCggameWorkflowMarioCreatetaskRequest();
YunosCggameWorkflowMarioCreatetaskRequest.MarioProcFrom obj1 = new YunosCggameWorkflowMarioCreatetaskRequest.MarioProcFrom();
obj1.setGameId("123");
obj1.setGmtModified(StringUtils.parseDateTime("2020-01-01 00:00:00"));
obj1.setOther("通过");
obj1.setConnectInfo("ip");
obj1.setPloyId(23L);
obj1.setGmtCreate(StringUtils.parseDateTime("2020-01-01 00:00:00"));
obj1.setPriority(1L);
obj1.setResolution("1280");
obj1.setFrameRate("32P");
obj1.setIsvCode(22L);
obj1.setGameName("三国志");
obj1.setGameVersionId("1.0");
obj1.setProcInst("11");
obj1.setTenantId(9L);
obj1.setId(1L);
obj1.setState(1L);
obj1.setProcType(2L);
req.setMarioProcFrom(obj1);
YunosCggameWorkflowMarioCreatetaskResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<yunos_cggame_workflow_mario_createtask_response>
    <result>
        <code>123</code>
        <data>
            <task_result_id>1</task_result_id>
            <state>1</state>
            <msg>成功了</msg>
        </data>
        <success>true</success>
        <message>成功</message>
    </result>
</yunos_cggame_workflow_mario_createtask_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

返回
顶部