电子合同API开发文档 v6

验证对公转账金额

请求地址:/v6/ApiOrgCertification/validationMoney.json

请求方式:POST

接口版本: v6

接口描述:

var url = "https://api-v2.1dq.com/v6/ApiOrgCertification/validationMoney.json"
var httpArg = "amount=4&process_id=6c3b188c-a80b-11ea-9547-0242ac110003"
APISTORE(url, httpArg: httpArg)
func  APISTORE(httpUrl: String, httpArg: String) {
    var req = NSMutableURLRequest(URL: NSURL(string: httpUrl + "?" + httpArg)!)
    req.timeoutInterval = 6
    req.HTTPMethod = "GET"
    NSURLConnection.sendAsynchronousRequest(req, queue: NSOperationQueue.mainQueue()) {
        (response, data, error) -> Void in
        let res = response as! NSHTTPURLResponse
        println(res.statusCode)
        if let e = error{
            println("请求失败")
        }
        if let d = data {
            var content = NSString(data: d, encoding: NSUTF8StringEncoding)
            println(content)
        }
    }
}