private void button8_Click(object sender, EventArgs e) { try { string passmd5 = driver.Encrypt(textBox3.Text); driver.ipPart = textBox1.Text; driver.Auth(textBox1.Text, textBox4.Text, textBox2.Text, passmd5); string iD = textBox6.Text; string valueID = textBox8.Text; string door = textBox9.Text; var item = driver.FindId(textBox1.Text, textBox4.Text, driver.token, iD); if (item == null) { MessageBox.Show("null"); return; } string Uri = "http://" + textBox1.Text + ":" + textBox4.Text + "/api/v0/access/identifiers/item/" + item.identifier_uid; [email protected]_number = valueID; item.@base.@lock = door; var jsonSer = JsonConvert.SerializeObject(item); string receiveData = driver.SendQuery(Uri, driver.token, "PATCH", jsonSer); MessageBox.Show(receiveData); } catch (Exception ex) { MessageBox.Show(ex.Message); } }