private void btnVisitor_Click(object sender, EventArgs e) { var url = "https://visitor.yowhale.com/openapi/guard/openDoor.json?{0}"; using (MeetingHttpRequest requestAPI = new MeetingHttpRequest(url)) { var sw = Stopwatch.StartNew(); var code = "visitor://book?code=c828ac9f-f8b0-4d32-9720-1601394fa22a"; var flag = requestAPI.VerfiyAccess(code); sw.Stop(); Debug.WriteLine("open door:" + flag + " " + sw.ElapsedMilliseconds); } }
private void btnMeeting_Click(object sender, EventArgs e) { var url = "https://meeting.yowhale.com/openapi/guard/openDoor.json?{0}"; using (MeetingHttpRequest requestAPI = new MeetingHttpRequest(url)) { var sw = Stopwatch.StartNew(); var code = "123"; var flag = requestAPI.VerfiyAccess(code); sw.Stop(); Debug.WriteLine("open door:" + flag + " " + sw.ElapsedMilliseconds); } }