12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using WdtSdk;
- namespace StockoutTransferPush
- {
- class StockoutTransferPush
- {
- static void Main(string[] args)
- {
- WdtClient client = new WdtClient();
- client.sid = "";
- client.appkey = "";
- client.appsecret = "";
- client.gatewayUrl = "http://121.41.177.115/openapi2/stockout_transfer_push.php";
- var stockout_info = new
- {
- src_order_type = "2",
- src_order_no = "TF201901170004",
- warehouse_no = "api_test",
- goods_list = new[]
- {
- new{
- spec_no = "test-ptsd-00002",
- num = "1"
- },
- new{
- spec_no = "test-ptsd-00001",
- num = "1"
- }
- }
- };
- string json = stockout_info.ToJsonString();
- client.putParams("stockout_info", json);
- string result = client.wdtOpenapi();
- Console.WriteLine(result);
- Console.ReadKey();
- }
- }
- }
|