udsmart获取数据回传接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
ud_smart_service_request | UDSmartServiceRequest | 可选 |
|
ud_smart_service_request | |
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | CallBackResultDTO | CallBackResultDTO | |
|
|||
id | String | 12kf0tr3lc02j | request_id |
status | Number | 0 | status |
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 28 29 30 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaUdUdsmartdataGetRequest req = new AlibabaUdUdsmartdataGetRequest(); AlibabaUdUdsmartdataGetRequest.UDSmartServiceRequest obj1 = new AlibabaUdUdsmartdataGetRequest.UDSmartServiceRequest(); obj1.setTecAgent( "代理商" ); obj1.setCmClickId( "adbcde" ); obj1.setCmRequestId( "2024123123" ); obj1.setProductId( "123" ); obj1.setOrderId( "123" ); obj1.setEventType( "12" ); obj1.setCkClickId( "adbcde" ); obj1.setAppAccessToken( "adbcde" ); obj1.setPurchaseAmount( "9900" ); obj1.setItemCount( "1" ); obj1.setCkRequestId( "2024123123" ); obj1.setItemId( "123456" ); obj1.setItemName( "T恤" ); obj1.setEventTime( "1728456618" ); obj1.setChannelId( "1" ); obj1.setCallbackType( "1" ); obj1.setAdvertiserId( "1213456" ); obj1.setShopName( "xx的铺子" ); obj1.setTs(1L); obj1.setIsDirectMatch( "1" ); obj1.setCallBackUrl( "url" ); obj1.setTraceId( "traceId" ); obj1.setAdSrc( "52" ); obj1.setBusinessType( "type" ); req.setUdSmartServiceRequest(obj1); AlibabaUdUdsmartdataGetResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 | < alibaba_ud_udsmartdata_get_response > < data > < result >0</ result > < tec_agent >tecAgent</ tec_agent > < app_access_token >4dd87c12306d118098a5fd73458ec7e5bb0a49c5</ app_access_token > </ data > < id >12kf0tr3lc02j</ id > < status >0</ status > </ alibaba_ud_udsmartdata_get_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 > |
错误码 | 错误描述 | 解决方案 |
---|