淘宝api 开发_获取用户信息

            string url = "http://gw.api.taobao.com/router/rest";

            string appkey = "21635046";

            string appsecret = "fdf7e76c7cf2693d12943f42bb177da1";

            string sessionKey = "6100c084de93ac021c879df03a4f699299a0cfe00b33d5b899573294";



       

            ITopClient client = new DefaultTopClient(url, appkey, appsecret);

            ShopGetRequest req = new ShopGetRequest();

            req.Fields = "sid,cid,title,nick,desc,bulletin,pic_path,created,modified";

            req.Nick = "tb6723_80";

            ShopGetResponse response = client.Execute(req);

错误码

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
错误码 错误描述 解决方案
isv.user-not-exist:invalid-nick user 不存在  
错误码:40 缺少必要的传入参数 请根据返回的错误信息,将必传参数都填写好
isv.shop-service-error:SHOP_IS_NOT_EXIST 传入的nick存在,但此用户没有店铺  
isv.invalid-parameter:user-without-shop 传入的nick存在,但此用户没有店铺

你可能感兴趣的:(api)