对接天猫接口之发送核销码tmall.msf.identifycode.send接口和核销结果查询tmall.msf.identify.status.query接口

编程入门 行业动态 更新时间:2024-10-25 00:29:28

最近对接了天猫发送核销码和核销查询的接口,简单记录一下,已做备忘。

发送核销码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接

本文发布于:2023-06-14 05:08:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1441453.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:接口   msf   tmall   identifycode   query

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!