123456789101112131415161718192021 |
- using ToolLibrary;
- namespace TestHttpRequest
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Hello, World!");
- string url = $"https://iwos.cn/api/data?start_time=1659946667&end_time=1661501867";
- string token = "2bda0334192f3e9242d0b49b5f9c089c";
- var reqBody = new
- {
- devices = new List<dynamic>() { new { deviceId = "6253da7ac4504500018f7ee5", siteId = "6253da7ac4504500018f7ee6" } }
- };
- dynamic value = HttpHelper.HttpPostRequest<dynamic>(url, reqBody, token);
- }
- }
- }
|