Program.cs 639 B

123456789101112131415161718192021
  1. using ToolLibrary;
  2. namespace TestHttpRequest
  3. {
  4. internal class Program
  5. {
  6. static void Main(string[] args)
  7. {
  8. Console.WriteLine("Hello, World!");
  9. string url = $"https://iwos.cn/api/data?start_time=1659946667&end_time=1661501867";
  10. string token = "2bda0334192f3e9242d0b49b5f9c089c";
  11. var reqBody = new
  12. {
  13. devices = new List<dynamic>() { new { deviceId = "6253da7ac4504500018f7ee5", siteId = "6253da7ac4504500018f7ee6" } }
  14. };
  15. dynamic value = HttpHelper.HttpPostRequest<dynamic>(url, reqBody, token);
  16. }
  17. }
  18. }