冠勇是阿里的服务商 我们需要冠勇进行监测舆情,实现全网谣言打击,本api实现接收冠勇发来的舆情数据
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
gy_base_data_dto | GyBaseDataDto | 必须 | 参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
message | String | op_success | 操作消息 |
error | String | error | |
operate_code | String | operateCode | |
is_success | Boolean | true | 操作是否成功 |
ret_value | Json | retValue |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaLawYalaGyMonitorAccRequest req = new AlibabaLawYalaGyMonitorAccRequest(); AlibabaLawYalaGyMonitorAccRequest.GyBaseDataDto obj1 = new AlibabaLawYalaGyMonitorAccRequest.GyBaseDataDto(); obj1.setTaskId(100000L); obj1.setSeqNum(100000L); obj1.setPubTime(StringUtils.parseDateTime( "2018-05-30 11:11:11" )); obj1.setRiskLevel( "P6" ); obj1.setTerminalTypeDetail( "PC网站" ); obj1.setSubject( "怕再被“断交”?台当局对仅剩“友邦”狂“免签”" ); obj1.setTerminalType( "PC网站" ); obj1.setCreatedat(StringUtils.parseDateTime( "2018-05-30 11:11:11" )); obj1.setProductId(100000L); obj1.setAuthor( "一颗小草" ); obj1.setComparisonTime(StringUtils.parseDateTime( "2018-05-30 11:11:11" )); obj1.setSiteId(100000L); obj1.setSampleMonitorId(0L); obj1.setDescription( "怕再被“断交”?台当局对仅剩“友邦”狂“免签”" ); obj1.setSampleTitle( "怕再被“断交”?台当局对仅剩“友邦”狂“免签”" ); obj1.setSimilarity( "100" ); obj1.setSampleFrom( "新浪" ); obj1.setSiteName( "新浪" ); req.setGyBaseDataDto(obj1); AlibabaLawYalaGyMonitorAccResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 | < alibaba_law_yala_gy_monitor_acc_response > < message >op_success</ message > < error ></ error > < operate_code ></ operate_code > < is_success >true</ is_success > < ret_value ></ ret_value > </ alibaba_law_yala_gy_monitor_acc_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 > |
错误码 | 错误描述 | 解决方案 |
---|