请求地址:/v5/Contracts/signed.json
请求方式:POST
接口版本: 5.2.3
接口描述:
var url = "https://api-v2.1dq.com/v5/Contracts/signed.json" var httpArg = "easy_id=175592531139104768&signed_data=[ { "seal_id": "必填-印章id", "page": "第几页如2", "x": "必填-需要盖章的x坐标位置", "y": "必填-需要盖章的y坐标位置" } ,{ "seal_id": "abf447a8-ad71-11ea-b95e-0242ac320a0c", "page": "1", "x": "200", "y": "200" }, { "seal_id": "abf447a8-ad71-11ea-b95e-0242ac320a0c", "page": "6", "x": "200", "y": "200" }]&words_id=2c6084c0-ad71-11ea-9664-0242ac320a0c&certification_code=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9&certification_type=mobile&cross_page_data=[ { "seal_id": "abf447a8-ad71-11ea-b95e-0242ac320a0c", "y": "100" },{ "seal_id": "必填-印章id", "y": "必填-需要盖章的y坐标位置" } ]&page_width=800" 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) } } }