CallWebApi

Interface Function

Call API.

Request Parameter
Parameter Required Type Remarks
method true string Calling method,which supports post get delete put
domain true string Domain of the external API, such as: http://www.ants.com
url true string Relative path of API, such as: customapi/getData
postData false string Request parameter that needs to be posted to API.
Return Data Type

string, return value of API.

Code Sample
//
var data = new {
    staffCode = "##190111031015539",
    organizationCode = "DemoTenant"
}
string postData=JsonHelper.Serialize(data);
var result=Service.CallWebApi("post","http://www.ants.com","DemoTenant/demoapp/customApi/GetUserInfo",postData);
return Return;
© Digital Maker Product Team all right reserved,powered by Gitbook该文件修订时间: 2023-02-02 10:40:10

results matching ""

    No results matching ""