1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-04-30 20:49:04 +02:00
Files
OpenIntegrations/docs/en/examples/ClickHouse/GetHTTPConnectionSettings.txt
T

27 lines
681 B
Plaintext
Vendored

URL = "";
// No authorization
Result = OPI_ClickHouse.GetHTTPConnectionSettings(URL);
// With basic authorization
Login = "";
Password = "...";
Authorization = New Structure(Login, Password);
Result = OPI_ClickHouse.GetHTTPConnectionSettings(URL, Authorization);
// With JWT authorization
JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.test";
Result = OPI_ClickHouse.GetHTTPConnectionSettings(URL, JWT);
// With additional headers
AdditionalHeaders = New Map;
AdditionalHeaders.Insert("X-Custom-Header", "CustomValue");
Result = OPI_ClickHouse.GetHTTPConnectionSettings(URL, Authorization, AdditionalHeaders);