private async Task <string> CreateSensor(string sensorId, string parkingLotId) { WriteLine($"Testing POST '{_route}/{SensorApi.Path}'."); // Sample JSON to send JObject json = new JObject { ["sensorId"] = sensorId, ["parkingSpace"] = "TEST: c#-api-sensor-create", ["parkingLotId"] = parkingLotId, ["network"] = "PNI", ["appEui"] = "0000000000000000", ["appKey"] = "00000000000000000000000000000000", ["disabled"] = false, ["latitude"] = 33, ["longitude"] = -111 }; string result = await _sensorApi.Create(json.ToString()); WriteLine("Sensor Creation Success\n"); return(JObject.Parse(result)["id"].ToString()); }