删除业务数据
更新时间: 2024-10-19 浏览次数: {{ hits }}

RemoveBizObject:   删除数据。

请求方式:POST(HTTPS)

请求地址:https://www.h3yun.com/OpenApi/Invoke

请求包体:

{

"ActionName":"RemoveBizObject",

"SchemaCode":"D000024chuangjian",

"BizObjectId":"60561b8e-2296-419a-a647-842ea587941b"

}

 

参数说明:

参数

参数类型

必须

说明

ActionName

String

调用的方法名

SchemaCode

String

表单编码

BizObjectId

String

表单ObjectId值

 

请求示例(C#):

string apiAddress = @"https://www.h3yun.com/OpenApi/Invoke";

HttpWebRequest request =   (System.Net.HttpWebRequest)WebRequest.Create(apiAddress);

request.Method = "POST";

 request.ContentType = "application/json";

 //身份认证参数

request.Headers.Add("EngineCode", "");

request.Headers.Add("EngineSecret", "");

            //参数

Dictionary<string, object> dicParams = new Dictionary<string, object>();

dicParams.Add("ActionName", "RemoveBizObject");

dicParams.Add("SchemaCode", "D000024chuangjian");

dicParams.Add("BizObjectId", "60561b8e-2296-419a-a647-842ea587941b");

 

 

string jsonData = JsonConvert.SerializeObject(dicParams);

byte[] bytes;

bytes = System.Text.Encoding.UTF8.GetBytes(jsonData);

request.ContentLength = bytes.Length;

using (Stream writer = request.GetRequestStream())

            {

                  writer.Write(bytes, 0, bytes.Length);

                  writer.Close();

            }

 

string strValue = string.Empty;

 using (System.Net.HttpWebResponse   response = (System.Net.HttpWebResponse)request.GetResponse())

            {

                using (System.IO.Stream s =   response.GetResponseStream())

                {

                    string StrDate = string.Empty;

                    using (StreamReader Reader = new StreamReader(s,   Encoding.UTF8))

                    {

                        while ((StrDate = Reader.ReadLine())   != null)

                        {

                              strValue += StrDate + "\r\n";

                        }

                    }

                }

            }

 

请求示例(JAVA):

Map<String, String> paramMap = new HashMap();

paramMap.put("ActionName", "RemoveBizObject");

paramMap.put("SchemaCode", "D000024chuangjian");

paramMap.put("BizObjectId", "60561b8e-2296-419a-a647-842ea587941b");   

 

//身份认证参数

Map headers = new HashMap();

headers.put("EngineCode","");

headers.put("EngineSecret","");

 

Gson gson = new Gson();

String result = HttpRequestUtil.sendPost(url,   gson.toJson(paramMap), headers);

 

返回结果:

{

    "Successful": true,

    "ErrorMessage": null,

    "Logined": false,

    "ReturnData": {},

    "DataType": 0

}

 

参数

说明

Successful

返回结果是否成功true/false

ErrorMessage

错误信息

Logined

未使用,忽略

ReturnData

返回的数据

DataType

返回的数据类型,默认0