zoukankan      html  css  js  c++  java
  • 利用淘宝接口上传商品

     try
                {
                    TopXmlRestClient client = new TopXmlRestClient("http://gw.api.taobao.com/router/rest", "appkey", "appsecret");
                    ItemAddRequest req = new ItemAddRequest();
                    req.ApproveStatus = "onsale";
                    req.EnlistTime = DateTime.Now;
                    req.Num = 10;
                    req.Price = "1000.00";
                    req.Type = "fixed";
                    req.StuffStatus = "new";
                    req.Title = "六脉神剑";
                    req.Desc = "客户第一,员工第二,股东第三";
                    Location location = new Location();
                    location.State = "广东";
                    location.City = "深圳";
                    req.Cid = "2203";
                    req.Location = location;
                    req.AutoRepost = true;
                    req.PostFee = "5.0";
                    req.ExpressFee = "10.0";
                    req.EmsFee = "20.0";
                    req.OuterId = "top4net";
                    req.Props = "20000:20727;1627207:3232483;20055:20716";
                    req.SkuProps = "1627207:3232483";
                    req.HasShowcase = true;
                    //req.Image = TestUtils.GetResourceAsFileItem("item.jpg");
                  
                    string rsp = client.GetResponse(req, SessionKey);
                    File.WriteAllText("e:\\add.txt", rsp);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }

  • 相关阅读:
    Visual Detection of Lintel-Occluded Doors from a Single Image
    Linux下快速构建Android编译环境
    How to Train YOLOv4 on a Custom Dataset
    yolo v4 darknet colab
    Deep Image Matting
    给 MSYS2 添加中科大的源
    msys2 mingw64 ffmpeg 搭建最新ffmpeg编译环境 可用 ffmpeg 4.1 及更新版本
    GB28181对接摄像机/NVR视频流
    video.js在iframe中如何解决无法自动播放问题
    LiveGBS-摄像机网页低延时无插件直播实现
  • 原文地址:https://www.cnblogs.com/daretodream/p/1693622.html
Copyright © 2011-2022 走看看