云游戏消息发送
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
request_param | TopGameMessageDto | 必须 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 接口返回model | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaCloudgameGamingGamemessageSendRequest req = new AlibabaCloudgameGamingGamemessageSendRequest(); AlibabaCloudgameGamingGamemessageSendRequest.TopGameMessageDto obj1 = new AlibabaCloudgameGamingGamemessageSendRequest.TopGameMessageDto(); obj1.setGameId( "1" ); obj1.setAccountDomain( "1" ); obj1.setTargetId( "1" ); obj1.setUtdid( "1" ); obj1.setStart(1L); obj1.setVersion(1L); obj1.setAccountId( "1" ); obj1.setOffline( false ); obj1.setMessageType( "1" ); obj1.setAction( "1" ); obj1.setFrontAppKey( "30957117" ); obj1.setTime(1L); obj1.setProjectId( "1" ); obj1.setSysBreak( false ); req.setRequestParam(obj1); AlibabaCloudgameGamingGamemessageSendResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 | < alibaba_cloudgame_gaming_gamemessage_send_response > < result > < code >0</ code > < data > < message >消费成功</ message > < consume_state >1</ consume_state > </ data > < message >success</ message > </ result > </ alibaba_cloudgame_gaming_gamemessage_send_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|