有赞新零售社区

发帖
API使用问题»错误141500101,这是什么鬼?

错误141500101,这是什么鬼?

水流千山 2018-08-15 1074 浏览 2 评论 | 只看楼主 [打印]
        Auth auth = new Token(YouZanToken.Token["access_token"]); // Auth auth = new Sign("app_id", "app_secret");
        YZClient yzClient = new DefaultYZClient(auth);
        Dictionary<string, object> dict = new System.Collections.Generic.Dictionary<string, object>();
        dict.Add("mobile", "19657482368");
        dict.Add("customer_create", "{\"name\":\"JJBB\",\"gender\":1,\"birthday\":\"2017 - 01 - 01\",\"remark\":\"OK\",\"contact_address\":{\"area_code\":210224,\"address\":\"大傻子\"}}");
        
        var result = yzClient.Invoke("youzan.scrm.customer.create", "3.0.0", "POST", dict, null);
        lblPostBack.Text += result;

这是从添加客户API页面拷贝出来的代码,只改成了自己的tokenaccess,另外把dict的第二个键值的双引号对加了个反斜杠,结果报错了!
已经申请客户API接口而且回信开放了的。
错误:
{"error_response":{"code":141500101,"message":"invalid params"}}

用手机打开
收藏 ··· 回复
    参数错误,应该是这个birthday 时间之间有空格导致或者您可以使用我下方的字符串测试一下,有问题再追问
    1. "{\"name\":\"JJBB\",\"gender\":1,\"birthday\":\"2017-01-01\",\"remark\":\"OK\",\"contact_address\":{\"area_code\":210224,\"address\":\"大傻子\"}}"
    复制代码

      水流岚衫 青铜   2018-08-16 | 只看该作者
      好了,就是日期空格的问题,现在测试通过了,感谢!

        1跳至
        您需要登录后才可以回帖 登录 | 立即注册

        本版积分规则

        复制链接
        新浪微博
        QQ空间
        微信扫码
        • 回复

        • 评分

        客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

        复制成功