|
QunListInfoContent skus_with_json = new QunListInfoContent();
skus_with_json.sku_quantity = headModel.fBalQty;
skus_with_json.sku_price = 0;
skus_with_json.sku_property = "";
skus_with_json.sku_outer_id = "";
skus_with_json.sku_id = "";
//获取Token地址
string info = Function_Class.Pro_HttpPost("https://open.youzan.com/oauth/token", "client_id=XXX&client_secret=XXX&grant_type=silent&kdt_id=XXX");
var jObject = JObject.Parse(info);
Auth auth = new Token(jObject["access_token"].ToString());
// 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("num_iid", headModel.fItemNo.ToString());
dict.Add("offline_id", headModel.fOrgNo.ToString());
string sku_json = JsonFunction.SerializeObject(skus_with_json);
dict.Add("skus_with_json", sku_json);
var result = yzClient.Invoke("youzan.multistore.goods.sku.update", "3.0.0", "GET", dict, null);
|
|
|
|
|
|
|