| | |
| | | |
| | | using HttpClient httpClient = new HttpClient(); |
| | | httpClient.Timeout = new TimeSpan(0, 0, 60); |
| | | long currentTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); |
| | | string key = $"appkey=1830415116987195392×tamp={currentTimestamp}"; |
| | | string authorization = "Open " + GetStr(key); |
| | | string authorization = "AppKey 1830415116987195392"; |
| | | headers = new Dictionary<string, string> |
| | | { |
| | | { "Appkey", "1830415116987195392" }, |
| | | { "Authorization", authorization }, |
| | | { "site_tenant_id", "ced19269-2b83-4577-be43-8cc2f700251e" } |
| | | { "Site_tenant_id", "0dc2d164-8a62-417e-8a00-808007464feb" } |
| | | }; |
| | | if (headers != null) |
| | | { |