最近对接了天猫发送核销码和核销查询的接口,简单记录一下,已做备忘。
发送核销码tmall.msf.identifycode.send接口,Java实现:
public TmallMsfIdentifycodeSendResponse tmallIdentifycodeSend(
TmallMsfIdentifycodeSendRequest req) {
TaobaoClient client = new DefaultTaobaoClient(url, appkey, appSecret);// 实例化TopClient类
TmallMsfIdentifycodeSendResponse response;
try {
response = client.execute(req, sessionkey);
return response;
} catch (ApiException e) {
e.printStackTrace();
}
return null;
}
核销结果查询tmall.msf.identify.status.query接口,Java实现:
public TmallMsfIdentifyStatusQueryResponse tmallMsfIdentifyStatusQuery(
TmallMsfIdentifyStatusQueryRequest req) {
TaobaoClient client = new DefaultTaobaoClient(url, appkey, appSecret);// 实例化TopClient类
TmallMsfIdentifyStatusQueryResponse response;
try {
response = client.execute(req, sessionkey);
return response;
} catch (ApiException e) {
e.printStackTrace();
}
return null;
}
细节及接口返回数据的解析,请下载源码
更多推荐
对接天猫接口之发送核销码tmall.msf.identifycode.send接口和核销结果查询tmall.msf.identify.status.query接
发布评论