`public override bool CheckConnection(AirbyteLogge...
# connector-development
a
public override bool CheckConnection(AirbyteLogger logger, JsonElement config, out Exception exc)
{
_Key = config.GetProperty("Key").GetString();
_UID = config.GetProperty("UID").GetString();
exc = null;
try
{
return
UrlBase.AppendPathSegment($"sensorspot").SetQueryParams(new { uid = _UID, key = _Key }).GetAsync()
.Result.GetJsonAsync().Result.success;
}
catch (Exception e)
{
exc = e;
}
return false;
}