本地生活收集气象灾害预警信息
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_met_disaster_request | MetDisasterRequest | 可选 | 预警信息 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
parse_msg | String | 描述信息 | |
parse_success | Boolean | false | 处理结果 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAlscChudaWeatherCollectRequest req = new AlibabaAlscChudaWeatherCollectRequest(); AlibabaAlscChudaWeatherCollectRequest.MetDisasterRequest obj1 = new AlibabaAlscChudaWeatherCollectRequest.MetDisasterRequest(); obj1.setAdCode( "610626" ); obj1.setAlertId( "ac_610002314" ); obj1.setCity( "延安市" ); obj1.setCode( "1101" ); obj1.setCounty( "吴起县" ); obj1.setDescription( "吴起县气象台x年x月x日x时x分发布霜冻蓝色预警信号" ); obj1.setExpiredTime( "2018-10-24T14:27:00+08:00" ); obj1.setExpiredTimestamp(1540908348L); obj1.setLatlon( new Long[] { \" 36.927216 \",\" 108.175933 \" }; ); obj1.setLocation( "陕西省延安市吴起县" ); obj1.setProvince( "陕西省" ); obj1.setPublishedTime( "2018-10-24T14:27:00+08:00" ); obj1.setPublishedTimestamp(1540909929L); obj1.setRegionId( "101110312" ); obj1.setStatus( "预警中" ); obj1.setTitle( "吴起县气象局解除霜冻蓝色预警[IV级/一般]" ); req.setParamMetDisasterRequest(obj1); AlibabaAlscChudaWeatherCollectResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 | < alibaba_alsc_chuda_weather_collect_response > < parse_msg ></ parse_msg > < parse_success >false</ parse_success > </ alibaba_alsc_chuda_weather_collect_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 > |
错误码 | 错误描述 | 解决方案 |
---|