GoodsQuery.cs 728 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using WdtSdk;
  7. namespace GoodsQuery
  8. {
  9. class GoodsQuery
  10. {
  11. static void Main(string[] args)
  12. {
  13. WdtClient client = new WdtClient();
  14. client.sid = "";
  15. client.appkey = "";
  16. client.appsecret = "";
  17. client.gatewayUrl = "http://121.41.177.115/openapi2/goods_query.php";
  18. client.putParams("start_time", "2018-08-01 00:00:00");
  19. client.putParams("end_time", "2018-08-11 00:00:00");
  20. string result = client.wdtOpenapi();
  21. Console.WriteLine(result);
  22. Console.ReadKey();
  23. }
  24. }
  25. }