// 堆代码 duidaima.com var client = new RestClient("https://oapi.dingtalk.com/robot/send?access_token=19cb7218ef9fae9669e2f58d8c681267b2f87695de277a62b0ccdaf3579c6019"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); var body = @"{""msgtype"":""text"",""text"":{""content"":""测试 傻逼""}}"; request.AddParameter("application/json", body, ParameterType.RequestBody); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);