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"}}
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|