Beispiel #1
0
        private void buttonPut_Click(object sender, EventArgs e)
        {
            ChanPinDTO chanPin = new ChanPinDTO
            {
                Id           = "739769244446625796",
                ChanPinMc    = "api调用测试Put",
                WangGuanLj   = "abc",
                GitFuWuQ     = null,
                QunZuMc      = "123",
                ChanPinBS    = "api调用测试Put",
                GitYongHuM   = null,
                GitMiMa      = null,
                BeiZhu       = null,
                ChanPinFZR   = null,
                ChanPinFZRXM = null,
                KaiFaFZR     = null,
                KaiFaFZRXM   = null,
                TiYanFZR     = null,
                TiYanFZRXM   = null,
                CeShiFZR     = null,
                CeShiFZRXM   = null
            };

            JavaScriptSerializer serializer = new JavaScriptSerializer();
            var data = serializer.Serialize(chanPin);

            HttpWebRequestHelper.Put(data);
        }
Beispiel #2
0
 private void buttonDelete_Click(object sender, EventArgs e)
 {
     HttpWebRequestHelper.Delete();
 }
Beispiel #3
0
 private void buttonGet_Click(object sender, EventArgs e)
 {
     this.richTextBox1.Text = HttpWebRequestHelper.HttpRequest("GET");
 }