云星空单据审核第三方接口对接开发
--创建对接类采用HttpClient方式与第三方接口进行对接
public class HttpClientHelper
{
public static string doPost(string url, string data)
{
using (HttpClient client = new HttpClient())
{
var content = new StringContent(data, Encoding.UTF8, "application/json");
Task<HttpResponseMessage> task = client.PostAsync("http://xxx.xxx.xxx.xxx:8080" + url , content);
HttpResponseMessage response = task.Result;
if (response.StatusCode == HttpStatusCode.OK)
{
Task<string> result = response.Content.ReadAsStringAsync();
result.Wait();
return result.Result;
}
}
return null;
}
}
--审核插件类 将数据按照接口的格式拼接成json字符串 发送给第三方接口
string resultStr = HttpClientHelper.doPost("", json);
云星空单据审核第三方接口对接开发
本文2024-09-16 17:10:03发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-13953.html
- 鼎捷EAI整合規範文件V3.1.07 (集團).pdf
- 鼎捷OpenAPI應用場景說明_基礎資料.pdf
- 鼎捷OpenAPI應用場景說明_財務管理.pdf
- 鼎捷T100 API設計器使用手冊T100 APIDesigner(V1.0).docx
- 鼎新e-GoB2雲端ERP B2 線上課程E6-2應付票據整批郵寄 領取.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程A4使用者建立權限設定.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程C3會計開帳與會計傳票.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程E6-1應付票據.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程A5-1進銷存參數設定(初階篇).pdf
- 鼎新e-GoB2雲端ERP B2 線上課程D2帳款開帳與票據開帳.pdf