PurchaseOrderQuery.cs 908 B

12345678910111213141516171819202122232425262728293031
  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 PurchaseOrderQuery
  8. {
  9. class PurchaseOrderQuery
  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/purchase_order_query.php";
  18. client.putParams("start_time", "2018-06-03 00:00:00");
  19. client.putParams("end_time", "2018-06-21 20:13:41");
  20. client.putParams("status", "40");
  21. client.putParams("page_no", "0");
  22. client.putParams("page_size", "10");
  23. string result = client.wdtOpenapi();
  24. Console.WriteLine(result);
  25. Console.ReadKey();
  26. }
  27. }
  28. }